Email campaign creation: Full List of Mailigen Merge Tags

Last Updated: May 12 2014 01:44 am EDT

Merge tags allow you to insert ("merge") personalized and system data into your email campaigns. This topic provides a full list of the built-in merge tags that are available when you create an email campaign. A general description of merge tags is presented in the topic Quick Start: What are merge tags and how can I use them in my email campaign?

Contacts

Merge tagName and purpose
#[UNIQID]#  Contact HASH value, can not be edited
#[EMAIL]# Email address
Inserts the recipient’s email address.
 #[FNAME]# First name
Inserts the recipient’s first name.
 #[LNAME]# Last name
Inserts the recipient’s last name.
 #[<custom tag name>]#  Custom tag
Inserts one of your custom merge tags. For example, your contact list has a field named “CAR_MODEL” that contains the model of the recipient’s car. You can insert a #[CAR_MODEL]# merge tag that inserts the recipient’s car model into the email. To add custom merge tags, navigate to Contact > My Lists, and then click the Edit contact fields button. Click Add New Field and enter the required merge tag data.
#[MERGE<ID>]# System generated merge tag label for each list field. Examples:
EMAIL -> MERGE0     
FNAME -> MERGE1     
LNAME -> MERGE2     
...     
<custom tag name> -> MERGE<n>

Campaigns

Merge tagName and purpose
#[CID]# Campaign HASH value
#[CAMPAIGN:ID]# Campaign ID
#[CAMPAIGN:EMAIL]# Reply-to email address
#[CAMPAIGN:SENDER_NAME]#  Campaign sender
Inserts the campaign sender's name.
You can edit the sender's name under Account > Contact Information.
Using this tag is mandatory for senders using the Pro User add-on and who have disabled the default footer.
#[CAMPAIGN:SUBJECT]#  Email campaign subject
#[CAMPAIGN:SUBJECT:URL]#  URL encoded subject
#[CAMPAIGN:NAME]# Email / campaign name
#[CAMPAIGN:NAME:URL]#  URL encoded name
#[CAMPAIGN:EXCERPT]#  Plain text substring 144
#[CAMPAIGN:EXCERPT:URL]#  
#[URL:CAMPAIGN: GOOGLE_ANALYTICS_TITLE]# URL encoded Google Analytics title

Lists

Merge tagName and purpose
#[LID]#  List HASH value
#[LIST:NAME]#  List name
#[URL:LIST:NAME]#  
#[LIST:COMPANY]# Company name
Inserts the name of your company. 
You can edit the company name under Account > Contact Information.
Using this tag is mandatory for senders using the Pro User add-on. 
#[LIST:DESCRIPTION]# Permission Reminder
Inserts an explanation of why the recipients received the email. The explanation is contained in the “Subscription permission reminder” field associated with the campaign contact list.
You can view or edit the explanation by navigating to Contacts > My Lists and then clicking the required List Settings button.
#[LIST:ADDRESS]#  Full Company address
Inserts the full address of your company (address, city, state/province, country, and zip/postal code).
You can edit this information under Account > Contact Information.
Using this tag is mandatory for senders using the Pro User add-on and who have disabled the default footer. 
#[LIST:PHONE]#  
#[LIST:URL]#  Link to the Permission Reminder
Inserts a “Why am I receiving this email?” link to a URL that informs recipients why they received the email. For details on how to view or modify the explanation, see #[LIST:DESCRIPTION]# above.
#[LIST:FROM_NAME]#  
#[LIST:FROM_EMAIL]#  
#[LIST:EMAIL]#  
#[LIST:REPLY_TO]#  

System

Merge tagName and purpose
#[UID]#  Client / user HASH value
#[UPDATE_PROFILE]# Update profile
Inserts an “Update Profile” link to a URL where the user can update his/her contact information.
#[ARCHIVE]# Archive URL
Inserts a “View email in browser” link to a URL that displays an archived version of the email.
#[ARCHIVE:URL]#  
#[ARCHIVE:SHORT]#  
#[ARCHIVE:SHORT:URL]#  
#[VCARD]# vCard as attachment
Inserts an “Add to address book” link to a URL that lets recipients easily add your email address to their address books.
#[FORWARD]# Forward URL
Inserts a “Forward to a friend” link to a URL that makes it easy for the recipient to share the email with a friend. The friend will be able to see this campaign and subscribe to updates, as well share the email with other friends.
#[UNSUB]# Unsubscribe URL
Inserts a “Click here to unsubscribe” link to a URL that makes it convenient for recipients to unsubscribe. After unsubscribing, a recipient will have the status “unsubscribed” in your list.
Using this tag is mandatory for senders using the Pro User add-on. 
#[SHORTURL:<url adress>]#  Mailigen URL shortener
#[SHORTURL:<url adress>:URL]#  
#[DATE]# Date format:
Inserts the date on which the email was sent in the following format: d.m.Y
#[DATE:FULL]#  Date
Inserts a full date on which the email was sent in the following format: %A, %e.%B, %Y
#[DATE:<date format>]#  Date
Inserts a full date on which the email was sent.
You can customize the format based on this example:
http://php.net/manual/en/function.strftime.php
Example: #[DATE:A, e.B, Y]#

Survey link

Merge tagName and purpose
#[SURVEY:<survey HASH value>]#  Adds a direct survey URL in email's content.

RSS

Merge tagName and purpose
#[RSSBLOCK<ID>:URL=<rss feed URL adress>|POSTS=<article count>]# Example: #[RSSBLOCK01:URL=http://blog.mailigen.com/feed|POSTS=2]#
#[RSSITEM:CONTENT]#  
#[RSSITEM:LINK]#  
#[RSSITEM:IMAGE]#  
#[RSSITEM:THUMBNAIL]#  
#[RSSITEM:TITLE]#  
#[RSSITEM:DESCRIPTION]#  
#[RSSITEM:DATE]#  
#[RSSITEM:CREATOR]#  
#[RSSITEM:COMMENTS]#  
#[RSSITEM:CATEGORIES]#  
#[/RSSBLOCK<ID>]#  

XML

Merge tagName and purpose
#[XMLBLOCK<ID>:URL=<xml feed URL adress>|ITEMS=<skaits>|LOOP_ELEMENT=<element>]# LOOP_ELEMENTS - name of elementa, that's repeated in XML file, example: a "product" will be an element for  e-commerce store
#[XMLITEMS]#  This block identifies which section of the template will be repeated in cycle
#[XMLITEM:<teg name>]# This includes name of the tag from XML file. Example from an e-commerce website would be "description", "price", "old_price", "discount", "URL", "image"
#[/XMLITEMS]#  
#[/XMLBLOCK<ID>]#  

Dynamic content tags

Merge tagName and purpose
#[IF:<merge><operator><value>]#  Example: #[IF:ARCHIVE]#, #[IF:SEGMENT=<segment ID>]#, #[IF:EMAIL=example@example.com]#
<merge> Different merge fields
<operator> - =, !=, >, >=, <, <=, contains   
#[ELSEIF:<merge><operator><value>]#  
#[ELSE]#  
#[/IF]#