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

Meta Pixel

Enable the Meta Pixel destination to have Guided Setup wire Meta (Facebook) Pixel tags into your exported container, mapped from the storefront's neutral events.

Meta Pixel destination

Fields

FieldDescription
Enable Meta PixelTurns the Meta Pixel destination on for Guided Setup.
Meta Pixel IDYour pixel ID. Find it in Meta Events Manager → Data Sources → your pixel → Settings → Pixel ID. See how to find it.
Meta Pixel Setup GuideAn in-Admin button that walks you through pixel setup.
Event name overridesMaps neutral storefront events to Meta Pixel event names. Pre-filled with Meta defaults on first enable.

Default event mapping

Storefront eventMeta Pixel event
product_viewedViewContent
product_list_viewedViewContent
search_performedSearch
cart_item_addedAddToCart
wishlist_item_addedAddToWishlist
checkout_startedInitiateCheckout
payment_selectedAddPaymentInfo
customer_registeredCompleteRegistration
payment_completedPurchase

Rename any of these in the Event name overrides grid, add mappings for other supported events, or delete a row to stop sending it to Meta.

Real Meta events only

The Meta Pixel event name you enter must be a real Meta event (for example Purchase, AddToCart). A name Meta does not recognise is dropped. Keep at least one mapping while Meta Pixel is enabled.

Frontend event tracking

Once the pixel tag is wired and the container imported, Meta events fire from the browser on real shopper actions. Confirm them with the Meta Pixel Helper browser extension or in Events Manager → Test Events. See Verify events.

Next

  1. Export the container and import it into GTM.
  2. Verify events.
Prev
Google Ads
Next
Container Export