After Form Submit the DataLayer does not contain Form data.
We use Elementor Pro V3.22.1 and GTM4WP – A Google Tag Manager (GTM) plugin for WordPress. We need enhanced conversion tracking for Google Ads
1. How can we setup to make use of DataLayer?
2. Can you give us a Url with documentation that works?
Thank you for Support
Kind regards
Philipp
We use the current version 1.20.x and we have carried out a test with customer data that can be sent to Google for conversion tracking.
(order data checkbox in GTM4WP settings screen)
We noticed that the zip code is not transmitted the way the user enters it in the checkout.
For example, if we enter a German postal code in a test order, GTM4WP will not transmit the 0 as the first digit to Google.
e.g. “06114” becomes “6114” in the dataLayer.
That’s wrong.
In addition, the zip code is transmitted as an integer. I assume that string would be better as a data type.
Because there are countries in which letters are also possible in a postal code. e.g. France.
Thanks!
]]>I was testing and saw that in the add_shipping_info and add_payment_info ecommerce.items is not an array of dictionaries, but a dictionary of dictionaries.
{
event: "add_shipping_info",
gtm: {XXXXXXXXXXXX
},
ecommerce: {
currency: "BRL",
value: "206",
shippingTier: "1",
items: <span style="text-decoration: underline;">{
0: {</span>
id: "2441",
item_id: "2441",
item_name: "Com Você",
currency: "BRL",
price: 89,
google_business_vertical: "retail",
item_category: "Para casa",
item_category2: "quadro",
item_variant: "com-moldura-pinus-a4",
quantity: 2
}<span style="text-decoration: underline;">,
1: {</span>
id: "2439",
item_id: "2439",
item_name: "Sentido Faz",
currency: "BRL",
price: 28,
google_business_vertical: "retail",
item_category: "Para casa",
item_category2: "quadro",
item_variant: "print-a4-21-x-297cm",
quantity: 1
}
}
}
}
In my plugin config I’m using:
When a shipment method is selected with fallback to the ‘Place order’ button.
and
When a payment method is selected with fallback to the ‘Place order’ button.
Maybe it is related to this options.
Best regards, Diego.
]]>Attaching the screenshots for your reference:
Here is the link for the measurement parameter that are supposed to be reflecting on the “Thank you page” (Recommended events)
PFB Screenshots
Back when the Sitekit was able to add this code to our Thankyou page,
PFB this is what the it looked like.
PFB recent screenshot when the parameters are missing from our “Thankyou page”
Can you help us debug this and find why the datalayer parameters are missing from our thankyou page even after adding it through GTM.
Currently our Sitekit by Google is on Version 1.111.1
First of all, thanks for this plugin and your support. It helps us a lot to manage GA4 EEC & Data Analytics
I have a doubt. While I navigate my website, when I load and visit URLs of type posts and pages, I find that the plugin pushes me to the DataLayer a message/object with the main information about this page: pageType, userId, etc…
But when I navigate through a Product URL, this information is pushed to the DataLayer in the event “gtm4wp.changeDetailViewEEC”. So, I can’t have this information “in the first place”, before the GA4 tag fires if I choose “initialization-all apges” in GTM.
My doubt it’s just about: Why in product URLs this information is pushed to the DataLayer in the event “gtm4wp.changeDetailViewEEC” and not in a kind of object/message push like in all my pages/post URLs?
I hope I have explained myself correctly Thank you so much for your help!
]]>{
event: "conversion",
gtm: {uniqueEventId: 6, start: 1701338992403},
pagePostType: "page",
pagePostType2: "single-page",
pagePostAuthorID: 197619728,
pagePostAuthor: "cookiesandclicks",
postID: 27029,
cartContent: {
totals: {
applied_coupons: ["2vth542x"],
discount_total: 32.24,
subtotal: "32.9",
total: "0.66"
},
items: [
{
id: "3052503825403",
internal_id: 23717,
name: "Bourjois Contour Clubbing Waterproof Oogpotlood - 54 U" +
"ltra Black",
sku: "3052503825403",
category: "Make-Up/Oog make-up/Oogpotlood",
price: 7.5,
stocklevel: 2,
quantity: 2
},
{
id: "8002110383709",
internal_id: 2194,
name: "Neutrogena Ongeparfumeerd Handcrème",
sku: "8002110383709",
category: "Verzorging/Handcrème",
price: 8.95,
stocklevel: 3,
quantity: 2
},
{
id: "3600530883042",
internal_id: 43987,
name: "Maybelline Duo Liner Eyeliner - Zwart",
sku: "3600530883042",
category: "Make-Up/Oog make-up/Eyeliner",
price: 6.95,
stocklevel: 15,
quantity: "1"
}
]
},
ecomm_pagetype: "other",
eventModel: {transaction_id: ""}
}
Hello, in the purchase event datalayer the transaction ID is being left blank and I cannot find it anywhere else in the datalayer. How can I fix this?
]]>I know the origin of one of the 2 datalayers, and my theory is that pixel manager generate the second one, but i can’t find anything about this in the plugin description.
So does pixel manager generate a purchase datalayer?
If yes, is it possible to deactivate this feature in settings?
Thank you.
]]>All is working correctly in simple product pages. In this case gtm4wp.changeDetailviewECC event takes place before Container Loaded event.
However, in variable product pages gtm4wp.changeDetailviewECC event takes place AFTER Container Loaded event and e-commerce information is not available for Facebook.
I have tried to use DOM Ready trigger despite PageView trigger. In this case all works well in GTM Preview (both Datalayer and variables are correct) but the e-commerce data is not transferred to Facebook.
What can be solution for this problem?
THanks for this plugin.
The ecommerce data already works (we can see it on analytics/adsense), but I would like to add custom data to the ecommerce datalayer when an order is confirmed.
Does your plugin provide any hook on which I can add this ?
]]>