List Variable is populated in S object but not showing up in Network Calls | Community
Skip to main content
arisd86023996
New Participant
May 11, 2018 7:05 PM UTC
Solved

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

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Stewart_Schilling
Stewart_SchillingAccepted solution
New Participant
Jun 14, 2018 7:17 PM UTC

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

trackedVars.push("list1");

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

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

6 replies

jantzen_b
Employee
Jul 20, 2018 8:59 PM UTC

Did Stewart's replies answer your question? If so, would you mind marking one of them as correct.

Translate
Stewart_Schilling
Stewart_SchillingAccepted solution
New Participant
Jun 14, 2018 7:17 PM UTC

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

trackedVars.push("list1");

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

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

Translate
arisd86023996
New Participant
Jun 14, 2018 3:44 PM UTC

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

Translate
Stewart_Schilling
New Participant
Jun 14, 2018 2:48 PM UTC

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

Translate
arisd86023996
New Participant
Jun 14, 2018 2:31 PM UTC

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!

Translate
Stewart_Schilling
New Participant
May 25, 2018 1:05 AM UTC

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

Translate