javascript - s.tl() call not setting eVar -


i trying s.tl() pass evar call firing without passing evar , can't work out why, have used same code via load rule on same page works.

working code

   settimeout(function(){    s.linktrackvars='evar17';    s.evar17 = _satellite.data.customvars.hl_ab;     s.tl(true,'o','hook logic'); },5000); 

non working code

settimeout(function(){ s.linktrackvars='evar38'; s.evar38 = _satellite.data.customvars.goog_as; s.tl(true,'o','adsense tracking'); }, 5000); 

i have tried send data on context data, changed js var instead of dtm var nothing, if s.linktrackvar line being treated blank, if var empty still set null.

however getting var return in console, added timeout make sure available when call runs.

any ideas?

in test pixel isn't showing evar38, _satellite.data.customvars.goog_as not either undefined or empty? i'd suggest add following settimeout function before s.tl:

_satellite.notify("goog_as custome var '" + _satellite.data.customvars.goog_as + "'", 1); 

then run test again, dtm debugging on, , see if value blank. think scenario variable either undefined or blank, in case not passed query parameter in s.tl() tracking call.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -