NOTE: This is an advanced tutorial. If you're just getting started, check out these steps first.

You can include a link trigger directly into your email template.

This will prevent you from having to add the link trigger to every email you send using that template, and is also a great option for custom unsubscribe links.

First, find your link trigger's ID, then add it to a visual or HTML email template.

NOTE: This tutorial is for after your link trigger has already been created. If you need help with that, please follow this tutorial first, and come back when it's ready.

How to find out link trigger's ID

1. Create a new broadcast using the legacy email editor

If you're currently using our visual email editor, you'll have to temporarily switch to our legacy editor to grab your link trigger ID (don't worry, you can switch back to the visual editor afterwards).

If you need to switch to the legacy editor temporarily, just click this link from the sidebar of your broadcast's content page:

The legacy editor looks like this:

2. Add your link trigger to the legacy editor

Type some text in the email editor (it doesn't matter what — we'll be deleting this draft once we have the ID we need), then highlight it and click the link icon in the toolbar > 'Insert link':

Next, select your link trigger from the link trigger dropdown, and then click 'Insert':

3. Switch to HTML mode

Once your link trigger has been added, click this icon in the toolbar to switch to HTML mode:

Now, your email editor should look something like this:

4. Locate and note your link trigger's ID

This number here (yours will be different, though):

Make sure you save your link trigger's ID number somewhere you can access it again, because we'll be using it later.

5. [Recommended] Switch back to visual editor

If you want to switch back to the visual editor for future broadcasts now that you have your link trigger's ID, be sure to click this link from the sidebar:

NOTE: If you forget this step, no problem — just click it the next time you want to use the visual editor.

6. Delete the broadcast draft

As long as your link trigger's ID is saved somewhere, we no longer need this broadcast draft, so feel free to discard it.

Now we're ready to add this link trigger to our email template! Please follow the steps in one of the following sections of this tutorial, based on whether your template uses our HTML or visual editor.

How to add a link trigger to a visual email template

1. Navigate to your template's editor

Click the template you'd like to modify from your account's email templates page.

2. Add an HTML block where you want to add your link trigger

In this case I'd like to add my link trigger above the current unsubscribe link section, so I'm going to add my HTML block there:

3. Click 'Edit' on your HTML block and add the following code:

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

Replace the indicated values with your own link trigger's URL and ID, as well as the text you'd like displayed for the link. If you'd like, you can also add CSS styling to this same HTML block to style your link trigger.

When you're done click the Save button on the HTML block.

4. Save the changes to your template

Save the changes to your template via the Save button in the top right of the page, and that's it!

NOTE: Adding a link trigger via an HTML block means that it won't have any default styling associated with it and as a result, it will probably look quite plain by default. However, you have the option to add CSS code to the same HTML block to style your link trigger's appearance — we have a guide on that here.

How to add a link trigger to an HTML email template

1. Navigate to your template's editor

Click the template you'd like to modify from your account's email templates page.

2. Add the following code 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 own link trigger's URL and ID, as well as the text you'd like displayed for the link. You can also add CSS to style your link trigger, and use the Preview button to preview your changes.

3. Save the changes to your template

When you're ready, click the Save button at the bottom left of the page, and that's it!

How to Use Link Triggers

Did this answer your question?