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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

DTM Static Value to a variable

kishoremcp
Level 1
Level 1

Hi, 

I am new to DTM. I have the below javascript code which i placed in my webpage (index.html). 

<script type="text/javascript">

var analyticsPageData = {

pageName:"Insert Page Name",

UserID:"Kishore"

};

</script>

I have created a data element with Type "JS Object" and set the path as "analyticsPageData.UserID"

Now in Page load rules, I have mapped prop3=%UserID% (UserID is my data element name)

however, when i try to see the end results it is not showing the UserID (prop3 as Kishore but it is showing as D=v3

 

Any body can help me here please. Do I need to change anything in the path or it is something else which I am missing. If it is the path change, what should I keep it?

1 Accepted Solution
Rahsing
Correct answer by
Level 8
Level 8

Kishore,

You're question has been answered on the other thread that you've started here 

Let's continue the discussion on that thread itself. I'm closing this one.

Rahul

View solution in original post

2 Replies
Rahsing
Level 8
Level 8

Hi Kishore,

Could you please post a snapshot of your data element and rule setup? And if possible, the output too.

Rahul

Rahsing
Correct answer by
Level 8
Level 8

Kishore,

You're question has been answered on the other thread that you've started here 

Let's continue the discussion on that thread itself. I'm closing this one.

Rahul

View solution in original post