Skip to main content

How to add a Link Trigger to an email template

Learn how to include a link trigger directly in your email template.

Updated over a week ago

Want your emails to always contain a certain Link Trigger?

You can add it to your email template so that you don't have to manually add it to every email.

Doing this is handy if you want to add Tags to subscribers who click links that you always include in your emails.

For example, you may want to tag subscribers with a "Newsletter" Tag when they click a "Subscribe to my newsletter" link in your email footer. This way, you can send your newsletter to just the subscribers who have this Tag.

Before you can add the Link Trigger to an email template, you'll need to get the Link Trigger's ID. Here's how.

How to get your Link Trigger's ID

1. Create your Link Trigger if you haven't already.

3. Add your Link Trigger to the Broadcast content.

Type some text in the email editor. (The exact text doesn't matter.)

Highlight the text, and click the link icon in the toolbar at the top of the email editor. Next, select your Link Trigger from the Link Trigger dropdown.

4. Preview the Broadcast.

Once you've added your Link Trigger, click the Preview email option to preview your Broadcast:

Your email will pop open with a browser preview window. Right-click the link, and then click "Inspect":

5. Locate your Link Trigger ID.

In the window that pops up, find your Link Trigger ID. It's the number in the trigger-id value.

In this example, the Link Trigger ID is 3367666 (your number will be different):

Once you've found your Link Trigger ID, save it somewhere you can access it again, because we'll be using it soon (we suggest copying it to your clipboard).

6. Delete the Broadcast draft.

As long as your Link Trigger ID is saved somewhere, we no longer need this Broadcast draft, so feel free to discard it.

Now, follow the steps in one of the following sections of this article to add your Link Trigger to your email template, depending on whether your template is a starting point, classic, or HTML email template.

Your email template will state what type it is on the Email Templates page, under its name.

Add a Link Trigger to a starting point or classic template

1. Navigate to the email template you want to add the Link Trigger to.

Go to your account's Email Templates page, and click the template you'd like to modify.

2. Add an HTML block where you want to add your Link Trigger.

For example, add the HTML block to your template's email footer if you want to add the Link Trigger there:

3. Click Edit on your HTML block and add this HTML:

<a href="YOUR-URL-HERE" trigger-id="YOUR-LINK-TRIGGER-ID">Your link text here</a>

Replace the indicated values with your Link Trigger's URL and ID, as well as the text you'd like the link to display.

Here’s an example of what that might look like using Link Trigger ID 3367666 (remember, your number will be different):

NOTE: When you add a Link Trigger via an HTML block, the Link Trigger won't have any default styling. As a result, it may look plain.

However, you have the option to add CSS to the HTML block to style your Link Trigger's appearance. We have a guide to this here.

When you're done, click the Save button.

We'll automatically save the changes to your email template. Now, whenever you create an email with this email template, the email will contain your Link Trigger.

Add a Link Trigger to an HTML email template

1. Navigate to the email template you want to add the Link Trigger to.

Go to your account's Email Templates page, and click the template you'd like to modify.

2. Add this HTML where you'd like your Link Trigger to appear:

<a href="YOUR-URL-HERE" trigger-id="YOUR-LINK-TRIGGER-ID">Your link text here</a>

Replace the indicated values with your Link Trigger's URL and ID, as well as the text you'd like the link to display.

You can also add inline styles or CSS to style your Link Trigger, and use the Preview Layout button to preview your changes.

3. Save the changes to your template

Click the Save button at the bottom right of the page to save your changes.

Now, whenever you create an email with this email template, the email will contain your Link Trigger.

Did this answer your question?