Unsubscribe Link
Summary / TL:DR: This article will show you how to utilize unsubscribe links inside an email template.
1 min read
In order to utilize unsubscribe links inside of an email template, you need to take care of two items.
Adding the link Algorithm
In order for unsubscribe links to work properly, you must include the Link Algorithm shared asset within your email template. This should be included after your <HTML> opening tag.
<shared_asset> bsft_Link_Algo </shared_asset>
Note:Â You only need to add the link algorithm once per mailing. The actual name of the Shared Asset might differ from the one represented here.Â
Defining an Unsubscribe Link
Within your email templates, your <a> tags need to be modified to include the unsub_link variable using liquid script.
<a href="{{unsub_link}}">Unsubscribe</a>
Important Note: You must have your unsubscribe links defined inside of the link algorithm and your base list transaction starred in the advanced segment builder.
Putting it all together
A typical HTML email might look like the following
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>My Nifty Email</title>
</head>
<shared_asset> bsft_Link_Algorithm </shared_asset>
<body>
Hi there, I am an unsubscribe link <a href="{{unsub_link}}">Unsubscribe</a>
</body>
</html>
Wrap up
You should now know how to utilize unsubscribe links inside an email template.
Still need help?
We know this can be frustrating. To get further help please open a Support ticket.
Â