Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

The 4th edition of the Campaign Community Lens newsletter is out now!
SOLVED

Tracking url in the variable content

Avatar

Level 2

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?

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

Avatar

Correct answer by
Level 10

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.