Add an Unsubscribe Link

Every email campaign sent through Mailchimp is required by law to include an unsubscribe link. To help you remain compliant, our *|UNSUB|* merge tag automatically generates the link for you. Most Mailchimp templates include this merge tag by default, but sometimes you may need to add one manually.

In this article, you'll learn how to add an unsubscribe link to any editable text area in your email campaign.

Before You Start

Insert in Source Code

If you're comfortable working in the source code of a Mailchimp campaign, you can insert the unsubscribe link directly into the HTML of an editable area.

To insert the unsubscribe link directly into the HTML of an editable area, follow these steps.

  1. In the Content section of the Campaign Builder, click Edit Design.
  2. Click anywhere in a text content block to edit it.
  3. Click the < > source icon.
    Source code button
  4. Add the following code where you want your unsubscribe link to appear:

    <a href="*|UNSUB|*">Unsubscribe from this list.</a>
  5. Click the < > source icon again.

  6. Click Save & Close.

Insert in Custom Code

You can still add the unsubscribe merge tag in a custom-coded a template or campaign. Copy and paste the following code anywhere you want the link to appear.

<a href="*|UNSUB|*">Unsubscribe from this list.</ a>

Insert in Plain-Text Campaign

For a plain-text campaign, type the merge tag in as regular text, like the following example. After you send your campaign, the tag will be replaced with the URL to your Mailchimp-hosted unsubscribe form.

Unsubscribe from this list: *|UNSUB|*


Merge tags only work when campaigns are sent. While a campaign is in draft or paused mode, you'll continue to see the tag itself. Learn how to preview and test merge tags.

Troubleshoot the Unsubscribe Tag

If Mailchimp doesn't recognize an *|UNSUB|* tag you've inserted, here are a few things to check.

  • Are you using your own unsubscribe link? If so, the system will not recognize it. We require that our own unsubscribe merge tag be used: *|UNSUB|*. If you are using your own HTML, you can use the code in the Insert in Custom Code section of this article.
  • Do you have comments in your html? A comments tag left open will cause the system to not see your UNSUB tag.
  • Did you use Word to create the content in your email campaign? The junk code Word pulls into the background of your campaign can interfere with our processing the unsubscribe tag. If you originally used Word, remove the junk code to remove any HTML code that interferes with the merge tag.

Was this article helpful?

Anything else we can do to improve our site?