Skip to main content
Solved

Unsubscibe button syntax error on campaign email


Forum|alt.badge.img

Hello, I am trying to send a marketing campaign email to my subscribers. I have tried several ways to add a ‘unsubscribe’ button in the footer .{% unsubscribe %} does not work. nor does the ‘personalization’ in the text bar that automatically generates the same code. I’ve also tried unsubscribe_link , etc.  Unfortunately my campaign won’t send until this is corrected. This is happening with the shopify plugin for klaviyo on the klaviyo site

Best answer by NudiMoodi

Hey ​@MANSIR2094 

Thank you for taking the time to respond. ultimately, I think I had improperly formatted other items in the footer concerning contact email and the all rights reserved which was creating syntax problems, I eventually got the unsubscribe to work by deleting everything else except for that item.  

View original
Did this topic or the replies in the thread help you find an answer to your question?

4 replies

MANSIR2094
Expert Problem Solver III
Forum|alt.badge.img+17
  • Expert Problem Solver III
  • 266 replies
  • March 3, 2025

hello ​@NudiMoodi 


MANSIR2094
Expert Problem Solver III
Forum|alt.badge.img+17
  • Expert Problem Solver III
  • 266 replies
  • March 3, 2025

To ensure compliance, Klaviyo requires a valid unsubscribe link in every campaign. Try replacing {% unsubscribe %} with {{ unsubscribe }} in a "Rich Text" block. This should resolve the issue.

If not, inserting Klaviyo's default footer from Brand Library > Email Templates > Default Footer is a good alternative. This will guarantee compliance.

For custom HTML users, simply add {{ organization.unsubscribe_link }} as a clickable link.

Still having trouble? Let's troubleshoot further


Forum|alt.badge.img
  • Author
  • Contributor I
  • 1 reply
  • Answer
  • March 3, 2025

Hey ​@MANSIR2094 

Thank you for taking the time to respond. ultimately, I think I had improperly formatted other items in the footer concerning contact email and the all rights reserved which was creating syntax problems, I eventually got the unsubscribe to work by deleting everything else except for that item.  


MANSIR2094
Expert Problem Solver III
Forum|alt.badge.img+17
  • Expert Problem Solver III
  • 266 replies
  • March 3, 2025

Glad you figured it out! ​@NudiMoodi,  Formatting issues can sometimes cause unexpected errors. If you need any further help, feel free to ask.