Hi there,
After modifying our code to use the dynamic templates, I cannot make the unsubscribe link work at all within transactional template. Moreover, half of the documentation seem to be broken.
From the documentation There are 3 ways to add a Global unsubscribe:
1) Add a footer via Settings>Tracking> Unsubscribe (this one works but looks like sh*t)
2) Add a Unsubscribe module via the Design editor (This one does not work)
3) add a <%asm_global_unsubscribe_raw_url%> within an href. This one does not work either.
I feel like this is something related to the {{dynamic_template_data}} changes but I dont see how to fix it and support was not very helpful either.
The payload we pass to the API is :
{'from': {'name': 'Frank', 'email': 'noreply@****.com'}, 'personalizations': [{'to': [{'email': 'axel@****.com'}], 'dynamic_template_data': {'first_name': 'Amber', 'subject_line': 'About your new per: Gas delivered to your car'}}], 'template_id': 'd-*****', 'send_at': 1535046807, 'batch_id': 'NzBhZjY1MjgtYTZmZC0xMWU4LTljZTEtNTI1NDAwZGQzN2EwLWE1MDVmOTIxMA', 'mail_settings': {'sandbox_mode': {'enable': False}}}
Thanks
Hi @axelgrowth
When adding a Global Unsubscribe link there are two options.
1) You can turn on Subscription Tracking, which you mentioned. If you want to format the Global Unsubscribe link in the content of the email, you'll want to create a Replacement tag in the Settings > Tracking > Subscription Tracking page.
2) If you are using Group Unsubscribes and want to have Global Unsubscribe as well, you'll have to use the tag <%asm_global_unsubscribe_raw_url%>. In order for that tag to work, the ASM parameter has to be in the API call. Example here => Link.
Thanks,
Zach
@Zach Thanks that works.
You should put that in the documentation somewhere.
Re-opening so that we can get some docs added in this repo.
Hi! I want to take this up can you provide me some more info as what to do thanks!
Hello @nityanandagohain,
The comment by DrMeloMoney should be added to this directory. Please see the existing files for examples. Thanks!
With Best Regards,
Elmer
Since there has been no activity on this issue since March 1, 2020, we are closing this issue. Please feel free to reopen or create a new issue if you still require assistance. Thank you!
Most helpful comment
Hi @axelgrowth
When adding a Global Unsubscribe link there are two options.
1) You can turn on Subscription Tracking, which you mentioned. If you want to format the Global Unsubscribe link in the content of the email, you'll want to create a Replacement tag in the Settings > Tracking > Subscription Tracking page.
2) If you are using Group Unsubscribes and want to have Global Unsubscribe as well, you'll have to use the tag
<%asm_global_unsubscribe_raw_url%>. In order for that tag to work, the ASM parameter has to be in the API call. Example here => Link.Thanks,
Zach