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

Target Global Parameter passed via DTM not working

YogitaBist
Level 3
Level 3

ryanr8ameliaw95025277

I followed the instructions given in the help link to pass global mbox parameters but its not working.

help article referred : Passing Parameters to a Global mbox

I followed the below steps....

I created a data element 'prodctCategory'.

Untitled.png

Post this, I created Global Parameter

productCategory  %prodCategory%

Am I, missing out on something ?

Regards

Yogita

1 Accepted Solution
ketangp28686788
Correct answer by
Level 4
Level 4

Hi yogita,

data layer example :

<script type="text/javascript">

      window.dataLayer= {

           'pagename':"indexPage",

           'City' : "Mumbai"

                            }    

</script>

Since you are using data Layer here you can do it like this.

Go to the data element create new -> type JS object -> path you can set like

dataLayer.City

This will access the value in global parameters.

Regards,

Ketan Pardeshi

View solution in original post

8 Replies
ketangp28686788
Level 4
Level 4

Hi Yogita,

Is this your data Layer element that you are passing mktgData['prodCategory'] ?

Regards,

Ketan Pardeshi.

ketangp28686788
Correct answer by
Level 4
Level 4

Hi yogita,

data layer example :

<script type="text/javascript">

      window.dataLayer= {

           'pagename':"indexPage",

           'City' : "Mumbai"

                            }    

</script>

Since you are using data Layer here you can do it like this.

Go to the data element create new -> type JS object -> path you can set like

dataLayer.City

This will access the value in global parameters.

Regards,

Ketan Pardeshi

View solution in original post

ketangp28686788
Level 4
Level 4

Sure .

If It solves your issue please mark this question as answered.

Regards,

Ketan Pardeshi

YogitaBist
Level 3
Level 3

its not working

i changed it to mktgData.prodCategory. The value is passing in console but not working from DTM.