Search through more than a hundred articles on every aspect of User.com

Dawid Tyburek
Written by Dawid Tyburek

Snippet tags: what are they and how to use them

Personalize communication with your users


Introduction

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. 

Example

How it appears in the email form, take a look how the content dynamically changes for the user:

Use cases

  • Let's say 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:Hi {{ receiver.first_name }}! and instead of the Snippet Tag your receiver will see their name in the greeting.

  • Using Event Snippet Tags is a great way to send automated emails about Abandoned Carts or Product Recommendations for various customers. It will allow you to prepare only one email message that will display a personalised message for every receiver.
  • If you want to automate updating Company Attributes, you can use Snippet Tag in the Automation to provide a personalised value for each User and assigned Company. In fact, you can use Snippet Tags in many Automation Modules!

  • Usage of Snippet Tags can also be useful while automating creation of your deals. Simply use attributes stored in the users profile to create a name of the deal or even use it with your Deals custom attribute.

Snippet tag types

  • User 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.
  • 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.
  • Deal tags - use information from Deal events and their attributes, generate a Snippet consisting of all the data stored in a particular Deal.
  • 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

  • For example, if you don't want to have blank spaces while using a Snippet tag in a Greeting, provide a default value to make your communication flawless. Simply use {receiver.first_name|default:"Friend" }, in this case, even if the receiver will not have First Name attribute filled, the Greeting will show a Friend instead of a blank space!

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 a variable. It will work the same in any campaign and even pop ups!

Related articles

Categories: