No tracking on offer proposition links

Avatar

Avatar
Validate 1
Level 1
PLundmark
Level 1

Likes

0 likes

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
PLundmark
Level 1

Likes

0 likes

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
PLundmark
Level 1

05-11-2020

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?

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Boost 250
MVP
DavidKangni
MVP

Likes

259 likes

Total Posts

372 posts

Correct reply

152 solutions
Top badges earned
Boost 250
Validate 1
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Boost 250
MVP
DavidKangni
MVP

Likes

259 likes

Total Posts

372 posts

Correct reply

152 solutions
Top badges earned
Boost 250
Validate 1
Give Back 5
Give Back 3
Give Back 25
View profile
DavidKangni
MVP

05-11-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

Avatar

Avatar
Give Back 50
Employee
Sukrity_Wadhwa
Employee

Likes

179 likes

Total Posts

944 posts

Correct reply

35 solutions
Top badges earned
Give Back 50
Validate 1000
Validate 500
Validate 250
Validate 100
View profile

Avatar
Give Back 50
Employee
Sukrity_Wadhwa
Employee

Likes

179 likes

Total Posts

944 posts

Correct reply

35 solutions
Top badges earned
Give Back 50
Validate 1000
Validate 500
Validate 250
Validate 100
View profile
Sukrity_Wadhwa
Employee

11-11-2020

Hi @PLundmark,

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

Thanks!