| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
eCommerce (website_sale)
• Website (website) • Discuss (mail) • Invoicing (account) |
| Lines of code | 170 |
| Technical Name |
terrabit_website_sale_tracking_base |
| License | LGPL-3 |
| Website | https://www.terrabit.ro |
| Versions | 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
eCommerce (website_sale)
• Website (website) • Discuss (mail) • Invoicing (account) |
| Lines of code | 170 |
| Technical Name |
terrabit_website_sale_tracking_base |
| License | LGPL-3 |
| Website | https://www.terrabit.ro |
| Versions | 18.0 19.0 |
Odoo Partner • Terrabit
Terrabit Website Sale Tracking Base
Base module for website sale tracking events (Facebook, TikTok, etc.)
Odoo 19.0
Online • Odoo.sh • On-premise
Dedicated support

Website Sale Tracking Base for Odoo 19
A core foundation module that centralizes and optimizes event tracking for multiple platforms (Meta/Facebook, TikTok, etc.) in Odoo 19.
#### Key Features:
- **Centralized Configuration**: Managed global settings like **Item ID Type** (Product, Template, or SKU) and **Exclude Delivery** in a single location under the Website settings.
- **Normalized Tracking Events**: Captures high-impact interactions ("Add to Cart", "Begin Checkout", "Add Payment Info", "Search", "Contact", "Form Submit") and re-broadcasts them as stable, namespaced DOM `CustomEvent`s (`terrabit_tracking:*`) consumed by downstream tracking pixels.
- **Enriched Tracking Payload**: Extends the core tracking data (view item, add to cart, purchase) with `item_tmpl_id` and `item_sku` so the configured **Item ID Type** can be honored client-side.
- **Single Source of Truth**: Implements Python helper methods (`_get_tracking_data`) to ensure consistency between CAPI and Pixel values.
#### Configuration:
1. Go to **Website > Configuration > Settings**.
2. Use the **Tracking Item ID Type** to select how products are identified globally.
3. Enable **Tracking Exclude Delivery** if you want to exclude shipping costs from all conversion values.
#### Technical Implementation:
- Built on the Odoo 19 **Interactions** framework (`@web/public/interaction`), registered in the `public.interactions` registry. (The legacy `publicWidget`-based `websiteSaleTracking` event bus was removed in Odoo 19.)
- Emits namespaced `CustomEvent`s on the `.oe_website_sale` root; tracking implementations listen to these plus the core `view_item_event` / `add_to_cart_event` events.
#### Support:
For support and customizations, please contact **Terrabit** at [https://www.terrabit.ro](https://www.terrabit.ro).
Bug Tracker
Bugs are tracked on Terrabit Issues. In case of trouble, please check there if your issue has already been reported.
Do not contact contributors directly about support or help with technical issues.
Credits
Authors
- Terrabit
Maintainers
This module is part of the terrabit-ro/bitshop project on GitHub.
You are welcome to contribute.
Need help?
We are an Odoo partner building apps for the Romanian market (SAGA & WinMentor export; Romanian accounting localization in progress). Direct support from the team that built the module.
Contact TerrabitTERRABIT
© Terrabit Solutions SRL •
terrabit.ro
• Odoo apps for Romania, Ireland & Moldova
Please log in to comment on this module