- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
I've changed my approach given the issues faced with using personalization blocks and now everything is working correctly. Given that I still required a centralized repo, I used platform options to store the utm logic
And since my templates were being generated on the back of an API call using content templates, I decided to execute the logic stored as string on the platform options in during the generation of the publication template.
var x = getOption("utm_privateclients");
var utm = Function('return '+x)(); and now the utm structure is appended to the link of the article at the point of generating the delivery template and no need for personalization block this way
and in my javascript template i just use the content link without adding the personalization block anymore