GA4 tracking and consent
Enter a GA4 Measurement ID under GA4 Tracking to enable the module's checkout events. A GTM container or gtag.js integration must already be available in the store. One Step Checkout does not create an analytics property.
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 use a live analytics property in a demo screenshot or test fixture.