Skip to content

Merge tags

Placeholders that become subscriber-specific values when the email is sent.

Merge tags are written in double braces and replaced per recipient at send time. They work in the subject line and in the body.

Tag Becomes
{{first_name}} The subscriber's first name
{{email}} Their email address
{{unsubscribe_url}} Their personal unsubscribe link
{{discount_code}} A unique code for this subscriber

Missing values

{{first_name}} renders as an empty string when the name is unknown - which it often is, since the name field on signup forms is optional.

That means "Hi {{first_name}}," becomes "Hi ," for a good share of your list. Write around it:

  • "Hi there" with no tag at all, or
  • "Hi {{first_name}}" on its own line so the stray comma does not appear, or
  • Use it further into the sentence where an absence reads less oddly.

Always send yourself a test with a subscriber record that has no first name.

You do not have to add one. An unsubscribe footer is appended to every campaign and automation email automatically, because sending marketing email without one is illegal in most of the world. Your company name and postal address from Account → Sender details appear just above the link; a campaign cannot be sent until they are filled in.

Use {{unsubscribe_url}} when you want the link somewhere else as well - some senders put "too many emails? unsubscribe" near the top and see fewer spam complaints for it. Being easy to leave is worth more than the subscribers you keep by being hard to leave.

Discount codes

{{discount_code}} generates a unique code the first time it is used for a subscriber, then returns that same code forever - in campaigns and automations alike. The subscriber can be told their code twice without it changing, and codes are not shared between people.

Codes look like TBE-7K2Q9M: the prefix TBE- followed by six random letters and digits. To use your own prefix - SHOP-7K2Q9M - set it under Account → Discount codes (up to 10 letters, digits and dashes). Codes already sent keep the prefix they were made with.

A test send and the preview show the tag as {{discount_code}} rather than generating a code for your own address.

Note that the code is generated and stored here - it is not created in your shop. Whatever system honours the code needs to be able to accept it.

Last updated: