Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Website
  3. Facebook Conversions API and Facebook Meta Pixel v 19.0
  4. Sales Conditions FAQ

Facebook Conversions API and Facebook Meta Pixel

by Dot BD Solutions Limited https://www.dotbdsolutions.com
Odoo

$ 29.99

v 19.0 Third Party 1
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • CRM (crm)
• eCommerce (website_sale)
• Calendar (calendar)
• Contacts (contacts)
• Discuss (mail)
• Website (website)
• Invoicing (account)
Lines of code 1393
Technical Name dotbd_meta_pixel_capi
LicenseOPL-1
Websitehttps://www.dotbdsolutions.com
Versions 18.0 19.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • CRM (crm)
• eCommerce (website_sale)
• Calendar (calendar)
• Contacts (contacts)
• Discuss (mail)
• Website (website)
• Invoicing (account)
Lines of code 1393
Technical Name dotbd_meta_pixel_capi
LicenseOPL-1
Websitehttps://www.dotbdsolutions.com
Versions 18.0 19.0
  • Description
  • License
Meta Pixel + Conversions API

Meta Pixel + Conversions API for Odoo

The complete Meta/Facebook tracking integration for Odoo 18 & 19. Combines browser-side Meta Pixel and server-side Conversions API (CAPI) with automatic event deduplication — plus a full Facebook Lead Ads → Odoo CRM webhook integration. Works through ad blockers & iOS ITP via server-side CAPI fallback.

Meta Pixel (Browser)  •  Conversions API (Server)  •  Auto-Deduplication  •  Facebook Lead Ads → CRM  •  SHA-256 PII Hashing

VERIFIED IN PRODUCTION

Server + Browser — Perfectly Deduplicated

Facebook received both the browser Pixel event and the CAPI server event with the same Event ID — and automatically marked the browser copy as "Deduplicated". Zero double counting. Exactly as designed.

Meta Events Manager showing Browser events marked Deduplicated alongside Server Processed events — same Event ID proving deduplication works
Server
Processed ✓
Event ID: 4e217576...
Browser
Deduplicated
Same Event ID: 4e217576...
Result
Counted Once ✓
No double counting in Ads Manager

Works Through Ad Blockers via Server-Side CAPI

Even when a visitor's browser blocks the pixel — your CAPI server events always get through. Never miss a conversion.

Ad Blocker ON — Server Only
Browser pixel blocked. CAPI still captures every visit.
Test Events showing only Server events when adblocker is active
No Ad Blocker — Browser + Server Both
Both channels fire. Same Event ID sent for deduplication.
Test Events showing both Browser and Server events when no adblocker is active

Why you only see Server events in the Test Events tab when testing:
If your test browser has an adblocker, the browser pixel is blocked — only CAPI events appear. Disable your adblocker (or use incognito without extensions) to see both. Real visitors without adblockers send both Browser + Server events with deduplication.

LIVE PROOF — VERIFIED IN PRODUCTION

Browser + Server Events Both Firing & Deduplicated

Meta Events Manager Test Events tab — edu.myskillvora.com (Odoo 19 live deployment). Same Event ID shared between Browser and Server = Facebook deduplicates automatically.

Meta Events Manager Test Events showing Browser and Server events both received with matching Event IDs
Browser

PageView + ViewContent from browser pixel

Server

Same events via CAPI — same Event ID

Dedup ✓

Matching IDs = no double counting

Tip: If you only see Server events — your test browser has an adblocker. Disable it or use incognito. CAPI still captures 100% of real visitors either way.

All 7 Events Active in Meta Events Manager

Real data from edu.myskillvora.com — PageView, ViewContent, InitiateCheckout, Purchase, AddToCart, CompleteRegistration and Lead all active.

Meta Events Manager Overview showing 7 active events: PageView, ViewContent, InitiateCheckout, Purchase, AddToCart, CompleteRegistration, Lead
PageView — Multiple (3.6/10) ViewContent — Multiple (6.2/10) InitiateCheckout — Active Purchase — Active AddToCart — Active CompleteRegistration — Active Lead — Active

Advanced Matching & Event Match Quality

"Sent via Meta Pixel and Conversions API" — InitiateCheckout confirmed dual-tracked. Advanced Matching sends hashed customer email for better audience targeting.

Meta Events Manager showing InitiateCheckout sent via Meta Pixel AND Conversions API with Advanced Matching activity

InitiateCheckout — Sent via Meta Pixel (browser) AND Conversions API (server). 42% of events include hashed email via Advanced Matching for better retargeting.

Events Tracked

Every key ecommerce action, tracked on both browser and server.

PageView

Fired on every page load via the Pixel init script. CAPI fires server-side in the same request — guaranteed coverage even with adblockers.

Browser CAPI Dedup

ViewContent

Fired on every website page — homepage, blog, events, slides, and all CMS pages — as well as product detail pages.

Browser CAPI Dedup

AddToCart

Fired when a product is added to the cart. Sends content_ids, contents[], value and currency.

Browser CAPI

InitiateCheckout

Fired when a visitor reaches /shop/checkout. Confirmed "Sent via Meta Pixel AND Conversions API" in production.

Browser CAPI Dedup

Purchase

Fired on the confirmation page (browser) and from the payment transaction model (server). Both share the same event_id for deduplication.

Browser CAPI Dedup

CompleteRegistration

Fired on signup — browser Pixel fires on form submit, server CAPI fires after the account is created with full hashed PII.

Browser CAPI

Lead

Fired via CAPI when a Facebook Lead Ad form is submitted and the lead lands in Odoo CRM — closes the attribution loop for lead generation campaigns.

CAPI CRM

Facebook Lead Ads → Odoo CRM

Leads captured in Facebook go directly into your Odoo CRM pipeline.

Automatic Lead Capture

  • Webhook receives the lead the moment a form is submitted
  • Fetches full form data from Facebook Graph API v21.0
  • Creates crm.lead with all mapped fields
  • Sets UTM source, medium and campaign automatically
  • Assigns to your default sales team and salesperson
  • Stores Facebook Lead ID, Ad ID and Form ID for traceability
  • Fires a CAPI Lead event for ad optimisation
  • HMAC signature verification prevents spoofed leads
  • Idempotent — re-delivered webhooks never create duplicates
Facebook form fields → Odoo CRM:
email  →  email_from
full_name / first_name + last_name  →  contact_name
phone_number  →  phone
company_name  →  partner_name
campaign_name  →  utm.campaign (auto-created)
ad_name / ad_id  →  facebook_ad_name / facebook_ad_id
+ All raw fields stored in the lead Description
UTM source + medium = "Facebook" (built-in Odoo)

Module Features

Everything you need for complete Meta / Facebook integration in one module.

Browser Pixel Tracking

Injects the Meta Pixel base code on every page and fires PageView, ViewContent, AddToCart, InitiateCheckout and Purchase events automatically from your Odoo storefront.

Server-Side Conversions API

Sends the same events from your Odoo backend directly to Facebook via the Conversions API (CAPI). Bypasses ad blockers and iOS restrictions for higher match quality.

Event Deduplication

Browser pixel and CAPI share the same event_id. Facebook automatically removes duplicates within the 48-hour window — no double-counting in your Ads Manager.

Facebook Lead Ads → Odoo CRM

Webhook listener automatically creates crm.lead records whenever someone submits a Facebook Lead Ad form — no manual export or CSV import needed.

UTM Attribution

Every lead from Facebook is automatically tagged with utm_source = Facebook, utm_medium = Facebook and the campaign name from the Lead Ad.

Privacy & Security

All customer PII is SHA-256 hashed before transmission. Lead Ad webhooks are verified via X-Hub-Signature-256 HMAC using your App Secret to prevent spoofed requests.

How to Use

Two independent features — configure each separately.

A   Meta Pixel + Conversions API

1

Install & open Settings

Install dotbd_meta_pixel_capi. Navigate to Website → Configuration → Settings.

2

Enable and enter Pixel ID

Toggle Meta Pixel + Conversions API on. Paste your Pixel ID from Meta Events Manager.

3

Add Access Token

Paste your System User Access Token from Events Manager → Settings → Conversions API → Generate Token.

4

Verify with Test Code

Enter the Test Event Code from Events Manager and browse your shop. Check the Test Events tab for CAPI events and the Activity tab for browser events.

Website → Configuration → Settings → Meta Pixel + Conversions API
Website Settings showing Meta Pixel + Conversions API with Pixel ID, CAPI Token and Test Event Code

Global configuration for all websites. Per-website override available via Configuration → Websites (see below).

Meta Events Manager → Test Events tab
Meta Events Manager Test Events tab showing test_event_code TEST12038

Note: The Test Events tab shows only CAPI (server-side) events filtered by your Test Event Code. Browser Pixel events appear in the Activity tab (not Test Events). If you have an adblocker enabled, browser events will be blocked — disable it when testing, or use incognito mode without extensions.

Configuration → Websites → [Website] — Per-Website Pixel Override
Per-website configuration showing META PIXEL + CONVERSIONS API section with Pixel ID, CAPI Token, Test Event Code fields

Multi-website support: Set a different Pixel ID per website. If both fields (Pixel ID + CAPI Token) are filled here, the website-specific config takes priority over global Settings. Supports unlimited websites.

B   Facebook Lead Ads → CRM

1

Create a Facebook App

Go to developers.facebook.com → My Apps → Create App. Add the Webhooks product. Also generate a long-lived Page Access Token from App → Tools → Access Token Tool.

2

Configure in Odoo

Go to CRM → Configuration → Settings → Facebook Lead Ads. Enable it. Enter Verify Token, Page Access Token and optionally the App Secret.

3

Subscribe the Webhook

Facebook App → Webhooks → Page → Edit.
Callback URL: https://yourdomain.com/facebook/leads/webhook
Subscribe to the leadgen field.

4

Test a Lead

Use Ads Manager → Lead Ads Forms → Preview to submit a test lead. Open Odoo CRM and confirm the new lead record appears with all fields populated.

Settings Reference

Setting Where to find it Required?
Pixel ID Meta Events Manager → Data Sources → your Pixel Required
Conversions API Access Token Events Manager → Settings → Conversions API → Generate Token For CAPI (recommended)
Test Event Code Events Manager → Test Events tab Optional (testing only)
Webhook Verify Token Any string you choose — enter the same in Facebook App → Webhooks Required for Lead Ads
Page Access Token Facebook App → Tools → Access Token Tool → Page token Required for Lead Ads
App Secret Facebook App → Settings → Basic → App Secret Recommended (security)
Default Sales Team / Salesperson CRM → Settings → Facebook Lead Ads section Optional

Compatibility

Built for Odoo 18.0 and Odoo 19.0 Community and Enterprise.
Depends on website_sale, payment, crm, utm, auth_signup. Uses the standard Python requests library (pre-installed with Odoo). No third-party packages required.

Odoo 18.0 Community Odoo 18.0 Enterprise Odoo 19.0 Community Odoo 19.0 Enterprise Graph API v21.0

Support & Contact

Need help? We respond within 24 hours.

Email info@dotbdsolutions.com
WhatsApp +880 1810-025181
Website www.dotbdsolutions.com
Phone +880 1810-025181
YouTube @DotBdSolutionsLimited
Facebook facebook.com/dotbdsolutions
LinkedIn dot-bd-solutions
Learning Platform learn.dotbdsolutions.com
Dot BD Solutions Limited

Dot BD Solutions Limited

Copyright © 2026 Dot BD Solutions Limited. All rights reserved.

Author: Rafiur Rahman Rafit

Licensed under OPL-1

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

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with