Not able to use s.linkTrackVars & s.linkTrackEvents.

Avatar

Avatar
Validate 1
Level 2
ParthaS
Level 2

Likes

2 likes

Total Posts

12 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 2
ParthaS
Level 2

Likes

2 likes

Total Posts

12 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
ParthaS
Level 2

15-10-2015

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.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Contributor
MVP
AlexisCazes
MVP

Likes

186 likes

Total Posts

424 posts

Correct reply

198 solutions
Top badges earned
Contributor
Shape 1
Give Back 10
Give Back 5
Give Back 3
View profile

Avatar
Contributor
MVP
AlexisCazes
MVP

Likes

186 likes

Total Posts

424 posts

Correct reply

198 solutions
Top badges earned
Contributor
Shape 1
Give Back 10
Give Back 5
Give Back 3
View profile
AlexisCazes
MVP

15-10-2015

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

Answers (4)

Answers (4)

Avatar

Avatar
Validate 10
Level 2
satishk38346838
Level 2

Like

1 like

Total Posts

31 posts

Correct reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 10
Level 2
satishk38346838
Level 2

Like

1 like

Total Posts

31 posts

Correct reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
satishk38346838
Level 2

26-10-2016

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 .. 🙂 

Avatar

Avatar
Contributor
MVP
AlexisCazes
MVP

Likes

186 likes

Total Posts

424 posts

Correct reply

198 solutions
Top badges earned
Contributor
Shape 1
Give Back 10
Give Back 5
Give Back 3
View profile

Avatar
Contributor
MVP
AlexisCazes
MVP

Likes

186 likes

Total Posts

424 posts

Correct reply

198 solutions
Top badges earned
Contributor
Shape 1
Give Back 10
Give Back 5
Give Back 3
View profile
AlexisCazes
MVP

26-10-2016

Please provide the URL where we can test the issue.

Avatar

Avatar
Validate 10
Level 2
satishk38346838
Level 2

Like

1 like

Total Posts

31 posts

Correct reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 10
Level 2
satishk38346838
Level 2

Like

1 like

Total Posts

31 posts

Correct reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
satishk38346838
Level 2

24-10-2016

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

Avatar

Avatar
Validate 1
Level 2
ParthaS
Level 2

Likes

2 likes

Total Posts

12 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 2
ParthaS
Level 2

Likes

2 likes

Total Posts

12 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
ParthaS
Level 2

15-10-2015

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.