Magento 2 Google Tag ManagerMagento 2 Google Tag Manager
Live Demo
Buy Now
Support
Live Demo
Buy Now
Support
  • Getting Started

    • Introduction
    • Requirements
    • Installation
    • Activate & Connect
  • Configuration

    • Overview
    • General Settings
    • Shopper Actions to Track
    • Tracking Data Tuning
    • Consent & PII (GDPR / CCPA)
    • Developer
  • Destinations & Export

    • Overview (Guided Setup)
    • Google Analytics 4
    • Google Ads
    • Meta Pixel
    • Container Export
  • Events & dataLayer

    • Overview
    • Category & Search
    • Product
    • Cart & Checkout
  • Server-Side Tagging (sGTM)

    • Overview
  • How-To (find your IDs)

    • GTM Container ID
    • GTM Account ID
    • GA4 Measurement ID
    • Google Ads Conversion ID & Label
    • Meta Pixel ID
    • Validate the Installation
    • Verify Events (GTM Debug)
  • Help

    • Troubleshooting
    • FAQ

Verify events (GTM Debug mode)

Once the container is loading, verify that real shopper actions produce the right events. This is the single most useful check — it confirms the whole chain from storefront → dataLayer → GTM → destination.

Use GTM Preview mode

  1. In tagmanager.google.com, click Preview (top-right).
  2. Enter your storefront URL and click Connect. Tag Assistant opens your store in a new tab with a debug panel.
  3. Perform actions on the store — view a product, add to cart, search, check out.
  4. In Tag Assistant, each action appears in the left timeline as a dataLayer event (product_viewed, cart_item_added, payment_completed, …).
  5. Click an event to see which tags fired and inspect the Data Layer payload.

Verify events in GTM debug mode

Checklist per funnel stage

Action on storeExpected dataLayer eventThen
Open a categoryproduct_list_viewedGA4 view_item_list tag fires
Click a product in a listproduct_clickedGA4 select_item
Open a product pageproduct_viewedGA4 view_item, Meta ViewContent
Add to cartcart_item_addedGA4 add_to_cart, Meta AddToCart
Start checkoutcheckout_startedGA4 begin_checkout, Meta InitiateCheckout
Place an orderpayment_completedGA4 purchase, Meta Purchase, Google Ads conversion

Verify in each destination

Google Analytics 4

Open GA4 → Admin → DebugView while in Preview mode. Events appear within a few seconds with their parameters. Realtime reports confirm live (non-debug) traffic.

Meta Pixel

  • Meta Pixel Helper (Chrome extension) lists the events firing and the Pixel ID.
  • Events Manager → your pixel → Test Events shows events as you perform them.

Google Ads

Confirm the conversion tag fires in Preview mode on order success. In Google Ads, the conversion action moves to Recording conversions once it receives data (can take a few hours).

If an event does not appear

  1. Confirm the action's toggle is on in Shopper Actions to Track.
  2. Flush the cache: php bin/magento cache:flush.
  3. Check window.dataLayer in the console to see whether the event reached the page at all.
  4. If it is in the dataLayer but no tag fires, the trigger in GTM does not match — check the trigger's event name against the neutral event name.
  5. See Troubleshooting.
Prev
Validate the Installation