in AJO dynamic URLs not getting tracked
Hi Team,
We have a AJO journey where we are fetching some data like Text and URL using a API call in a custom action and then using the variable fields like: {{{offerCard.offerCardImage.body}}} and {{{offerCard.offerCardImage.url}}} to populate the details in the HTML email.
Its working fine but for the URL part we had to use <a href="{{{offerCard.offerCardImage.url}}}">Click Here</a> due to which AJo is not able to track the URL in reporting as well as its not able to encode the URL with the UTM parameters like it does for the hardcoded URLs.
I have tried using <a href="https://{{{offerCard.offerCardImage.url}}}">Click Here</a> but it gives me an error saying: Personalisation not allowed in domain.
Also if I do like this: <a href="https://{%= (replace(offerCard.offerCardImage.url, "https://", "")) }">Click Here</a> the double quotes get converted into the code " breaking the HTML while saving.
same happens with: <a href='https://{%= (replace(offerCard.offerCardImage.url, "https://", "")) }'>Click Here</a> using single quot in the href part
Has anyone faced the issue before and if yes how do i get around this so that the URL is populated dynamically and also is tracked
Please let mek nwo if any further details are needed. Also, Please let me know if anyone has any workaround or a solution to this. It would be very helpful.
Thanks,
Mohit