On page A, I have a s.tl ()
call "Link A" where I am filling out evar1
and triggering an incident 1, click on the link on page A
p
Click on $ (document) .on ('click', 'nav.navbar-nav subnav-breadcrumb a', function () {if ($ (this) .text (). ToLowerCase (). IndexOf ('create Group ')! = - 1) {s.events = "event1"; s.linkTrackEvents = "Event 1"; S.Vier 1 = "Step1"; s.linkTrackVars = "eVar1, Event"; s.tl ( Truth, 'o', 'step1');}});
On the pagolode of page B, in the Plugins section, I try to set the eVar
in the current s.tl () Call by the following code
function s_doPlugins (s) {console.log (s.getPreviousValue (s.eVar1, 'cookie_name', 'event1')}
However, I get the value of 'undefined'. What getPreviousValue ()
plugin does not work on the last s.tl ()
call? I am doing wrong here?
, because you s.getPreviousValue)
This only Stores will trigger that has been set specified events (both in your case and doctor instance, it is event1
).
Since you are setting event
in the link click, s.getPreviousValue ()
triggers because s_doPlugins
All calls are made to st ()
and call s.tl ()
, at that point you should see the value in your cookie_name
cookie (If you are using the combined cookie plugin, look in the s_pers
cookie).
However, on the next page (page B) event1
is not set, so when s_doPlugins
is called on-page Saint ()
call, s.getPreviousValue ()
will not update / return the previous price
In other words, when you specify an event in the third argument, then the only plugin is triggered when the specified event exists in s.events
is. Basically the first thing is that if the third RGR is present then go through s.events
and see if it is there. If it is not so, then the function ends with a return value (and therefore returns you undefined
)
I'm not sure what you really get But in my experience there are not many uses to specify an event in the third argument
No comments:
Post a Comment