No tracking on offer proposition links | Community
Skip to main content
Level 2
November 5, 2020
Question

No tracking on offer proposition links

  • November 5, 2020
  • 2 replies
  • 1385 views

We have created a custom html rendering function for offers.

Links in the rendered html does for some reason not get tracked (neither click tracking nor proposition tracking).

 

The offer html is injected in an email using content manager. Other links in the email are tracked.

When we inject offer html as "unrendered" raw html the links get tracked.

 

The reason for the custom html rendering is usability for the marketing staff managing the offers.

Fields are presented in the offer in a similair way as the content manager and the rendering function will make the html into the same structure used in the content manager.

 

Notable is that if a link is edited into a text in the offer (ie written manually as <a href="...) then that link is getting tracked. But the rendered links on image and button are not getting tracked. 

 

After some research and testing it seems like the tracking does not work when run through a function that adds utm properties to the link. Or even worse it works only when running the function on the textpart with a url (or several urls) as part of the text but it does not work when just running the url.

AND it does not work when I create a static string identical to the text with a url (that works) and run that through the function.

 

The content attributes in the schema of offers seem to be duplicated with _jst as suffix. The original url attribute is used (Destination URL (view/trackedUrls/url) No) but the text part that works is custom (view/mainText). Can this somehow have an effect on the tracking behavior?

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

2 replies

DavidKangni
Community Advisor
Community Advisor
November 5, 2020

Hi,

 

To have offers links tracked you should add urlType=11.

Here is an example

'<a _urlType="11" href="'+url+'" target="_blank" title="'+urlTitre+'" style="border:none; line-height:1; margin:0; outline:none; padding:0; text-decoration:none;">';

 

Thanks,

David

David Kangni
Sukrity_Wadhwa
Community Manager
Community Manager
November 11, 2020

Hi @plundmark,

Was the given solution helpful to resolve your query? Do let us know.

Thanks!

Sukrity Wadhwa
PLundmarkAuthor
Level 2
November 11, 2020
No this was not was I was looking for.