Expand my Community achievements bar.

Adobe Summit 2025: AEP & RTCDP Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

Setting dynamic data in DTM

Avatar

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

Avatar

Correct answer by
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

Avatar

Correct answer by
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.