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

Category & Search Events

These events fire while shoppers browse and discover products — on category pages, search results, and comparison.

Category page tracking

Events

EventFires whenKey payload
product_list_viewedA category or search results list renders.items[] with item_id, item_name, price, index, item_list_name
product_clickedA shopper clicks a product in a list.the clicked item + item_list_name
search_performedA shopper runs a catalog search.search_term
product_comparedA product is added to compare.the item

Product listing impressions

product_list_viewed is configured as a multiselect — you choose which lists count as impressions (category pages, search results, upsells, related, and so on). Select only the lists you care about; see Shopper Actions to Track.

Each item in the list carries its position via index, and the list is named with item_list_name so you can tell a category impression from a search impression in your reports.

Example — category impression

{
  "event": "product_list_viewed",
  "data": {
    "item_list_name": "Bags",
    "items": [
      { "item_id": "24-MB01", "item_name": "Joust Duffle Bag", "price": 34.00, "index": 1 },
      { "item_id": "24-MB04", "item_name": "Strive Shoulder Pack", "price": 32.00, "index": 2 }
    ]
  }
}

Example — search

{
  "event": "search_performed",
  "data": { "search_term": "duffle bag" }
}

Verify

Open a category page in GTM Preview mode and confirm product_list_viewed appears with the products in view; click a product and confirm product_clicked fires.

Prev
Overview
Next
Product