Overview
The Odoo Meta Pixel eCommerce module adds this script to all Odoo webpages and sends visitor activity data to Meta Ads Manager. Use this analytics data to analyze customer behavior in your online store and run advertising campaigns on Facebook and Instagram.
To connect your Odoo website to Meta Ads Manager via server-side integration, use the Odoo Meta Conversions API module.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
|---|---|
| Compatibility |
Community
Enterprise
|
| Technical Name | website_sale_facebook_pixel |
| Version | 19.0.1.0.3 |
| License | OPL-1 |
| Category | |
| Support | Free 60 days support and 360 days bug-fixing |
Use Case
Jorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
Forem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
Dorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis.
It is a long established fact that a reader will be distracted by the readable content of a page
Korem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
Korem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis.
Odoo App Installation
Upload modules
Upload modules from the ZIP archive to your Odoo hosting, or a GitHub repository connected there.
Place the unzipped modules in your custom add-on directory and restart the Odoo system service.
Update App List
After restarting, activate the Developer Mode, and go to the Apps menu.
Click on Update Apps List to fetch the new modules in the list.
Activate the App
Install the new module, finding it by name and clicking on the Activate button.
* If you don't see the module, try to remove the default Apps filter from the search bar.
Configuration
Follow the instructions in the module description to complete the installation process and start using the app.
Manual
How to get Pixel ID
Perform the following steps to obtain a Pixel ID before adding the JS script to the website:
-
01Log in to the Meta Ads Manager account
-
02Navigate to Events Manager — Integrations — Meta Pixel
-
03Select an existing dataset or create a new one in the pop-up window
-
04Select the Add Meta Pixel code to website yourself option
-
05Skip the next steps by clicking Next
Navigate to the Datasets section and copy the Dataset ID:
Activation
After installing the module, go to the website settings and enable the Activate Tracking option in the Enhanced Website Tracking section. To test your website tracking and view tracking events in the browser console, temporarily enable the Debug Logging feature:
Cookie Consent Settings
The module includes a cookie consent management feature for Meta Pixel, which integrates with the native Odoo cookie bar. To use this feature, enable the Cookies Bar:
By default, all Meta cookie consents are granted. To change this and revoke default consent for website visitors, enable the Facebook Pixel — Consent is Revoked (by default) option. Once enabled, Meta cookie consent is granted after a visitor clicks I agree and is revoked if the visitor clicks Only essentials.
Tracking Service Configuration
To send eCommerce events to Meta Ads Manager, first add and configure a tracking service for your Odoo website.
Adding a Tracking Service
Go to the Website - Configuration - Tracking - Services menu and click New to add a new tracking service:
Firstly, fill in the following fields in the new tracking service:
- Specify a Website (if using multiple websites)
- Select Facebook Pixel as the service Type
- Paste your Pixel ID into the Key field
Then, specify the type of product identifier and product category sent to Meta Ads Manager:
If products have attributes and variants, choose Product Variant ID in the Item Type field; otherwise, select Product Template ID.
Select the desired Category Type: an eCommerce Public Category or an internal Product Category.
The next option is the Lead Value on the Options tab:
This field represents the monetary value of a lead generation, based on estimated evaluations.
Tracking Logs
The solution includes an internal logging feature. To activate it, enable the Internal Logs option:
To view logs, go to the Website - Configuration - Tracking - Logs menu or click the Logs button at the top of the form:
The list of internal tracking events:
Advanced Matching
The Advanced Matching feature optimizes your Meta ads by providing user data to Facebook. Enable Advanced Matching for Pixel events in both Meta Ads Manager and Odoo.
Activation in Meta Ads Manager
Navigate to Meta Ads Manager, open the Datasets menu, and select the Settings tab for your dataset:
Enable the Automatic website matching option and specify which customer information to share with Facebook.
Activation in Odoo
Return to Odoo and open the Advanced Matching tab in the Facebook tracking service. Replicate the settings for the user data sends to Facebook:
Customer Data Source
Use the Sales Order Partner value for Customer Data Source, as it provides more user details if visitors check out as guests without registration:
Advanced Settings
The module includes additional settings available in Developer Mode.
Product Identifier
The solution uses the Product ID field as a unique product identifier. To use a different value, specify another product field containing the desired identifier on the Technical tab:
Purchase on Portal
To track portal purchases, enable the Track Purchase on Portal option:
Exclude Delivery
The next available setting for tracking services is Exclude Delivery. When enabled, the service excludes delivery lines from sales orders in tracking data transmissions:
Exclude Rewards
To exclude reward order lines from tracking data, enable the Exclude Reward option:
Add to Cart
By default, the module tracks the actual addition of a product to the cart. To track the event upon clicking the button without waiting for the actual addition to the cart, perform the following steps:
- Navigate to Website — Configuration — Websites
- Open the website on the Enhanced Tracking tab
- Enable the Add to Cart on Click option
Purchase
To track purchases only after a successful payment transaction, enable the Track Confirmed Purchases only option:
If business logic considers an order with a Pending payment status as a purchase, enable the Track Pending Purchases too option as well.
Testing
Perform the following steps to verify the Meta Pixel integration:
-
01Log in to your Meta Ads Manager account
-
02Open your dataset and select the Test Events tab
-
03Select Website from the channel list
-
04Paste your website URL into the field within the Confirm your website's events are set up correctly section
-
05Click the Test Events button
This action opens your Odoo website in a new tab. Perform a few actions on the site, such as viewing a product page or adding an item to the cart. Then, return to Meta Ads Manager; the completed events should appear in the list:
Changelog
14.0.2.2.0 2024-02-05
- Add the "eventID" param to tracking data that is sent by JS script.
- Improve advanced matching - add new params.
- Improve customer tracking data.
14.0.2.1.0 2023-07-28
- Improve setting of Privacy URL logic.
14.0.2.0.0 2023-06-17
- Implement a new generation of website tracking logic.
15.0.2.3.0 2024-04-05
- Add a compatibility with the cookie consent management.
15.0.2.2.0 2024-02-07
- Add the "eventID" param to tracking data that is sent by JS script.
- Improve advanced matching - add new params.
- Improve customer tracking data.
15.0.2.1.0 2023-07-30
- Improve the logic to set default "Privacy URL" value.
15.0.2.0.0 2023-07-19
- Implement a new generation of website tracking logic.
15.0.1.2.1 2023-01-20
- Prevent firing of the event "ViewContent" on a product webpage for internal users.
15.0.1.2.0 2023-01-17
- Improve firing logic of Facebook Pixel events: "InitiateCheckout", "AddPaymentInfo", "Purchase".
15.0.1.1.0 2022-08-17
15.0.1.0.1 2022-05-02
- Implement compability with another modules.
15.0.1.0.0 2022-03-22
- Improved rebuilded version from 14.0
16.0.2.3.4 2025-01-14
- Improve user data processing: country, city, state.
16.0.2.3.3 2024-10-23
- Refactor a user data processing.
16.0.2.3.2 2024-07-20
- Improve cache invalidation.
16.0.2.3.1 2024-02-09
- Improve the tracking service form view.
16.0.2.3.0 2023-12-21
- Add the "eventID" param to tracking data that is sent by JS script.
16.0.2.2.0 2023-11-22
- Improve advanced matching - add new params.
- Improve customer tracking data.
16.0.2.1.0 2023-08-01
- Improve the logic to set default "Privacy URL" value.
16.0.2.0.0 2023-07-24
- Implement a new generation of website tracking logic.
16.0.1.0.0 2022-11-04
- Migration from 15.0.
17.0.1.2.5 2026-05-25
- Refactor methods to process order and product data.
17.0.1.2.4 2025-01-14
- Refactoring: remove deprecated methods.
17.0.1.2.3 2024-09-23
- Add hashing for user parameters: "country", "city", "zip", and "state".
17.0.1.2.2 2024-08-30
- Improve user data fields "country" and "state".
17.0.1.2.1 2024-07-05
- Add checks for tracking product data.
17.0.1.2.0 2024-02-24
- Add compability with a cookie consent management.
17.0.1.1.0 2023-12-28
- Add the "eventID" param to tracking data that is sent by JS script.
- Improve advanced matching - add new params.
- Improve customer tracking data.
17.0.1.0.0 2023-11-07
- Migration from 16.0.
18.0.1.2.2 2026-05-25
- Refactor methods to process order and product data.
18.0.1.2.1 2026-04-20
- Add option to skip reward lines when preparing tracking data from sale order.
18.0.1.2.0 2026-02-03
- Implement the "Exclude Delivery" option for order tracking data.
- Implement the option to specify different product identifiers instead of the product "id".
18.0.1.1.1 2026-01-27
- Add a list of allowed settings for user data.
18.0.1.1.0 2025-08-15
- Add the Lead event tracking on the Contact Us sending.
18.0.1.0.1 2025-01-14
- Improve the method to get user data.
18.0.1.0.0 2024-10-10
- Migration from 17.0.
19.0.1.0.3 2026-05-21
- Refactor methods to process order and product data.
19.0.1.0.2 2026-04-20
- Add option to skip reward lines when preparing tracking data from sale order.
19.0.1.0.1 2025-12-29
- Add a list of allowed settings for user data.
19.0.1.0.0 2025-10-12
- Migration from 18.0.
Resources
Special offer, buy Odoo Facebook Pixel, Facebook Conversion API, Odoo Facebook Catalog apps with a 30% discount!
How to integrate Facebook (Meta) Pixel to Odoo website
How to create a Facebook Pixel and how to activate it in Odoo