Skip to Content

Facebook Conversions API

Leave your feedback
https://garazd.biz/web/image/product.template/146/image_1920?unique=ba409b0

279.35
217.89 98
217.89228688261136 USD

Not Available For Sale

  • Odoo Version

  • Price

This combination does not exist.

Price: Paid

Overview

The Meta Conversions API (CAPI) transmits marketing data, such as website events and customer information, directly from your server to Meta Ads Manager (formerly Facebook Ads Manager).

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.

Odoo Update App List

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.

Odoo App Installation

* 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.

View Odoo App Description

Manual

fa code

How to get Pixel ID

Perform the following steps to obtain a Pixel ID before adding the JS script to the website:

events manager integrations meta pixel
  • 01
    Log in to the Meta Ads Manager account
  • 02
    Navigate to Events Manager — Integrations — Meta Pixel
  • events manager meta pixel connect dataset
    events manager add meta pixel code to website yourself
  • 03
    Select an existing dataset or create a new one in the pop-up window
  • 04
    Select the Add Meta Pixel code to website yourself option
  • 05
    Skip the next steps by clicking Next

Navigate to the Datasets section and copy the Dataset ID:

events manager datasets dataset meta pixel id
check circle fill

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:

odoo settings website activate tracking debug logging
fa cookie

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:

odoo website settings tracking seo cookies bar facebook pixel consent revoked

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.

ads click rounded

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:

odoo website configuration tracking services new

Firstly, fill in the following fields in the new tracking service:

odoo meta facebook pixel tracking service website type key
  • 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:

odoo meta facebook pixel tracking service item category type

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:

odoo tracking service options lead value

This field represents the monetary value of a lead generation, based on estimated evaluations.

Conversions API Setup

Enable the Internal Logs option:

odoo tracking service options internal logs
Internal logging is required for API integration.

Before configuring the API in Odoo, obtain an access token in Meta Ads Manager:

meta events manager dataset settings generate access token
  • 01
    Open your dataset and navigate to the Settings tab
  • 02
    Select the Set up with Dataset Quality API in the Conversions API section
  • 03
    Click the Generate access token button
  • 04
    Copy the access token

After that, return to Odoo and activate API mode by completing the following steps in the API section:

odoo meta facebook tracking service api activate access token
  • Enable the Activate option
  • Paste the copied Conversions API key into the Access Token field
fa address card

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:

meta events manager dataset settings automatic website matching

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:

odoo meta facebook pixel tracking service advanced matching
The module hashes customer information to comply with Meta requirements and sends it along with product tracking data to improve performance efficiency.

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:

odoo tracking service advanced matching sale order partner
fa share from square

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:

odoo meta facebook pixel tracking service logs button

Enable the State and API Sent Date columns to display a status and the date of event sending through the Conversions API:

odoo meta facebook tracking service logs state api sent date

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:

odoo meta facebook conversions api scheduled action

To send tracking data manually, select tracking logs from the list or open a log and click on Send Event:

odoo meta facebook tracking service api send event log

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:

odoo website settings clean up period for internal tracking logs unlink

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:

odoo tracking service technical identifier field
The specified product field should provide non-empty values and remain unique for each product. Otherwise, the tracking data for this product becomes unusable.

Purchase on Portal

To track portal purchases, enable the Track Purchase on Portal option:

odoo tracking service technical track purchase on portal

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:

odoo tracking service technical exclude delivery

Exclude Rewards

To exclude reward order lines from tracking data, enable the Exclude Reward option:

odoo tracking service technical exclude reward

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:

odoo website enhanced tracking event settings add to cart on click
  • Navigate to Website — Configuration — Websites
  • Open the website on the Enhanced Tracking tab
  • Enable the Add to Cart on Click option
Tracking the actual addition might fail if third-party modules modify the logic. In this case, this option allows for event tracking by binding it to button selectors used in native Odoo website templates.

Purchase

To track purchases only after a successful payment transaction, enable the Track Confirmed Purchases only option:

odoo website enhanced tracking event settings track confirmed pending purchases
This option only affects the event transmission through the tracking service; the internal log records the event regardless.

If business logic considers an order with a Pending payment status as a purchase, enable the Track Pending Purchases too option as well.

fa bug

Testing

For testing, log out of Odoo or use a different browser, as website tracking does not work for internal Odoo users.

Perform the following steps to verify the Meta Conversion API integration:

meta events manager dataset api test events
  • 01
    Log in to your Meta Ads Manager account
  • 02
    Open your dataset and navigate to the Test Events tab
  • 03
    Select Website from the channel list
  • 04
    Open the Confirm your server’s events are set up correctly section
  • 05
    Copy 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:

odoo meta facebook tracking service test code remove js script

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:

odoo meta facebook tracking log error api response

The Sent state indicates that the Conversions API successfully transmitted the event:

odoo meta facebook tracking log sent api

Return to Meta Ads Manager and verify the results:

meta events manager dataset api test events receiving activity
Once testing is complete, clear the Test Code field and disable the Remove JS Script option, as combining browser and server-side event tracking improves performance.

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.

Reviews

Our customers have already appreciated the quality, reliability, and performance of the solutions we offer

Login to leave a comment

FAQ