On this page
  1. Events
  2. Consent behavior

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_checkout when checkout initializes
  • add_shipping_info after a shipping method is selected
  • add_payment_info after a payment method is selected
  • purchase on 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.

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.

Display preferences

Adjust how this website is displayed. Changes apply immediately.

Text size
Text spacing
Reading aids

Follows the pointer. Move it with Alt + Up/Down outside input fields. Hidden while a dialog is open.

Uses the voices provided by your browser, which may use an online service. Reading starts only when you press Read aloud.

Your choices are saved in this browser for this website.