Odoo Facebook Conversions API | Meta Conversion API Integration
by Garazd Creation https://garazd.biz/odoo-website-tracking$ 252.30
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Website (website)
• Discuss (mail) • eCommerce (website_sale) • Invoicing (account) |
Community Apps Dependencies | Show |
Lines of code | 2160 |
Technical Name |
website_sale_facebook_capi |
License | OPL-1 |
Website | https://garazd.biz/odoo-website-tracking |
Versions | 14.0 15.0 16.0 17.0 18.0 |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Website (website)
• Discuss (mail) • eCommerce (website_sale) • Invoicing (account) |
Community Apps Dependencies | Show |
Lines of code | 2160 |
Technical Name |
website_sale_facebook_capi |
License | OPL-1 |
Website | https://garazd.biz/odoo-website-tracking |
Versions | 14.0 15.0 16.0 17.0 18.0 |
- Community
- Enterprise
Integrate Facebook Conversion API to get enhanced conversion tracking and Odoo website events analytics
What is Odoo Facebook Conversions API, it is a way to send your marketing data, such us website events, some customer information, directly from your Odoo server to Meta (Facebook). This is an alternative channel as opposed to integration using the Odoo Facebook Pixel script. The Facebook CAPI integration can extend your Facebook Pixel tracking or replace it completely.
This data is collected in Odoo when your website visitors and customers make their journey on your Odoo website. Collected data is complemented by product data, and customer data, like as country, e-mail, phone number, in case if you enabled Advanced Matching. Odoo periodically sends this tracking data in a batch via Facebook CAPI integration.
This solution is designed to track customers' visits to e-commerce web pages and their eCommerce actions.
Advantages of using Facebook Conversion API in Odoo
The Facebook Conversion API helps track and measure conversions more accurately, especially when traditional tracking methods like browser-based cookies are limited.
Extended tracking of events, that are happened on Odoo side, like as signing of a sale order on Odoo customer portal, or making a payment through the generated payment link, allow providing additional tracking data about a customer journey.
With more reliable data, the Meta Conversion API helps accurately attribute conversions to the correct advertising campaigns, leading to better insights into the effectiveness of their marketing strategy.
The Facebook CAPI facilitates cross-device tracking, enabling businesses to understand how users interact with their ads and complete conversions across multiple devices, providing a more comprehensive view of the customer journey.
Using this solution, you can integrate and configure a Facebook Conversion API with your Odoo, collect website analytics and send events data to Facebook Events Manager. It's quite easy to start and does not require involving of developers. Just add a Facebook Pixel ID and an access token in a tracking service on Odoo side and activate the Conversions API mode.
Key features
One of the main features of this solution is supporting of multiple tracker adding, so you can activate and configure several Facebook Pixel ID for each Odoo website in your system.
The second feature provides internal logging of tracking events for the Facebook Conversion API, thereby this data can be analyzed in convenient for your business way, and extend your company's analytics capabilities.
In addition to the above features, you will be able to activate and configure Advanced Matching for this Conversions API integration. Customer information, that will be added to tracking events, will help to provide relevant ads through Facebook Ads Manager.
The Odoo Facebook Conversions API app is a professional tool to promote your products and services on Facebook and Instagram. This module is a part of the Garazd Creation Marketing Apps which cover marketing needs for businesses and fully compatible with each other. The Facebook Catalog and Instagram Shopping app perfect complements the current solution.
Connect the necessary number of pixels for each Odoo website
Log tracking events of website visitors in Odoo
Free 30 days support and 180 days bug-fixing
Demo & Test. Click on the "Live Preview" button
![Odoo Website tracking activate in 18.0](http://apps.odoocdn.com/apps/assets/18.0/website_sale_facebook_capi/odoo-website-tracking-activate.png?51a0960)
The solution cleans sensitive tracking data such as payload, client IP address, and user agent. You can control the period after which the purging is performed. By default, it's 30 days.
Additionally, you can activate the "Completely delete log entries older than the specified period" option to remove all internal tracking log records after this time.
Click on the "Manage Tracking Services" link or go to the "Configuration" - "Tracking" - "Services" menu and create a new tracking service for your Odoo website.
![Odoo Meta Conversions API - configure a tracking service in 18.0](http://apps.odoocdn.com/apps/assets/18.0/website_sale_facebook_capi/odoo_facebook_capi_tracking_service.png?51a0960)
Configure the tracking service in the following way:
- Specify a website (if you have a multi-website environment).
- Select the service type "Facebook Pixel".
- Fill in your Facebook Pixel ID.
- Activate the "Internal Logs" option.
Internal logging is a required option for Meta CAPI integration, it must be enabled.
Additionally, it provides internal tracking analytics. To view the log records related to the current service, click the "Logs" button at the top of the form.
- Activate the "Conversions API" option.
According to Facebook's official guidance, it's recommended to implement the Conversions API alongside with Meta Pixel. Our Odoo app implements this behavior by default.
The app provides the extra parameter Event ID to deduplicate events passed via Pixel script and Conversions API.
If you want to deactivate the Meta Pixel script on your website, you need to enable the "Remove FB Pixel script" option.
The following steps will show how to get a Facebook Conversions API access token on the Facebook Events Manager side.
- Open the "Data Sources" section in Facebook Events Manager and generate access token on the "Settings" tab in the "Conversions API" section.
- Then copy this token and paste it to the related field in Odoo.
![Odoo Facebook Conversion API access token generate for 18.0](http://apps.odoocdn.com/apps/assets/18.0/website_sale_facebook_capi/odoo_facebook_capi_access_token.png?51a0960)
Enabling Advanced Matching for Facebook Pixel events should be done on both sides, in Facebook Events Manager and in Odoo.
Open the "Data Sources" section in Facebook Events Manager and activate the "Automatic Website Matching" option on the pixel's "Settings" tab. Then, specify what kind of customer information will be shared with Facebook.
![Meta Pixel Advanced Matching settings for Odoo](http://apps.odoocdn.com/apps/assets/18.0/website_sale_facebook_capi/facebook_pixel_advanced_matching_settings_in_fb.png?51a0960)
Repeat the related settings in Odoo, you can perform it on the "Advanced Matching" tab of the tracking service.
![Odoo Facebook Pixel tracking with Advanced Matching in 18.0](http://apps.odoocdn.com/apps/assets/18.0/website_sale_facebook_capi/odoo_facebook_pixel_advanced_matching.png?51a0960)
In case when you allow guest checkouts without registering on the portal, it may not be enough data about the visitor for advanced matching.
You can use a customer data from the customer order, that provides more details for advanced matching. Select the "Sale Order Partner" value in this case.
As a website activity of internal users is not tracked and should not be sent to Meta (Facebook), there are several testing tips:
- You will not see any internal tracking logs if you are logged in to Odoo and you have an internal user access rights.
- Log out from the system, or use the incognito mode, or other browser to test tracking of website events.
After completing of the tracking service settings, use another browser to make an order on your Odoo eCommerce.
Go through all checkout steps: from viewing the product list, adding products to cart, initiating a checkout process and finishing the confirmation page.
Switch back to initial browser and open the tracking service logs, you should see appropriated log records for all eCommerce events.
![Odoo Meta CAPI tracking logs in 18.0](http://apps.odoocdn.com/apps/assets/18.0/website_sale_facebook_capi/odoo_facebook_capi_tracking_logs.png?51a0960)
Foremost, get a test code from the Test Events tab in the Facebook Events Manager.
![Odoo Facebook CAPI test events in 18.0](http://apps.odoocdn.com/apps/assets/18.0/website_sale_facebook_capi/odoo_facebook_capi_test_events_code.png?51a0960)
Put this code to the "Test Event Code" field in the tracking service in Odoo.
Than you need to send tracking events by Facebook Conversions API, to do this run a scheduled action "Website Tracking: Facebook CAPI - Send Tracking Events".
![Odoo Facebook Conversions API send tracking events in 18.0](http://apps.odoocdn.com/apps/assets/18.0/website_sale_facebook_capi/odoo_facebook_capi_cron_send_events.png?51a0960)
![Odoo Facebook Conversion API tracking events testing results 18.0](http://apps.odoocdn.com/apps/assets/18.0/website_sale_facebook_capi/odoo_facebook_capi_test_events_result.png?51a0960)
![Odoo Facebook Pixel tracking events monitoring for 18.0](http://apps.odoocdn.com/apps/assets/18.0/website_sale_facebook_capi/meta_pixel_dashboard_ecommerce_events.png?51a0960)
-
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.
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module