Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Setting dynamic data in DTM

Erika_Barber
Employee
Employee

Within the Rules or Global Variables, can you set eVars etc. only to a string or can you set it to a JS variable or something?

1 Accepted Solution
Erika_Barber
Correct answer by
Employee
Employee

You can use the %var% syntax to include Javascript variables.  First setup a Data Element in DTM.  Then you can insert the name of your Data Element between percent signs in a rule or your Analytics setup and DTM will dynamically populate the value.  You have several ways to define a Data Element, one of which is a JS object.

View solution in original post

1 Reply
Erika_Barber
Correct answer by
Employee
Employee

You can use the %var% syntax to include Javascript variables.  First setup a Data Element in DTM.  Then you can insert the name of your Data Element between percent signs in a rule or your Analytics setup and DTM will dynamically populate the value.  You have several ways to define a Data Element, one of which is a JS object.

View solution in original post