Snippet tags: what are they and how to use them
Personalize messages to your users
Snippet tags are pieces of code used in messages then turned into data and stored in appropriate attributes. They allow you to personalize the content of your automatic or mass messages, using information stored in attributes, events, or products.
How it appears in email form:
Snippet tags are divided into 5 categories:
- Client tags - receiver tags used to personalize content of automatic or mass messages, enabling you to render data stored in user attributes (e.g. name, days till the end of subscription), and therefore create communication reflecting each person’s specific situation.
You have users named John, Marianne, and Sylvia. You want to send the same email to each of them where only the name changes. Start with:
and their name will appear dynamically, as you send the email.
- Company tags - used to personalize content of automatic or mass messages, enabling you to render data stored in attributes of companies your recipients are assigned to, e.g. change the company name or tax identification number.
- Author tags - used when you want to adjust the footers of your messages based on the person they’re sent from
- Event tags - Include information sent to User.com in events and their attributes: anything from messages typed in your contact forms to loyalty points earned during last purchase.
- Product tags - Include information about products your visitors have interacted with: abandoned cart recovery and product reminder messages. Use the builder below and paste the created code in your message.
Every section has a brief Description, Examples how to use the tags, Useful tags, and User tag list.
Where to find Snippet tags
Go to Tools -> Snippet tags.
How to use Snippet tags
You can also find "Snippet tags" while typing an email message in Editing template ("Campaigns" -> "Emails" -> "Create new" -> "Layouts" -> "Simple Drag&Drop"). From the drop-down menu under Personalize, select which attribute you want to render.
For example, you can create an email campaign with a message that looks like the one below:
All you have to do is copy this text, change the variables, and paste it like the standard text of the email. Once delivered to the receiver, it will turn into dynamic user data.
Everything written in double brackets will be treated as the variable.