List Variable is populated in S object but not showing up in Network Calls

arisd86023996

11-05-2018

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?

Accepted Solutions (0)

Answers (6)

Answers (6)

StewSchilling

MVP

24-05-2018

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

StewSchilling

MVP

14-06-2018

Should be working...   Here's my test:

Screen Shot 2018-06-14 at 2.14.09 PM.png

Screen Shot 2018-06-14 at 2.14.55 PM.png

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(",");

trackedVars.push("list1");

s.linkTrackVars = trackedVars.join(",");

_satellite.logger.log("HEY THERE!",s.list1, s.linkTrackVars);

arisd86023996

14-06-2018

Thanks for the input!

I've tried the following in the customize page code for my page load rule but still no luck:

var trackedVars = s.linkTrackVars.split(",");

trackedVars.push("list2");

s.linkTrackVars = trackedVars.join(",");

s.list2= myListVariable;

console.log(s.list2);

I've reached out to Adobe client care as well

StewSchilling

MVP

14-06-2018

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

//example code

var trackedVars = s.linkTrackVars.split(",");

trackedVars.push("list2");

s.linkTrackVars = trackedVars.join(",");

arisd86023996

14-06-2018

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!