Using the Unsubscribe Variable in Email Templates

Learn how to add unsubscribe links to your email templates using the {{key_unsubscribe_url}} variable.

Published on:

Using the Unsubscribe Variable in Email Templates
Do not index
Do not index

Overview

Add unsubscribe links to your email templates using the {{key_unsubscribe_url}} variable. When your email is sent, this variable is automatically converted into a clickable unsubscribe link.

How to Use

Simply insert `{{key_unsubscribe_url}}` anywhere in your email content where you want the unsubscribe link to appear. The variable will be automatically replaced with a complete anchor tag that links to the unsubscribe page.
Example:
If you no longer wish to receive these emails, please {{key_unsubscribe_url}}.
This will render as:
If you no longer wish to receive these emails, please <a href="...">Unsubscribe</a>.

Alternative Variable

If you only need the unsubscribe URL (not a complete link), you can use {{key_unsubscribeLink}} instead. This will be replaced with just the URL, allowing you to create custom anchor tags with your own styling.

Notes

  • The variable works in all email templates (welcome emails, newsletters, etc.)
  • The unsubscribe link is automatically generated for the right subscriber
  • The link text defaults to "Unsubscribe" when using {{key_unsubscribe_url}}