Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

Avatar

Level 1

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?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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);

View solution in original post

6 Replies

Avatar

Community Advisor

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

Avatar

Level 1

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!

Avatar

Community Advisor

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

Avatar

Level 1

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

Avatar

Correct answer by
Community Advisor

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);

Avatar

Level 10

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