How to customize events for Facebook pixel
Articles on: OnePixel
Want more control over what gets tracked by your Facebook Pixel? Here's how you can easily switch between tracking product_id and variant_id to better suit your store's goals.
At OnePixel, we get it—every store is different. Whether you're focusing on specific product variants or just want to simplify your tracking setup, our latest feature gives you the flexibility to do just that.
1. You want to track different events with product_id or variant_id
2. Supported Events and Default Settings
Our new update lets you decide how events are tracked—either by product_id or variant_id. This means more accurate data for what matters most to your business.
Login to your OnePixel dashboard.
Go to the Facebook Pixel integration section.
Choose between automatic or manual pixel connection.
Select the events you want to track.
Toggle between product_id and variant_id for each event depending on your tracking needs.
Here's how events are set up by default in OnePixel:
ViewContent – ON – product_id
AddToCart – ON – variant_id
ViewCart – ON – variant_id
InitiateCheckout – ON – variant_id
AddPaymentInfo – ON – variant_id
Purchase – ON – variant_id
Search – ON – variant_id
ViewCategory – ON – variant_id
The AddPaymentInfo event is tracked only via the Conversion API, not through the browser.
If an event is turned off, it won't be tracked by either the server or browser.
That’s it! You now have full control over how Facebook Pixel events are tracked—whether by product or variant. Customize what matters most and get the insights you need.
Need help or have more questions? Feel free to reach out at support@socialhead.io
Want more control over what gets tracked by your Facebook Pixel? Here's how you can easily switch between tracking product_id and variant_id to better suit your store's goals.
At OnePixel, we get it—every store is different. Whether you're focusing on specific product variants or just want to simplify your tracking setup, our latest feature gives you the flexibility to do just that.
Table of Contents
1. You want to track different events with product_id or variant_id
2. Supported Events and Default Settings
1. You want to track different events with product_id or variant_id
Our new update lets you decide how events are tracked—either by product_id or variant_id. This means more accurate data for what matters most to your business.
Steps
Login to your OnePixel dashboard.
Go to the Facebook Pixel integration section.
Choose between automatic or manual pixel connection.
Select the events you want to track.
Toggle between product_id and variant_id for each event depending on your tracking needs.
2. Supported Events and Default Settings.
Here's how events are set up by default in OnePixel:
ViewContent – ON – product_id
AddToCart – ON – variant_id
ViewCart – ON – variant_id
InitiateCheckout – ON – variant_id
AddPaymentInfo – ON – variant_id
Purchase – ON – variant_id
Search – ON – variant_id
ViewCategory – ON – variant_id

Notes:
The AddPaymentInfo event is tracked only via the Conversion API, not through the browser.
If an event is turned off, it won't be tracked by either the server or browser.
That’s it! You now have full control over how Facebook Pixel events are tracked—whether by product or variant. Customize what matters most and get the insights you need.
Need help or have more questions? Feel free to reach out at support@socialhead.io
Updated on: 06/04/2025
Thank you!