Overview
The Odoo Meta CAPI module integrates and configures the Conversions API in Odoo, collects website analytical data, and sends event data to Meta Events Manager to launch advertising campaigns on Facebook and Instagram.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
|---|---|
| Compatibility |
Community
Enterprise
|
| Technical Name | website_sale_facebook_capi |
| Version | 19.0.1.0.2 |
| 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.
Conversions API Setup
Enable the Internal Logs option:
Before configuring the API in Odoo, obtain an access token in Meta Ads Manager:
-
01Open your dataset and navigate to the Settings tab
-
02Select the Set up with Dataset Quality API in the Conversions API section
-
03Click the Generate access token button
-
04Copy the access token
After that, return to Odoo and activate API mode by completing the following steps in the API section:
- Enable the Activate option
- Paste the copied Conversions API key into the Access Token field
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:
Sending Tracking Data
Internal logs record visitor actions on your Odoo website to assist with further analysis and monitoring. Click the Logs button at the top of the form:
Enable the State and API Sent Date columns to display a status and the date of event sending through the Conversions API:
Scheduled Actions
The module uses a scheduled action to send tracking events periodically. By default, this action runs every 30 minutes, but you can adjust this interval to meet your requirements:
To send tracking data manually, select tracking logs from the list or open a log and click on Send Event:
Sensitive Data Cleanup
Because tracking logs contain sensitive data such as IP addresses and user agents, configure a cleanup schedule. Go to the website settings and set the cleaning period. The default period is 30 days:
Enable the Unlink Logs After Period option to completely remove tracking logs older than the specified period.
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 Conversion API integration:
-
01Log in to your Meta Ads Manager account
-
02Open your dataset and navigate to the Test Events tab
-
03Select Website from the channel list
-
04Open the Confirm your server’s events are set up correctly section
-
05Copy the test_event_code
Next, return to Odoo and paste the copied Test Code into the tracking service options. Also, enable the Remove JS Script option to prevent the Pixel script from sending events to Meta before the Conversions API:
Perform a few actions on your Odoo website, such as viewing a product page or adding an item to the cart. Navigate to the logs list and send these events manually.
If the state is Warning or Error, review the API Response value on the Technical tab for detailed information:
The Sent state indicates that the Conversions API successfully transmitted the event:
Return to Meta Ads Manager and verify the results:
Changelog
16.0.1.3.2 2025-01-14
- Improve user data processing.
- Add demo data.
16.0.1.3.1 2024-10-18
- Refactor fields "Deactivate Pixel" and "Test Code", make them common for all tracking services.
16.0.1.3.0 2024-10-09
- Refactor API fields, make them common for all tracking services.
16.0.1.2.3 2024-04-04
- Improve the form view of tracking services.
16.0.1.2.2 2024-02-16
- Fix getting a visitor data from a request.
16.0.1.2.1 2024-02-09
- Improve the tracking service form view.
16.0.1.2.0 2023-12-22
- Implement a special case when tracking data lacks a customer data, mark this event as warning.
- Implement a logic to allow working of both ways to pass tracking data to Facebook, via FB JS script and Facebook Conversions API. Users can remove the JS script from a website by the related setting.
16.0.1.1.0 2023-11-22
- Improve advanced matching - add new params.
16.0.1.0.0 2023-07-13
14.0.1.1.1 2024-02-16
- Fix getting a visitor data from a request.
14.0.1.1.0 2024-02-05
- Implement a special case when tracking data lacks a customer data, mark this event as warning.
- Implement a logic to allow working of both ways to pass tracking data to Facebook, via FB JS script and Facebook Conversions API. Users can remove the JS script from a website by the related setting.
- Improve advanced matching - add new params.
14.0.1.0.0 2023-07-22
15.0.1.1.2 2024-04-05
- Improve the form view of tracking services.
15.0.1.1.1 2024-02-16
- Fix getting a visitor data from a request.
15.0.1.1.0 2024-02-07
- Implement a special case when tracking data lacks a customer data, mark this event as warning.
- Implement a logic to allow working of both ways to pass tracking data to Facebook, via FB JS script and Facebook Conversions API. Users can remove the JS script from a website by the related setting.
- Improve advanced matching - add new params.
15.0.1.0.0 2023-02-27
- Init version.
17.0.1.3.2 2026-05-25
- Improve tracking logic.
17.0.1.3.1 2026-03-10
- Improve sending of tracking data by CAPI.
17.0.1.3.0 2025-08-04
- Add the "fbclid" parameter to provide Facebook with the proper "fbc" value when Click ID passed through URL query.
17.0.1.2.0 2025-01-14
- Refactor API fields, make them common for all tracking services.
17.0.1.1.4 2024-11-25
- Improve demo data.
17.0.1.1.3 2024-09-03
- Improve the user data "IP address" and "User Agent" passing.
17.0.1.1.2 2024-08-28
- Improve the log form view, add "fbp" and "fbc" fields.
17.0.1.1.1 2024-05-13
- Fix the tracking service form view.
17.0.1.1.0 2024-02-24
- Improve the tracking service form view.
17.0.1.0.0 2023-11-07
- Migration from 16.0.
18.0.1.1.2 2026-05-25
- Improve tracking logic.
18.0.1.1.1 2026-03-10
- Improve sending of tracking data by CAPI.
18.0.1.1.0 2025-01-14
- Refactor API fields, make them common for all tracking services.
18.0.1.0.0 2024-10-10
- Migration from 17.0.
19.0.1.0.2 2026-05-21
- Improve tracking logic.
19.0.1.0.1 2026-03-10
- Improve sending of tracking data by CAPI.
19.0.1.0.0 2025-10-12
- Migration from 18.0.
Resources
Meet the new Odoo app for tracking events on the Odoo website
How to integrate Facebook (Meta) Pixel to Odoo website