How to set a list Var and products variable in a page load rule in DTM? | Community
Skip to main content
Archana_Singh
October 22, 2017
Solved

How to set a list Var and products variable in a page load rule in DTM?

  • October 22, 2017
  • 1 reply
  • 3392 views

I have two data elements. I want to assign it to a list Var and products variable respectively in a page load rule. Need help with the custom script to do this.

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by abhijmis

Hi Archana,

In the 'Custom Page Code' section for Adobe Analytics within your Page Load Rule, you can define both the products variable and the list variable in the same manner as it's implemented in standard javascript implementation. I'm sharing a generic example below:

s.products="category;product;unit;revenue";

s.list1="value1|value2"

Typically, you'd want to use data elements to assign values to these variables by using "_satellite_getVar('data element name')" for both of these variables.

1 reply

abhijmisAdobe EmployeeAccepted solution
Adobe Employee
October 23, 2017

Hi Archana,

In the 'Custom Page Code' section for Adobe Analytics within your Page Load Rule, you can define both the products variable and the list variable in the same manner as it's implemented in standard javascript implementation. I'm sharing a generic example below:

s.products="category;product;unit;revenue";

s.list1="value1|value2"

Typically, you'd want to use data elements to assign values to these variables by using "_satellite_getVar('data element name')" for both of these variables.