To enable Google Analytics e-commerce sales tracking via Google Tag Manager in Webflow, you need specific data fields on the checkout and order confirmation pages, and a proper completion URL to fire the purchase tracking tag.
Google Tag Manager needs access to the transaction details populated in the Webflow Order Confirmation Page. Webflow automatically injects this data into a JavaScript object called window.dataLayer
, but you should confirm the following fields are included:
Webflow includes these automatically on the Order Confirmation Page when using Webflow’s e-commerce.
To verify, preview a test purchase and open the browser console. Type window.dataLayer
and look for a "purchase" event containing those fields.
Google Tag Manager needs a trigger to know when a purchase is complete. In Webflow, this is usually identified by the order confirmation page, which lives at the default path:
Use this path to configure your GTM trigger:
/checkout/confirmation
Or, more securely:
Make sure your GTM tag for “Google Analytics 4 – Purchase” listens for this trigger.
event: 'purchase'
in the dataLayer.To track e-commerce purchases in GA via GTM on Webflow:
/checkout/confirmation
) has the necessary dataLayer fields, especially for purchase events.This setup allows you to accurately report e-commerce transactions from Webflow into Google Analytics via GTM.