Unsubscribe with Subscription Tracking
Subscription tracking offers the following features:
- Adds and customizes an unsubscribe link to the bottom of your email messages.
- Creates a replacement tag that allows you to put the unsubscribe link anywhere you would like using HTML.
- Incorporates the list-unsubscribe header in your email messages.
- Log in to the legacy Twilio Console.
- Go to Settings > Tracking.
- Click Subscription Tracking. The Subscription Tracking panel appears.
- Toggle Setting State to Enabled.
- Click Save.
Complete the procedure in Turn on Subscription Tracking. Twilio SendGrid adds the default unsubscribe link to the bottom of your email messages.
- Log in to the legacy Twilio Console.
- Go to Settings > Tracking.
- Click Subscription Tracking. The Subscription Tracking panel appears.
-
Scroll to the HTML Unsubscribe Content box.
-
Change the content to meet your needs. To format your content, use the formatting tools.
If you'd like to unsubscribe and stop receiving these emails <% click here %>.Place the text that links to your landing page inside the
<% %>tags.In the default example, recipients click "click here" to unsubscribe.
-
Click Save.
To add an HTML code snippet to the body of your email message, edit the Replacement Tag box within the app Subscription settings.
-
Log in to the legacy Twilio Console.
-
Go to Settings > Tracking.
-
Click Subscription Tracking. The Subscription Tracking panel appears.
-
Write a replacement tag within the Replacement tag box. You can then use that tag within the HTML. The unsubscribe URL replaces this tag.
-
To add your unsubscribe link to your HTML code, add the word
[unsubscribe]as the hypertext reference in the anchor tag (<a>).1<p>2To stop receiving these email messages3<a href="[unsubscribe]">click here</a>4</p> -
Click Save.
A landing page serves as the target of an unsubscribe link. To create the page that appears after a recipient clicks the unsubscribe link, complete the following steps.
- Log in to the legacy Twilio Console.
- Go to Settings > Tracking.
- Click Subscription Tracking. The Subscription Tracking panel appears.
- Edit the text inside the SendGrid landing page box.
- Click Save.
When a recipient clicks the unsubscribe link, they get redirected to your landing page.