Unsubscribe
URL
/unsubscribe
Screenshots
form
confirmation
Structure
unsubscribe.html.liquid
├── _header.html.liquid
└── _footer.html.liquid
Template Considerations
The Unsubscribe template exposes a token variable which returns an auto-generated token needed to authorize the action of unsubscribing from the emails. Based on the value of the token variable you can differentiate between the form page (token not empty) and the confirmation page (token is empty).
Form
The Unsubscribe page uses an HTML form to handle the CTA button. Please make sure you're not overwriting its internals:
- the
actionandmethodattributes on the<form>HTML tag - the
form_authenticity_tokenLiquid tag inside the<form>HTML tag - the name attribute on the
<input>HTML tags
Updated 12 months ago
