Expand my Community achievements bar.

SOLVED

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

Avatar

Level 1

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!

1 Accepted Solution

Avatar

Correct answer by
Employee

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.

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

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.