Expand my Community achievements bar.

Join us January 15th for an AMA with Champion Achaia Walton, who will be talking about her article on Event-Based Reporting and Measuring Content Groups!
SOLVED

Creation of new eVar list - Debugging problems

Avatar

Level 2

Hi,

 

I'd like to start sending new values to an already created list2 variable that isn't in use. The configuration in Analytics is currently as follows:

 

RaulFo_0-1734606562653.png

We've got an existing custom event configured in Data Collection that tracks and action and send information to Analytics about the user selection within a dropdown on page. This information about the customer choice is sent to Analytics via a standard eVar. All ok with the event and the population of the existing eVar.

 

Now we've got the requirement to send, along with the existing eVar, the same values but in this case to the lis2 variable.

 

I've tried to start sending the required values to the list2 variable using the custom code feature within the very same event as follows:

 

RaulFo_3-1734607653043.png

 

I'm using the same custom dimension that I've used for the standar eVar (already working fine) but I can't see the list2 variable when I check the Analytics' server call in the console. 

 

I've tried with this other testing custom code within the event configuration:

 

RaulFo_2-1734606862130.png

 

None of them seem to to be working. 

 

Can I get some information about what I'm not doing correctly?

 

Thanks.

 

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 2

Hi @RaulFo ,

If you are trying to send this information in a s.tl() call (a link track call/non page view call) then please check and make sure that list2 is added to s.linkTrackVars variable before the s.tl() call is triggered.

View solution in original post

3 Replies

Avatar

Correct answer by
Level 2

Hi @RaulFo ,

If you are trying to send this information in a s.tl() call (a link track call/non page view call) then please check and make sure that list2 is added to s.linkTrackVars variable before the s.tl() call is triggered.

Avatar

Community Advisor and Adobe Champion

Yep, this is probably the issue... while the page view (s.t) calls will send everything that is set on the page... the action calls (s.tl) need to be told what to sent (this is because you don't always want everything that is set to be included....)

 

In the old days, developers would have to manually set the list of variables to send as part of any action:

s.linkTrackVars = "prop1,prop2,eVar1,eVar2,events";
s.linkTrackEvents = "event1,event2,event27";

 

 

Adobe Launch mostly does this for you... based on what values are set in your Set Variables config... but for some reason, Lists are absent from this configuration (which you're already aware of, since you are setting the list via code).

 

However, the linkTrackVars is being set without the list included... and rather than try to list ALL the items (since next time you add something, you will likely forget to manually update your linkTrackVars, you can actually just dynamically append your list2 to it:

 

s.list2 = _satellite.getVar('mylist2');
s.linkTrackVars += ",list2";

 

This will take the already configured list of values in linkTrackVars and tack on ",list2" to the end of it.

Avatar

Level 2

Hi both,

 

I've tried with the following code and it's working now, getting both the standard eVar and the list eVar populated as expected along with the event (set up out of the custom code section):

 

s.linkTrackVars= 'eVar61,list2';
s.eVar61 = _satellite.getVar('example1');
s.list2 = _satellite.getVar('example1');

 

Thank you.