User Guide

Step 1 - Activation & Licensing

  1. Enable both modules e.g. Google Tag Manager and Google Tag Manager GA4 by setting Enable dropdown to 'Yes' for both.
  2. Add license key only in Stores -> Configuration -> Anowave -> Google Tag Manager GA4 (this same page). The main module will activate automatically.

Step 2 - Adding GTM snippet

  1. Go to GTM -> (Pick a container) -> Admin -> Install Google Tag Manager
  2. Copy both HEAD and BODY snippets and insert them in Stores -> Configuration -> Anowave -> Google Tag Manager -> Google Tag Manager Code (Head) & Google Tag Manager Code (Body) respectively.

Step 3 - Configure GTM Container using the built-in API

  1. Go to Stores -> Configuration -> Anowave -> Google Tag Manager -> Google Tag Manager API section
  2. Insert your GA4 Measurement ID (obtained from your Google Analytics 4 property settings)
  3. Insert your GTM Account ID (available in GTM -> (Pick a container) -> Admin -> Account Settings
  4. Once added, Save config. Once config is Saved, click 'Sign in with Google'
  5. Authorize the application with permissions to create and edit tags, triggers and variables
  6. Once process is over, you shall see the config screen again but now with 3 different checkboxes available that allow you to configure your container automatically.
    Create variables (Google Analytics 4) Create triggers (Google Analytics 4) Create tags (Google Analytics 4)
  7. Select ALL checkboxes and click "Save config". Once done, you shall see a confirmation that GTM container is configured successfully.
  8. Go to GTM -> (Pick a container) -> Click 'PUBLISH' so changes could take effect.

Step 4 - Advanced Configuration

  1. For detailed User Guide go to Magento 2 Google Analytics 4 Enhanced Ecommerce Tracking -> User Guide & Documentation