You must have access to the Dynamic Tag Management (DTM) rule creation tool to be able to fire list variables (s.list1, s.list2, and so on) through a custom code in the s.tl() call.
  1. Log on to https://dtm.adobe.com with your DTM credentials or navigate to Marketing Cloud (https://marketing.adobe.com/) > Activation > Dynamic Tag ManagementLaunch.

  2. Select your organization from the Filter By Company Name list.

    8176_1

    Note:

    This page is visible only if you have access to multiple companies.

  3. Select the required web property from the Filter By Property Name list.

    8176_2
  4. From the Rules tab, click the rule on which you want to implement list variables. 

    8176_3
  5. Select the s.tl() call from the Adobe Analytics accordion.

    8176_4
  6. From the Custom Page Code section, click the Open Editor button.

    8176_5
  7. Enter the following custom code for the list variable to be fetched in the image request:

    var _sd_list = "cat"'; 
    _satellite. noti fy(_sd_list, 3); s. linkTrackVars=" listl"; 
    s.listl = _sd_list; 

    In the code, a static value is assigned to the _sd_list variable and then to s.list1.

    8176_6
  8. The following image request appears after the site is executed.

    8176_7

    Note:

    You can create a data element to allocate a dynamic value and set the value of the list variable as displayed in the code.

    s. listl = _satellite. getvar( "%Data_Element_Name%");

    Note:

    In rules where s.tl() is the Adobe Analytics call, DTM does not detect that any variable (s.list1, s.eVar1, and so on) and event declared has been set to s.linkTrackVars and s.linkTrackEvents respectively. Thus, the variables s.linkTrackVars and s.linkTrackEvents must also be updated for all the variables and events declared in the custom code.

    s.linkTrackVars="eVarl, listl,events"
    s.linkTrackEvents="eventl" 
    s.events="eventl" 
    s.evarl="value A" 
    s.listl="value B" 

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy