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:
.
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:
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:
None of them seem to to be working.
Can I get some information about what I'm not doing correctly?
Thanks.
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
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.
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.
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.
Views
Replies
Total Likes
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.
Views
Replies
Total Likes