Note: These instructions use our new broadcast editor. If you are using the legacy broadcast editor, follow these instructions instead.

Want to add custom unsubscribe links to the bottom of all your emails? Rather than having to add these links manually to each email you send, you can add them to your email templates instead.

First things first: 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 get started:

The first order of business is to find your link trigger's ID. Let’s walk through that process.

1. Create a new broadcast using the visual email editor

2. Add your link to the broadcast content

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).

Highlight the text and click on the link icon:

Next, select your link trigger from the link trigger dropdown (make sure you've created your link trigger already - here's how).

Once you've selected the link trigger, click 'Add Link':

3. Preview the Broadcast

Once your link trigger has been added, click on the broadcast preview button:

This will pop open with a browser preview window. Here you’ll want to right click on the link, then click Inspect (Right click > Inspect):

4. Locate your link trigger's ID

In the window that pops up, you're going to find your trigger ID. Don’t worry if this window looks super code-heavy, this will be easier than it seems!

The link trigger ID will look like this (your number will be different):

In the image above, the trigger ID number is 2379210.

Once you've found your trigger ID number, be sure to save it somewhere you can access it again, because we'll be using it later (we suggest copy and pasting it to your clipboard).

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 was created using our HTML or visual template editor.

How to add a link trigger to a visual email template:

1. Navigate to the email template you want to add the link trigger to.

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, we want to add a link trigger above the current unsubscribe link section, so we're going to add our 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.

Here’s an example of what that might look like using the trigger ID number 2379210 (remember, your number will be different):

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?