Order revenue is present in DataLayer, doesn’t get loaded in Analytics
-
So I have tracking of enhanced analytics enabled in plugin settings and when I submit the order, all data layer data is loaded correctly, including the order revenue. However, the revenue doesn’t get loaded by GA.
This is the DataLayer as seen on order-received page by GTM Preview tool:
{ gtm: {start: 1607064166540, uniqueEventId: 12}, event: 'gtm.load', pagePostType: 'page', pagePostType2: 'single-page', pagePostAuthor: 'admin', ecommerce: { currencyCode: 'EUR', purchase: { actionField: { id: '202000037', affiliation: '', revenue: 33.8, tax: 0, shipping: 3.9, coupon: '' }, products: [ { id: 119206, name: '3PACK Klasické pono?ky v dar?ekovej krabi?ke Calvin Kle in 100002161 001', sku: '8718824988269', category: 'So vzorom/obrázkom', price: 28.9, stocklevel: 4, variant: 'uni', quantity: 1 } ] } }, inputID: 'password', inputName: 'password', inputClass: 'form-control', formID: '(no form ID)', formName: '(no form name)', formClass: 'login' }
And this is my revenue variable set in GTM (data layer version 2:
ecommerce.purchase.actionField.revenue
Strange thing I’ve noticed, when I check the data layer conents from Google Tag Assistant on order-received page, the structure is different. Here’s the data layer from tag assistant:
[ { "gtm.start": 1607064166420, "event": "gtm.js", "gtm.uniqueEventId": 1 }, { "pagePostType": "page", "pagePostType2": "single-page", "pagePostAuthor": "admin", "event": "gtm4wp.orderCompletedEEC", "ecommerce": { "currencyCode": "EUR", "purchase": { "actionField": { "id": "202000037", "affiliation": "", "revenue": 33.8, "tax": 0, "shipping": 3.9, "coupon": "" }, "products": [ { "id": 119206, "name": "3PACK Klasické pono?ky v dar?ekovej krabi?ke Calvin Klein 100002161 001", "sku": "8718824988269", "category": "So vzorom/obrázkom", "price": 28.9, "stocklevel": 4, "variant": "uni", "quantity": 1 } ] } }, "gtm.uniqueEventId": 5 }, { "gtm.start": 1607064166540, "event": "gtm.js", "gtm.uniqueEventId": 6 }, { "event": "gtm4wp.formElementEnter", "inputID": "username", "inputName": "username", "inputClass": "form-control", "formID": "(no form ID)", "formName": "(no form name)", "formClass": "login", "gtm.uniqueEventId": 7 }, { "event": "gtm4wp.formElementLeave", "inputID": "username", "inputName": "username", "inputClass": "form-control", "formID": "(no form ID)", "formName": "(no form name)", "formClass": "login", "gtm.uniqueEventId": 8 }, { "event": "gtm4wp.formElementEnter", "inputID": "password", "inputName": "password", "inputClass": "form-control", "formID": "(no form ID)", "formName": "(no form name)", "formClass": "login", "gtm.uniqueEventId": 9 }, { "event": "gtm4wp.formElementLeave", "inputID": "password", "inputName": "password", "inputClass": "form-control", "formID": "(no form ID)", "formName": "(no form name)", "formClass": "login", "gtm.uniqueEventId": 10 }, { "event": "gtm.dom", "gtm.uniqueEventId": 11 }, { "event": "gtm.load", "gtm.uniqueEventId": 12 } ]
What could be the issue?
Thank you
- The topic ‘Order revenue is present in DataLayer, doesn’t get loaded in Analytics’ is closed to new replies.