Custom dynamic tracking labels

Avatar

Avatar

androd58052764

Avatar

androd58052764

androd58052764

14-11-2018

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

Accepted Solutions (0)

Answers (0)