GA4 tracking and consent
Enter the Measurement ID of an existing GA4 property under GA4 Tracking. When consent permits, the module loads and configures gtag.js to send checkout events. You do not need a separate GTM container or an existing gtag.js integration. Create the analytics property in GA4; One Step Checkout does not create it.
Events
The module prepares these Enhanced Ecommerce events:
begin_checkoutwhen checkout initializesadd_shipping_infoafter a shipping method is selectedadd_payment_infoafter a payment method is selectedpurchaseon the custom success page when a completed order and measurement ID are available
The purchase payload uses the order increment ID, value, currency, tax, shipping amount and visible order items.
Consent behavior
The checkout reads Magento cookie-restriction mode and the configured consent cookie. When restriction mode is active without consent, the GA4 loader and events remain blocked. When restriction mode is disabled, a configured measurement ID can load the tracking integration.
Test the browser network and data layer with a synthetic measurement ID. Do not expose a live analytics property in documentation screenshots or test fixtures.