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

Shopper Actions to Track

The Shopper Actions to Track group decides which shopper actions push tracking data into window.dataLayer. Every destination configured inside Google Tag Manager (Meta Pixel, Google Ads, Google Analytics 4, or a custom tag) consumes the same data, so you turn an action on once and every tag can use it.

Shopper actions to track

The 18 tracked events

Each row is an independent toggle. Turn off anything you do not need.

Browse & discovery

Event (dataLayer)Admin labelFires when
search_performedTrack searchA shopper runs a catalog search.
product_list_viewedTrack product listing impressionsA category or search results list is shown. (multiselect — choose which lists count)
product_clickedTrack product clicks in a list (select_item)A shopper clicks a product in a list.
product_viewedProduct page viewsA product detail page is opened.
product_comparedProduct compareA product is added to compare.

Cart

Event (dataLayer)Admin labelFires when
cart_item_addedAdd to cartA product is added to the cart.
cart_item_removedRemove from cartA product is removed from the cart.
cart_viewedCart viewThe cart page is shown.
wishlist_item_addedWishlist addA product is added to the wishlist.
coupon_appliedCoupon appliedA coupon is applied to the cart.
coupon_removedCoupon removedA coupon is removed.

Checkout & purchase

Event (dataLayer)Admin labelFires when
checkout_startedCheckout startA shopper enters checkout.
shipping_selectedShipping method selectionA shipping method is chosen.
payment_selectedPayment method selectionA payment method is chosen.
payment_completedPurchasesAn order is placed (order success page).

Account

Event (dataLayer)Admin labelFires when
customer_registeredCustomer registrationA new account is created.
customer_logged_inCustomer loginA shopper logs in.
newsletter_subscribedNewsletter subscriptionA shopper subscribes to the newsletter.

Multishipping

The purchase funnel has parity with Magento's multishipping checkout — checkout_started, shipping_selected, payment_selected, and payment_completed fire there too.

Product listing impressions (multiselect)

product_list_viewed is a multiselect, not a simple on/off. Use it to choose which kinds of lists count as impressions (for example category pages, search results, upsells, related products). Select only the lists you care about to keep the dataLayer lean.

How events reach the page

Observers capture each action server-side and place it on a session-backed event queue. On the next page render, the queued events drain into window.dataLayer. This is why an event triggered by a redirecting action (like add to cart) appears on the page the shopper lands on. See Events & dataLayer for the payload schema.

After changing toggles, flush the cache:

php bin/magento cache:flush
Prev
General Settings
Next
Tracking Data Tuning