We have event based logging for page views, so our default page views are logged via Event Based Rules.
Within this rule, I've tried setting a list variable in the Custom Conditions and Custom Page Code, and the list variable only shows up in the network call a fraction of the time.
I've also tried setting it in the Custom Page Code code in the Adobe Analytics Tool settings, but still no luck.
I can confirm that is always added to our s object, because I do a console log to print out the list variable right after setting it.
Has anyone else run into this?
"...the list variable only shows up in the network call a fraction of the time."
I wonder if you happen to be seeing the list var as expected in s.t() calls but not in s.tl()'s.
If this is the case, you probably just need to update your s.linkTrackVars setting to include your list var.
Did Stewart's replies answer your question? If so, would you mind marking one of them as correct.
Should be working... Here's my test:
Setting evar2, eVar3, and server via the AA extension UI (Set Variables)
AA custom code :
s.list1 = "ONE|UNO|EIN";
var trackedVars = s.linkTrackVars.split(",");
s.linkTrackVars = trackedVars.join(",");
_satellite.logger.log("HEY THERE!",s.list1, s.linkTrackVars);
Thanks for the input!
I've tried the following in the customize page code for my page load rule but still no luck:
I've reached out to Adobe client care as well
In the same console.log where you are verifying the value of s.list2, log out the value of s.linkTrackVars. If you do not see "list2" in s.linkTrackVars, you'll want to add it.
Here's the supporting documentation: s.linkTrackVars
So we are trying to capture this list var in the page view calls, not in the link tracking calls.
What is frustrating is that I set the s.list2 and then print it in the console, which works 100% time of testing. However it almost never shows up in the actual network call!