Expand my Community achievements bar.

event111 should fire in every page but When I do s.events ="event840:" + dataLayer. jobID it is override not giving event111 just getting event840

Avatar

Level 1

this is the logic I have written

s.events = "events840:" + dataLayer.jobID;

s.linkTrackVars += ",events";

s.linkTrackEvents ="event840";

s.tl();

 

Please give me solution what works to get both event111 and event840:jobID 

2 Replies

Avatar

Level 2

Hi @satya-sravani ,
Please make sure you are not using s.clearVars anywhere between your previous and current request.

Also, try including event111 in s.events variable as it will re-initialize when declaring like shown above.

 

Thanks,

Kanmani S

Avatar

Community Advisor

Hey @satya-sravani 

 

Am I missing something in the above code snippet ? I don't see event111 anywhere in the code.