Target Global Parameter passed via DTM not working

Avatar

Avatar

YogitaBist

Avatar

YogitaBist

YogitaBist

12-02-2018

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

ketangp28686788

Avatar

ketangp28686788

ketangp28686788

12-02-2018

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

Answers (7)

Answers (7)

Avatar

Avatar

YogitaBist

Avatar

YogitaBist

YogitaBist

13-02-2018

ketangp28686788

It's working now. Thanks a lot for your help.

Untitled.png

Avatar

Avatar

ketangp28686788

Avatar

ketangp28686788

ketangp28686788

12-02-2018

Sure .

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

Regards,

Ketan Pardeshi

Avatar

Avatar

ketangp28686788

Avatar

ketangp28686788

ketangp28686788

13-02-2018

Glad to know it worked !

Avatar

Avatar

YogitaBist

Avatar

YogitaBist

YogitaBist

12-02-2018

its not working

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

Avatar

Avatar

YogitaBist

Avatar

YogitaBist

YogitaBist

12-02-2018

thanks a lot. I quickly try this.

Avatar

Avatar

YogitaBist

Avatar

YogitaBist

YogitaBist

12-02-2018

Yes.

Avatar

Avatar

ketangp28686788

Avatar

ketangp28686788

ketangp28686788

12-02-2018

Hi Yogita,

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

Regards,

Ketan Pardeshi.