Hi Team,
I am using "Third Party Tag" section of DTM for hosting my code but in this section I am facing couple of problems -
1. It doesn't recognize any reference of s object.
2. I was able to create a reference of s object (var s=new Appmeasurement();) but not it doesn't recognize any of the methods of s object like s.linkTrackVars & s.linkTrackEvents.
So for custom link tracking how do I solve the problem of using s.linkTrackVars & s.linkTrackEvents in Third Party Tag section? In general how do I use s object in Third Party Tag section of DTM?
Please help.
Regards,
~Partha.
Solved! Go to Solution.
Hi Partha,
The Adobe Analytics object from the tool is local to DTM web property and cannot be used as it is in the third party code section.
Use the following code:
var s = _satellite.getToolsByType('sc')[0].getS(); s.linkTrackVars="prop1,events"; s.linkTrackEvents="event1"; s.events="event1"; s.prop1="test"; s.tl(this,"o","test",null,"navigate");
All of the Adobe Analytics tool have a type of sc, so if you have more than one tool, make sure to select the right index.
Please confirm if it solves your issue.
Best regards.
Alexis Cazes
Senior Technical Support Engineer
Hi Partha,
The Adobe Analytics object from the tool is local to DTM web property and cannot be used as it is in the third party code section.
Use the following code:
var s = _satellite.getToolsByType('sc')[0].getS(); s.linkTrackVars="prop1,events"; s.linkTrackEvents="event1"; s.events="event1"; s.prop1="test"; s.tl(this,"o","test",null,"navigate");
All of the Adobe Analytics tool have a type of sc, so if you have more than one tool, make sure to select the right index.
Please confirm if it solves your issue.
Best regards.
Alexis Cazes
Senior Technical Support Engineer
Hi Alexis,
Thanks for responding and your are absolutely correct.
I had already implemented it last week and it is working fine - that is the only way to do it.
Take care,
~Partha.
Views
Replies
Total Likes
Hi,
Same code, I have been implemented but showing "Cannot set property 'linkTrackVars' of null" in the console.
Kindly help how to set eVars,events and props using S object in custom script.
Thanks & Regards,
Satish Kumar G
Views
Replies
Total Likes
Please provide the URL where we can test the issue.
Views
Replies
Total Likes
I am working in my local environment. Kindly let me know how to set eVars and props by using Custom script in Page load Rules/ Even based rules( DTM) .
Need to follow any steps? guide me .. :)
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies