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

Passing dataLayer variable into DTM data elements

davidk4115132
Level 2
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
ParitMittal
Correct answer by
Level 10
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
ParitMittal
Level 10
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

davidk4115132
Level 2
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?

ParitMittal
Correct answer by
Level 10
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