Dynamic tags offer a powerful way to personalize your email content. Dynamic tags are support in mailout subjects, preview text, and email templates.

The most commonly used tag to personalize to your audience is to include a name in your mailout. For example:

will appear as: 

"Hello John! Thank you for your recent purchase."

Dynamic Tags with Rare.io

Dynamic tags match Shopify's Liquid syntax, which supports a combination of tags, objects, and filters to load dynamic content.

Docs: https://help.shopify.com/themes/liquid/basics

Template Variables

Template variables allow you to include information about the recipient, such as their name, or email, products, shop details and more.

{{ customer.first }} - The first name of the customer
{{ customer.last }} - The last name of the customer
{{ customer.fullname }} - The full name of the customer
{{ customer.email }} - The email of the customer
{{ customer.gender }} - The gender of the customer, ie: "male", "female"
{{ customer.tags }} - The customers tags array, ie: {{ customer.tags[0] }}

{{ customer.predictive_products }} - An array of predictive products
{{ customer.last_purchase.name }} - The name of the last item purchased by customer
{{ customer.last_purchase.image }} - The image of the last item purchased by customer
{{ customer.last_purchase.url }} - The url of the last item purchased by customer

{{ checkout.products }} - An array of product objects (automated mailout only)
{{ order.products }} - An array of product objects (automated mailout only)

{{ products[...] }} - Product object (based on the index)
{{ products[0].name }}
{{ products[0].image }}
{{ products[0].price }}
{{ products[0].url }}

{{ date.year }} - The current year
{{ date.month }} - The current month
{{ date.monthyear }} - The current month and year
{{ date.time }} - The current timestamp
{{ date.short_time }} - The shortened timestamp

{{ shop.name }} or {{ store.name }} - The shop's display name
{{ shop.url }} or {{ store.url }} - The shop's url
{{ shop.link_name }} or {{ store.link_name }} - The shop's id name
{{ shop.street }} or {{ store.street }} - The shop's street
{{ shop.city }} or {{ store.city }} - The shop's city
{{ shop.state }} or {{ store.state }} - The shop's state
{{ shop.country }} or {{ store.country }} - The shop's country
{{ shop.zip }} or {{ store.zip }} - The shop's zip
{{ shop.postal }} or {{ store.postal }} - The shop's postal
{{ shop.facebook_url }} - The shop's Facebook url setting
{{ shop.twitter_url }} - The shop's Twitter url setting
{{ shop.instagram_url }} - The shop's Instagram url setting
{{ shop.youtube_url }} - The shop's YouTube url setting
{{ shop.pinterest_url }} - The shop's Pinterest url setting
{{ shop.medium_url }} - The shop's Medium url setting
{{ shop.googleplus_url }} - The shop's Google Plus url setting
{{ shop.linkedin_url }} - The shop's LinkedIn url setting
{{ shop.coupon_code }} or {{ store.coupon_code }} - A single coupon code

{{ checkout.url }} - The cart recovery url

Template Tags

Template tags output important links or information. These tags are useful when you want to insert coupon codes or unsubscribe links.

{% coupon %} - Single use coupon code
{% coupon my coupon group %} - Coupon code from the group "my coupon group"
{% unsubscribe_link %} - A link to unsubscribe
{% unsubscribe %} - A link with text to unsubscribe
{% view_in_browser_url %} URL to view email in a browser
{% view_in_browser %} Link with text to view email in a browser

Template Filters

Template filters provide additional personalization. This includes accessing custom properties for recipients, setting default values, and setting additional formatting options.

Checkouts

{% for product in checkout.products %}
    {{ product.name }}
{% endfor %}

Orders

{% for product in order.products %}
    {{ product.name }}
{% endfor %}

Customers

Predictive products (provides 3):

{% for product in customer.predictive_products %}
    {{ product.name }}
{% endfor %}

Defaults

This filter is used to specify a default in case a variable doesn’t have a value. This is useful as placeholder when you don’t always have the information you want to use. For example:

 will appear as:

"Hello John! Thank you for your recent purchase."

If there is no customer name, the above code would appear as:

"Hello there! Thank you for your recent purchase."

Text Block "Dynamic Tags" Menu

When you add text content to your mailout, whether it's for a title, text box or subject line, the text tools box will provide you with a drop down list of dynamic tags you can apply to customize and personalize your mailout to your audience. They are grouped into different sections (customer, store, date/time, message etc.) for quick viewing.

The Dynamic Tags drop down also includes the code to insert an unsubscribe link in your mailout.

 You can also insert individualized product recommendations into your mailouts. 

Did this answer your question?