Custom Unsubscribe Links

Note: this is article is for advanced users. If you are just getting started with ConvertKit don't bother with this right now. Get everything else setup first.

You're required by anti-spam laws to have an unsubscribe link in the footer of every email. The default unsubscribe link, when clicked, will unsubscribe them from everything. That's normal and expected, but what if someone only wants to opt-out of a specific sequence?

In this article we'll set up a custom link that removes a subscriber from only one thing!

In this Article

Create a new rule

Set up the link trigger

Add the link trigger to your template

Additional Options

Start with Link Triggers

To get started, you'll need to first set up a link that triggers an  automation rule. You can use this to add or remove a subscriber from a tag, sequence, etc.

1. Create a new rule

Set up a rule with a link (point the Destination URL to a page on your site that says something like: "Great! You're opted out of [sequence name].") Then the action should be set to unsubscribe them from the desired sequence. 

Note: You may also want to add a tag here that specifies they have opted out, so the subscribers are easy to find later and follow up with, unsubscribe fully, or exclude from other emails.

Go to any email and click the link icon to add a new link. Then select your trigger from the drop down menu.

With that you have a link that, when clicked, will unsubscribe them from just that sequence!

3. Add the link trigger to your template

The steps above show how to add a link trigger to a single email, but let's say you want to add it to every email (or a template you use for a specific sequence). To do that, go to Account Settings > Email Template.

a. Create a new template

Then create a new template and copy and paste in the source from the Text Only template to use as a starting point.

b. Get the link trigger code

Now go back to your sequence email where you added the link trigger and switch over to the code view. There you will see the HTML that is used to generate that link trigger.

That trigger-id="664075" part is important because it tells the link what action to take when someone clicks it. So using this example, the custom unsubscribe link would look like this:

<a href="https://app.convertkit.com/preferences-confirmed" trigger-id="664075">Opt-out of this sequence</a>

Note: make sure the link URL and the trigger ID match what you have setup for your account.

c. Paste the link trigger into your new template

Add the custom unsubscribe link to your new template down near the unsubscribe link at the end. Just like that you have one link that unsubscribes from everything and another that only opts a subscriber out of a specific sequence.

d. Customize your main unsubscribe link

Now it may be confusing to have the two links next to each other without explanation. So you can update the text on your main unsubscribe link.

To do that instead of using the {{ unsubscribe_link }} shortcode you want to swap it out for a standard <a> tag with the {{ unsubscribe_url }} shortcode (note link vs url in those). That new shortcode needs to sit inside the HREF of an <a> tag.

<a href="{{ unsubscribe_url }}">Unsubscribe from everything.</a>

So the final version could look like this:

Want to change the color of your unsubscribe link? That takes 2 steps.

1)  Add this to the CSS between the <style></style> brackets of the html: 

a.unsubscribe-link { color: #48639C; }

Then you'll target that command specifically in the footer with this...

2)  Target that command specifically in the footer with this:

<a href="{{ unsubscribe_url }}" class="unsubscribe-link">Unsubscribe from everything.</a>

Note: You can change that color to match your own.

e. Use your new template

For all of this to work, you need to make sure that your new template is in use. You can use it for all emails in your account by setting it as the default email template, or you can go into your sequence settings and make it the template for just that sequence. The second option probably makes more sense in most cases.

Additional options

Just like you used this trigger to unsubscribe from a sequence, you could use it to add a tag. Then you could use that to exclude subscribers from a sequence (in the sequence settings). Many people prefer this method since it is more flexible than an unsubscribe.

But whatever method you choose, adding the link click trigger works the same.


Choose between Live Chat or Email. Either way, we're here for you.

CLICK HERE TO START CHATTING
 CLICK HERE TO SEND US AN EMAIL

Still need help? Contact Us Contact Us