Expand my Community achievements bar.

SOLVED

DTM Static Value to a variable

Avatar

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

Avatar

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

Avatar

Level 8

Hi Kishore,

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

Rahul

Avatar

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