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

Custom dynamic tracking labels

androd58052764
Level 2
Level 2

Hi,

I'm currently working on a workflow where a flat file is loaded and has the following structure:

content

[{"title": "Title 1", "url": "url-comes-here"},{"title": "Title 2, "url": "url-comes-here2"}]

I do an enrichment with the profiles and the imported data and pass it to the delivery.
In the delivery, I do the following:

<% var content = JSON.parse(context.content);

   content.forEach(function(item) { %>

   <p><a href="http://blabla.com/<%= item.url %>" _label="<%= item.title %>"><%= item.title %></a></p>

<% }); %>

If I check the "Tracked URLs" section, I see this:

Schermafbeelding 2018-11-14 om 14.56.49.png

I would expect, if I test this and click on the links and check the tracking logs afterwards, that the label is translated to either "Title 1" or "Title 2", but it just shows "<%= item.title %>"

Can anyone help me out here?

Kind regards,

Andro

0 Replies