DOM Ready Loading After gtm4wp.orderCompletedEEC & purchase Events
-
Hi,
GTM4WP has been working great for me, except for one thing – it does not seem to pass through data for gtm4wp.orderCompletedEEC and purchase events.
My set-up uses the standard Woocommerce checkout process: Product > Cart > Checkout > PayPal > /checkout/order-received{order-number}/?key=wc_order_xxxxxx.
The data for add_to-cart and begin_checkout events passes through fine. However the final two events never show in GA4. One thing I have noticed and read about in another post elsewhere is that the firing order may be the cause of this. The specific query is that DOM Ready loads after the gtm4wp.orderCompleted and purchase events. Could this be the reason why these two sets of data do not make it into my GA4 console?
If I look at Tag Manager preview, when the order is submitted, the GTM-XXXXXX containerloadins in the following order:
Consent Initialization
initialization
Set
gtm4wp.orderCompletedEEC
Container Loaded
gtm4wp.userRegistered
purchase (dataLayer contains all expected order details)
gtm4wp.reading.articleLoaded
gtm4wp.mediaApiReady
DOM Ready
Window Loaded
Checkout (page name – dataLayer contains all order details)In the GA4 container, the loading order is:
Consent Initialization
Initialization
Container Loaded
Config
Set
Config
gtm4wp.userRegistered
purchase (dataLayer has correct data)
purchase (dataLayer is empty)
gtm4wp.reading.articleLoaded
gtm4wp.mediaApiReady
DOM Ready
Window Loaded
Checkout (page name – dataLayer contains all order details)It is a mystery to me why these two events never make it into GA4. GTM4WP is configured exactly as your great instructions and I imported your containers to Tag Manager.
The caching plugin used is LiteSpeed Cache. All Javascript settings have been turned off, so there is no minimisation. The cart and checkout pages are also manually excluded from the cache entirely.
The URL associated with this issue contains a “free” product at zero value, so you can go through the full checkout process.
Many thanks,
ChristopherThe page I need help with: [log in to see the link]
- The topic ‘DOM Ready Loading After gtm4wp.orderCompletedEEC & purchase Events’ is closed to new replies.