You will learn
Find out how to include an unsubscribe link in your Klaviyo email campaigns and flows.
The importance of including an unsubscribe linkThe importance of including an unsubscribe link
Klaviyo requires an unsubscribe link to be present in all emails. Why?
For one, it's the law. The CAN-SPAM Act requires that all commercial emails "must include a clear and conspicuous explanation of how the recipient can opt out of getting email from you in the future." You also must honor a recipient’s opt-out request within 10 business days.
Including an unsubscribe link is critical to maintaining a strong sender reputation. If you don't allow recipients to opt out and decide if/when they want to stop receiving your emails, they are more likely to mark your email as spam through their inbox service. Spam complaints are serious and can significantly damage your email deliverability. If your abuse rate hits even 0.1%, mailbox providers (like Gmail, Hotmail, and Yahoo) will start to consider you a "bad sender" and take matters into their own hands, filtering your emails as spam for all recipients.
What if I forget?What if I forget?
If Klaviyo doesn't detect an unsubscribe tag in one of your emails, it will automatically add an unsubscribe link at the bottom of your email that includes a basic unsubscribe tag.
Add an unsubscribe linkAdd an unsubscribe link
By default, the basic tag will generate a link with the text "Unsubscribe."
- Navigate to your email template.
- Select an existing text block or add a new one into your email.
- Click Personalization.
- From the All types menu, select Links and preview.
- Select Unsubscribe.
When a recipient clicks a Klaviyo unsubscribe link, they will be taken to a confirmation page to confirm the unsubscribe request.
Style the unsubscribe linkStyle the unsubscribe link
You can style the text for an unsubscribe however you'd like inside of the text editor. Note that the tags below are supported for all emails sent through Klaviyo (i.e., those built with the drag-and-drop editor, text-only emails, and custom HTML emails).
To customize the text for the generated link:
- Insert the tag:
{% unsubscribe %}
- Add two single quotation marks after unsubscribe with the text you want:
{% unsubscribe 'YOUR UNSUBSCRIBE TEXT' %}
Troubleshooting a broken unsubscribe link
If you use the default {% unsubscribe %}
tag in a button or as the URL for a text link, it will break. This is because the default unsubscribe tag generates a full HTML link, not just a URL.
If this happens, use the following tag instead: {% unsubscribe_link %}
This tag provides more control than the default tag, as it generates just the unsubscribe URL. To use it:
- Add it to the URL field when hyperlinking text.
- Add it to a button block's Link address field.
- Using custom HTML, place the unsubscribe tag within <a href></a> tags:
<a href ="{% unsubscribe_link %}" style="color: red;">Unsubscribe here.</a>
Add one-click unsubscribe to meet Yahoo and Google sender requirements
There is no action you need to take to meet Google and Yahoo’s one-click unsubscribe requirement for bulk senders. Klaviyo automatically adds code to the header of every email you send to enable one-click unsubscribes for supported inboxes. Learn more about Yahoo and Google’s email sender requirements.
Unsubscribe link best practicesUnsubscribe link best practices
It’s best practice to make your unsubscribe link visible and easily accessible. Making it easy to unsubscribe can reduce customer frustration, and is a requirement for many inbox providers.
Follow these best practices to ensure your unsubscribe link is easy to find:
- Use colors that meet accessibility standards. Ensure there is high contrast between the text and background color.
- Don’t use a font size that is substantially smaller than the surrounding text.
- Don’t bury your unsubscribe link in a long sentence, or change the hyperlinked word to something hard to scan.
- Use a link color that stands out from the rest of your text. Don’t manually change the link color so it blends in and is hard to read.