Expand my Community achievements bar.

SOLVED

Passing dataLayer variable into DTM data elements

Avatar

Level 2

I have been struggling for days on the correct "path" for my mappings, and appreciate your explanation.

As a result of your detailed explanation found here: http://goo.gl/rdZgt4 I have replaced the path:  http://screencast.com/t/UzZY7IaZ06L with the path: http://screencast.com/t/Cuu28nuVI

I am still debugging the mbox parameters from the page load I have firing, ProductDetail:

Why is my CustomerType appearing but not my ProductID?

http://screencast.com/t/8uhwuZqJRUhI

As you see in the debugging panel _satellite.getVar('ProductID') is returning the correct value, but is not showing in the mbox debugger?

Thanks,

David

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi David ,

Yes , They would be exposed in DTM . Please see the below snapshot of the example we have implemented . 

In the above , We are creating our Data Element from "AEM Context Hub" "Custom Data Layer" .

Also, Please see the link https://marketing.adobe.com/resources/help/en_US/dtm/c_custom-data-layer-example.html for more info 

 Thanks & Regards

Parit Mittal

View solution in original post

3 Replies

Avatar

Level 10

Hi David ,

We tried to replicate the issue at our end. However the issue doesn't occur at our end and the Global Mbox parameter "ProductID"  is getting populated on the product detailpage. 

Please find below the Snapshots for the same.

Thanks & Regards

Parit Mittal

Avatar

Level 2

Thanks for checking.  I rolled out a patch to move the population of the JS variable DTMdataLayer above my DTM include and that rectified.  

As a follow up, AEM ContextHub tool and integration in this fashion.  I used the "Customized ContextHub Data Layer" option and added my data layers definition to the bottom of the default and then saved.  I entered DTMdataLayer for the "Data Layer Root" in hopes that this tool would automatically expose these variables.  Perhaps saving a wee bit of time when defining my data elements, as they would be exposed in the DTM?

Avatar

Correct answer by
Level 10

Hi David ,

Yes , They would be exposed in DTM . Please see the below snapshot of the example we have implemented . 

In the above , We are creating our Data Element from "AEM Context Hub" "Custom Data Layer" .

Also, Please see the link https://marketing.adobe.com/resources/help/en_US/dtm/c_custom-data-layer-example.html for more info 

 Thanks & Regards

Parit Mittal