ecomm_pagetype variable in GTM
-
The GTM variable display from the gtm4wp.changeDetailViewEEC event does not work.
Enter as 2.ecomm_prodid as the variable. Did not work. Should return 3650.
When I enter ecomm_prodid as the variable. Works, but this is not the product id I want to get.
How can I read the ecomm_prodid variable from the gtm4wp.changeDetailViewEEC event?
dataLayer
(5) [{…}, {…}, {…}, {…}, {…}, push: ƒ]
0:
ecomm_pagetype: “product”
ecomm_prodid: 3272
ecomm_totalvalue: 259
ecommerce: {impressions: Array(8), currencyCode: “PLN”}
productAverageRating: 0
productIsVariable: 1
productRatingCounts: []
productReviewCount: 0
productType: “variable”
__proto__: Object
1: {gtm.start: 15947942181943, event: “gtm.js”, gtm.uniqueEventId: 0}
2:
ecomm_pagetype: “product”
ecomm_prodid: “3650” <—————— I need to put this value in a variable.
ecomm_totalvalue: 259
ecommerce: {currencyCode: “PLN”, detail: {…}}
event: “gtm4wp.changeDetailViewEEC”
gtm.uniqueEventId: 6
__proto__: ObjectThe page I need help with: [log in to see the link]
- The topic ‘ecomm_pagetype variable in GTM’ is closed to new replies.