Expand my Community achievements bar.

Join Cristinel Anastasoaie, Timothy Furlow, and Brent Kostak, WEDNESDAY, 2/28/24 @8am PT for the next Adobe Target Community Q&A Coffee Break on topics from the recent High Performance Recommendations Webinar PT 2 of the ongoing Target Personalization Maturity Webinar Series
SOLVED

Target Global Parameter passed via DTM not working

Avatar

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

Avatar

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

Avatar

Level 4

Hi Yogita,

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

Regards,

Ketan Pardeshi.

Avatar

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

Avatar

Level 3

thanks a lot. I quickly try this.

Avatar

Level 4

Sure .

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

Regards,

Ketan Pardeshi

Avatar

Level 3

its not working

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