Tracking url in the variable content | Community
Skip to main content
Level 2
October 26, 2018
Solved

Tracking url in the variable content

  • October 26, 2018
  • 1 reply
  • 2114 views

Hi:

we have a case need to pass some html blocks as a variable to the messagecenter template.

so the template structure is:

<html>

     <%=rtEvent.ctx.contentBlock%>

</html>

This works perfectly fine in terms of html rentering.

however, if I have a link the contentBlock, it wont get escaped and tracked by the Adobe campaign.

for example, we pass:

<div>

    <a href="https://www.google.ca>"

</div>

Is there a way to make this work?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by pablo_rosero1

Hi Chi Ding,

Are you sure you're correctly formatting your HTML?

<div>

    <a href="https://www.google.ca">Google</a>

</div>

Let me know if this helps.

1 reply

pablo_rosero1
pablo_rosero1Accepted solution
Level 9
November 16, 2018

Hi Chi Ding,

Are you sure you're correctly formatting your HTML?

<div>

    <a href="https://www.google.ca">Google</a>

</div>

Let me know if this helps.