How to use variables/merge tags in the email template (detailed)
This article will guide you on using ShopAgain’s merge tags and variables to personalize your marketing messages and provide a customized experience for your users. Variable or Merge Tags are a bit of code that we can add to a subject line, an email template, or an SMS to personalize customer information by pulling content from their records in an automated email program. Visit our YouTube channel to watch the video click here
These are the template variables available in email for your use. To use enclose them in double braces, e.g. {{ FirstName }}
FirstName: First name of the user
LastName: Last name of the user
UserCity: City of the user
CompanyName: Name of the Company
CompanyWebsite: Website of the Company
CompanyAddress: Address of the Company
CompanyEmail: Contact email of the Company
CompanyPhone: Contact phone number of the Company
UnsubscribeLink: Adds an unsubscribe link with the text "Unsubscribe" to the template.
CampaignUnsubscribeLink: Adds an unsubscribe link to unsubscribe from campaign with the text "Opt out of this campaign" to the template.
CampaignUnsubscribeUrl: URL to unsubscribe user from the campaign
SubscribeLink: A link that can be added to a button to confirm email subscription.
AbandonedCartUrl: Link of the abandoned cart. Available only on abandoned cart events. Use with a button or link.
DiscountCode: Display the selected discount code in the discount block.
DiscountCodeUrl: A link that can be added to a button or link to apply a discount code.
OrderStatusUrl: The URL pointing to the order status web page, only available on order events.
OrderNumber: Order number, only available on order events.
OrderAmount: Total price of the order, only available on order events.
To add personalization, you can click on any text or heading block where you want to add a merge tag.
Click on merge tags from there as shown in image
To add the Merge Tags, click on the merge tags. Let's say if you add the First Name in the email template, then it will personalize each email with the recipient's first name
To add the merge tag, click on the merge tag from the drop-down and it will be added to the text block.
After Selecting a Merge tag from dropdown click on merge tag to add default value.
To know more about default values click here
You can add any Merge Tags easily, and it will personalize the details of email recipients. There is another way to add Merge Tags.
Wrap the variable name in double curly braces, like so: {{ VariableName }}.
Yeah that's it, You can SAVE the template after Merge Tags are added and you are good to go.
These are the template variables available in email for your use. To use enclose them in double braces, e.g. {{ FirstName }}
Available Variables/Merge Tags for Email Templates on ShopAgain
User Information
FirstName: First name of the user
LastName: Last name of the user
UserCity: City of the user
Company Information
CompanyName: Name of the Company
CompanyWebsite: Website of the Company
CompanyAddress: Address of the Company
CompanyEmail: Contact email of the Company
CompanyPhone: Contact phone number of the Company
Email Interactivity
UnsubscribeLink: Adds an unsubscribe link with the text "Unsubscribe" to the template.
CampaignUnsubscribeLink: Adds an unsubscribe link to unsubscribe from campaign with the text "Opt out of this campaign" to the template.
CampaignUnsubscribeUrl: URL to unsubscribe user from the campaign
SubscribeLink: A link that can be added to a button to confirm email subscription.
Specialized Links
AbandonedCartUrl: Link of the abandoned cart. Available only on abandoned cart events. Use with a button or link.
DiscountCode: Display the selected discount code in the discount block.
DiscountCodeUrl: A link that can be added to a button or link to apply a discount code.
OrderStatusUrl: The URL pointing to the order status web page, only available on order events.
OrderNumber: Order number, only available on order events.
OrderAmount: Total price of the order, only available on order events.
To add personalization, you can click on any text or heading block where you want to add a merge tag.
Click on merge tags from there as shown in image
To add the Merge Tags, click on the merge tags. Let's say if you add the First Name in the email template, then it will personalize each email with the recipient's first name
To add the merge tag, click on the merge tag from the drop-down and it will be added to the text block.
After Selecting a Merge tag from dropdown click on merge tag to add default value.
To know more about default values click here
You can add any Merge Tags easily, and it will personalize the details of email recipients. There is another way to add Merge Tags.
Wrap the variable name in double curly braces, like so: {{ VariableName }}.
Yeah that's it, You can SAVE the template after Merge Tags are added and you are good to go.
Updated on: 02/02/2024
Thank you!