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

Product Events

These events fire on the product detail page and around product-level intent (wishlist, compare).

Product page tracking

Events

EventFires whenKey payload
product_viewedA product detail page opens.single item with item_id, item_name, price, currency
wishlist_item_addedA product is added to the wishlist.the item
product_comparedA product is added to compare.the item

Example — product view

{
  "event": "product_viewed",
  "data": {
    "currency": "USD",
    "value": 49.00,
    "items": [
      {
        "item_id": "24-MB01",
        "item_name": "Joust Duffle Bag",
        "price": 49.00,
        "item_brand": "Webkul",
        "item_category": "Bags",
        "quantity": 1
      }
    ]
  }
}

item_brand, item_category, and any other enrichment come from your attribute mapping. Whether item_id is a SKU or numeric ID depends on Data Tuning.

Configurable & grouped products

For configurable products, the payload reflects the selected simple product where applicable, so item_id matches the SKU/ID a shopper can actually buy — keep this aligned with your catalog feed for dynamic remarketing.

Verify

Open a product page in GTM Preview mode and confirm product_viewed fires once with the correct item_id and price.

Prev
Category & Search
Next
Cart & Checkout