Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Meta Pixel provides integrated browser-side and server-side tracking for Meta (Facebook) Pixel, combining event tracking and Conversions API capabilities. It supports core and e-commerce events, offers multiple user identifiers, and allows for custom event creation through a plugin system.

Meta Pixel provides comprehensive Meta (Facebook) Pixel tracking for Drupal 10+ with both browser-side and server-side (Conversions API) event tracking capabilities.

This module was created to address integration challenges when combining the existing facebook_pixel and meta_conversions_api modules. It borrows from what were the best parts of these two modules and brings them together in a cohesive implementation supporting both tracking methods simultaneously with proper event deduplication. It also borrows on google_tag's approach to adding events using plugins, so developers can easily create their own plugins for custom events.

Supported Events

Core Events:

  • PageView
  • CompleteRegistration (user account creation)
  • ViewContent (node tracking)

Commerce Events (meta_pixel_commerce submodule):

  • ViewContent (product/variation viewing with AJAX variation changes)
  • AddToCart
  • InitiateCheckout
  • AddPaymentInfo
  • Purchase

Key Features

  • Dual Tracking Methods: Browser-side JavaScript (fbq) and server-side Conversions API with event deduplication support
  • Plugin-Based Event System: Extensible event architecture allowing custom event types via plugins
  • Commerce Integration: E-commerce event tracking via meta_pixel_commerce submodule (AddToCart, Purchase, InitiateCheckout, AddPaymentInfo, ViewContent)
  • Multiple User Identifiers: Collects emails, phones, and address data from account, billing, and shipping sources
  • Server-Side Alternative: CAPI provides tracking option when browser-based methods are unavailable
  • Privacy Controls: EU Cookie Compliance integration, Do Not Track respect, advanced matching toggles

See the README file for configuration instructions and how to add custom events.

Requirements

  • Drupal 10 or 11
  • For Commerce features: Commerce module
  • For server-side tracking: Facebook PHP Business SDK (installed via Composer)

This is still very new and and in the early stages. So things will probably change as I test it out. But I figured I would put it out there In case anyone likes this approach and wants to help. Patches and suggestions are welcome.

Activity

Total releases
3
First release
Nov 2025
Latest release
4 days ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.0.0-alpha2 Pre-release Jul 13, 2026
1.0.0-alpha1 Pre-release Dec 21, 2025
1.0.x-dev Dev Nov 21, 2025