Campaign Email Template Tags

Email Template Tags allow you to create dynamic email templates. They are used to pull in content specific to a campaign, to pull in subscriber information, and to pull in campaign information.

Making Content Editable

These tags are used to add editable areas to your email templates. When setting up a new campaign these areas will be available to be customized for each campaign. Ideally you should have at least one editable area for the template.

Heading

Heading tags are for a single line of heading text. A text box will be used for the user to edit the content

Tag Example

{apEmail:heading name="headingName" default="default value"}

Required Attribute

name
The unique name for that heading text.

Optional Attribute

default
Sets the default or example text for the heading.

Content

Content tags are used for large content areas. When creating a new email campaign this will provide the user with the WYSIWYG editor to add content.

Tag Example

{apEmail:content name="contentName" default="default value"}

Required Attribute

name
The unique name for that content area.

Optional Attribute

default
Sets the default or example text for the content area.

Quick Links

These tags can be used to create links to different campaign app pages.

Unsubscribe

You can add a link for subscribers to unsubscribe from the list if they want to.

Tag Example

<a href="{#manage.unsubscribeUrl}">Click Here to Unsubscribe</a>

Web Version

Include a link to the web version of the email. The web version is automatically created and is essentially an HTML snapshot of the email at the time that the campaign started delivery.

Tag Example

<a href="{#campaign.webversion}">View in your browser</a>

Campaign Data

You can include some information from the campaign in your email or use it for doing some logic.

Campaign Name

{#campaign.campaignName}

Email Subject

{#campaign.emailSubject}

From Email

{#campaign.fromEmail}

From Name

{#campaign.fromName}

Reply-to Email

{#campaign.replytoEmail}

Personalization

Add your recipient's personal data into your email content.

All recipient data is held in the {#subscriber} variable.

First Name

{#subscriber.firstName}

Last Name

{#subscriber.lastName}

Full Name

{#subscriber.fullName}

Email Address

{#subscriber.email}

Example Usage

The following code snippet tests to see if there is a "First Name" value for the subscriber and if so includes it in the template. This is best practice as your list might not always contain the First Name of a subscriber. Using this logic allows your template to adapt to the subscriber information.

{if #subscriber.firstName}
  <p>Dear {#subscriber.firstName}, </p>
{/if} 

Other Account Attributes

Subscriber data comes from individual Account profiles. The subscriber personalization information above is just the basic account data made available to the email templates. You can also include all other account attributes and custom attributes. All of it is available in the {#subscriber} variable just like the first name, last name and email address.

For example, you could use their company name:

{#subscriber.company}

Or their profile image:

{#subscriber.profileImage.tag}

Or their username:

{#subscriber.username} 

Including Other App or Website Content

App APIs

You can include any app API tag in an email template to include data from an app. For example, you could use the Blog Recent Posts API tag to include the 5 most recent blog posts in the sidebar of your email.

Core Tags

The following Core Tags can be used in an email template.

Snippet Tags

Any of the AP date or time tags.