Closed hoake closed 4 years ago
Sorry it's so long. Let me know if you would like it split up
Hey James, I'm so sorry but I've missed a very small but very important part of the PromoView snippett. The snippett should be wrapped in "ecommerce": {}
. Apart from my mistake it's in the dataLayer as expected but doesn't get picked up by GTM. I've amended the script above (it's the first one)
It's working great on test, thanks so much @JamesWChan and @punalsc
Script development for
Dependencies
Tasks that look for meta tags and send to the dataLayer
Ecommerce tracking
When there is a Discovery details page with
<meta name="Dcsext.wteg " content="What to expect guide" />
Push the following to the dataLayerWhen WTEG button is clicked
Promo click on watermarked image viewer
When then is a details page with
<meta name="DCSext.imgviewer" content="Image Viewer Watermarked">
And expanding link is clicked<a href="#imageViewerLink" id="imageViewerLink" class="imageViewerExpander">Preview an image of this record.</a>
Push the following Promo click to the dataLayer (a promo view check and object has already been created)
Acceptance/test criteria - DEV/LOCALHOST
What to expect guide pages (WO 95)
In the dataLayer:
Details pages with image viewer marked
TEST criteria for TEST environment
In GA debug:
What to expect guide pages (WO 95)
Click on What to expect guide button
Details pages with image viewer marked