Skip to main content

Insert a customer’s first or last name in an email

Add personalized customer information, such as a first name or last name, to emails using Liquid tags in Seguno Email Marketing.

You can personalize emails in Seguno Email Marketing by inserting customer information with Liquid tags. Liquid tags dynamically display data from Shopify customer records, such as a first name or email address, and support fallback text when data is missing.

Liquid codes can be added manually or through the Personalization tool.


How Liquid tags work

Liquid tags pull customer data from Shopify and display it in an email. You can add Liquid tags to any eligible text field, including:

  • Subject lines

  • Preview text

  • Headings

  • Rich text content

If the customer record does not contain the requested information, Seguno displays fallback text instead when configured.


Insert a Liquid tag with the Personalization tool

Use the Personalization tool to quickly add common customer information without writing Liquid syntax manually.

The personalization tool is located next to all eligible text fields in the Editor.

Each liquid tag offers the option for Fallback text. If the customer has not provided the information, the fallback text will show in place of the variable.

For example:

You updated your subject line to "Hey {{ customer.first_name | default: there }}, thanks for signing up!". If your Shopify Customer data contains the first name, the subject line will read, "Hey Chris, thanks for signing up!" If your Shopify Customer data does not contain the first name, the subject line will read, "Hey there, thanks for signing up!"

Steps to add a liquid tag with the personalization tool:

  1. Click the Personalization icon next to a supported text field in the Editor.

    personalization icon
  2. Select the customer information to insert, such as first name or email.

  3. Optional: Enter fallback text to display when the information is unavailable.

  4. Click Add

Note:

The option to add a discount code only appears if a discount is assigned to the newsletter or automation email.


Manually insert a Liquid tag

Manual Liquid tags are useful when adding alternative or less common customer information.

Steps to add a liquid code:

  1. Place the cursor in the desired text field.

  2. Insert the following syntax:
    {{ CODE | default: 'FALLBACK_TEXT' }}

  3. Replace CODE with the customer information code.

  4. Replace 'FALLBACK_TEXT' with the text to display if the data is missing.


Available customer information codes and descriptions

Customer Information Code

Description

customer.email

Customer's Email Address

customer.first_name

Customer's First Name

customer.last_name

Customer's Last Name

customer.name

First and last name combined with a space in between

customer.orders_count

Count of orders the subscriber made

customer.id

Number found in the Shopify admin URL when viewing the customer record

Syntax for liquid:

{{ CODE | default: 'FALLBACK_TEXT' }}

Example:
Dear {{ customer.first_name | default: 'valued customer' }},

With Subscriber First Name

Without Subscriber First Name

Dear Chris,

Dear valued customer,


Did this answer your question?