How to set a list Var and products variable in a page load rule in DTM?
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!
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!
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.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.