Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!

No tracking on offer proposition links

Avatar

Level 2

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?

3 Replies

Avatar

Community Advisor

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

Avatar

Administrator

Hi @PLundmark,

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

Thanks!



Sukrity Wadhwa