The Facebook Pixel is a snippet of JavaScript code that allows you to track visitor activity on your website. It works by loading a small library of functions which you can use whenever a site visitor takes an action (called an event) that you want to track (called a conversion). Learn More.
This is a Google Tag Manager Community Template Gallery tag for the Facebook Pixel. It lets you configure and deploy the Facebook Pixel directly from a GTM web container without editing site code manually. The template supports:
- Standard and custom event tracking
- Advanced Matching (customer information parameters)
- Enhanced Ecommerce dataLayer integration
- Multiple Pixel IDs
- Object and custom data properties
- Data Processing Options (for CCPA/LDU compliance)
- Consent mode
- Event ID for server-side deduplication
- In your Google Tag Manager web container, navigate to Templates > Tag Templates > Search Gallery.
- Search for Facebook Pixel
- Add the template to your workspace.
- Create a new tag using the template, enter your Pixel ID(s), and configure the desired events.
For more details, see the template documentation.
Please raise any issue on GitHub.
Facebook Pixel Tag for Google Tag Manager is licensed under the Apache License 2.0. See the LICENSE file in the root directory of this source tree.