This tag template allows you to implement the Facebook Pixel on your website through Google Tag Manager. It supports standard events, custom events, Enhanced Ecommerce integration, and advanced matching parameters.
- Facebook Pixel ID(s) - Your Facebook Pixel ID(s) (e.g. 12345678910)
- Standard Events - Choose from predefined Facebook events like PageView, Purchase, AddToCart etc.
- Custom Events - Define your own custom event names
- Variable Events - Use a variable to dynamically set event names
When enabled, the tag will automatically:
- Populate event parameters from ecommerce data:
- content_type
- contents (products array)
- content_ids
- value
- currency
- num_items
Enable to send customer data parameters:
- Phone
- First Name
- Last Name
- Gender
- Date of Birth
- City
- State
- Country
- Zip Code
- External ID
- Load properties from a variable
- Add custom properties via key-value pairs
- Properties will override Ecommerce values if there are conflicts
- Disable Automatic Configuration - Prevent automatic metadata collection
- Disable History Event Tracking - Stop automatic tracking of history events
- Event ID - For server-side event deduplication
- Consent (GDPR) - Control pixel firing based on consent status
- Data Processing Options - Configure regional data processing requirements
The tag handles Facebook Pixel initialization, event tracking, and provides debug logging when in preview mode.