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
BedrockMission!

Learn More

View all

Sign in to view all badges

No tracking on offer proposition links

Avatar

Avatar
Validate 1
Level 1
PLundmark
Level 1

Likes

0 likes

Total Posts

8 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

8 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
Validate 1
MVP
DavidKangni
MVP

Likes

247 likes

Total Posts

358 posts

Correct Reply

142 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Validate 1
MVP
DavidKangni
MVP

Likes

247 likes

Total Posts

358 posts

Correct Reply

142 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back 25
Give Back 10
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
Validate 500
Employee
Sukrity_Wadhwa
Employee

Likes

133 likes

Total Posts

806 posts

Correct Reply

35 solutions
Top badges earned
Validate 500
Validate 250
Validate 100
Validate 25
Validate 50
View profile

Avatar
Validate 500
Employee
Sukrity_Wadhwa
Employee

Likes

133 likes

Total Posts

806 posts

Correct Reply

35 solutions
Top badges earned
Validate 500
Validate 250
Validate 100
Validate 25
Validate 50
View profile
Sukrity_Wadhwa
Employee

11-11-2020

Hi @PLundmark,

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

Thanks!