Using Merge Tags in Emails
The information you collect through Contact Forms or add manually to the Custom Fields of contacts is linked to merge tags. These tags can be used to personalize emails and create dynamic content.
We appreciate some of these terms may be unfamiliar, so we'll define them below:
- Custom field
Personal or shared information that can be added to your Contacts and Groups, e.g. First Name, Email, Company. - Merge tag
A text-based identifier that corresponds to custom fields. - Dynamic content
The personalized content that's displayed to contacts when a merge tag is inserted into a campaign.
How merge tags work
Your Shout contacts contain custom fields that refer to their information. A merge tag is created for each of these custom fields, which will look like this: ${first-name}. When you insert a merge tag into an email, we'll automatically replace the tag with the information stored in the corresponding custom field.
Merge tag text is set by the name of the custom field it corresponds to. Default merge tag text cannot be changed, but you can change the text of your own custom fields to alter the merge tag text.
For example, a merge tag for your contact's first name is included in the email body by default.
Here's what it looks like in the builder:
And, here's what it looks like once it's been sent:
How to use merge tags
All merge tags begin with the $ character. To include them in your email body all you have to do is enter $ and a dropdown of your available merge tags will appear.
We'd recommend that you use this dropdown rather than entering the merge tag manually. If there is a typo in the merge tag, it will display as the mistyped text as opposed to the dynamic content.
Default merge tags in emails
There are three merge tags we include in your emails by default:
- First name ${name}
- Survey URL ${survey-url}
- Physical address ${physical-address}
To help you personalize all of your email invitations, we include first names by default. You can choose to remove this.
We also include the survey URL link, so that respondents can get to your survey if the button is not responsive for some reason.
Finally, your physical address is included in the footer of all your emails.
This merge tag cannot be removed. It is a legal requirement that your physical address is present in all mailings.
Testing merge tags
We highly recommend that you send yourself a test email before sharing your email with contacts. This is to ensure that they're all displaying the correct information.
Merge tags will not be converted into dynamic content in the Email Preview.