Not able to set list2 in Adobe Launch in custom code

73 Views Asked by At

I am trying to set list2 in my analytics call through custom code but it is not getting set.

This issue comes with s.tl() only while with s.t() method, it is triggered correctly.

Below is the code :-

s.addEvent("event12", true);
s.linkTrackVars = "list2";
s.list2 = "Data"
s.tl(this, "d", "Download", s);

If I place logger just before beacon call, it shows the value. However, when I click the button and check for same, only "event12" get fired and not "list2".

Any help would be highly appreciated.

1

There are 1 best solutions below

0
On

Just tested your code on lululemon:

enter image description here

Conclusion:

You're overwriting either the listvar or the linkTrackVars somewhere else. As @Crayton Mentioned above, doPlugins would be a good spot for it.

But it actually can be overwritten anywhere. In any rule that fires prior, or the s code, or any DE affected.

  1. Paste your code into the console. Execute. Do you see the listvar populated? If yes, then your problem is in rules, so check them. You're not supposed to reassign linktrackvars. Always use the s.apl() plugin.
  2. If no, however, then your problem is definitely in doPlugins. Sometimes I have it when I have silent catches in s code. Pageviews would have all vars populated, but links would have mixed results. Check your error reporting in the catches in doPlugins. I suggest having all code in doPlugins in a try catch.