| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
eCommerce (website_sale)
• Website (website) • Invoicing (account) • Discuss (mail) |
| Lines of code | 185 |
| Technical Name |
terrabit_website_sale_tracking_base |
| License | LGPL-3 |
| Website | https://www.terrabit.ro |
Terrabit Website Sale Tracking Base

Website Sale Tracking Base for Odoo 18
A core foundation module that centralizes and optimizes event tracking for multiple platforms (Meta/Facebook, TikTok, etc.) in Odoo 18. #### 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 SEO settings. - **Global Event De-duplication**: Uses advanced JavaScript mechanisms (`WeakSet` and unique event keys) to prevent duplicate event triggers (like `ViewContent`) caused by multiple tracking widgets in Odoo 18. - **Odoo 18 Virtual Route Normalization**: Automatically maps new virtual checkout routes (e.g., `/stats/ecom/customer_checkout`) to standard GA4-style events (`begin_checkout`, `add_shipping_info`, `add_payment_info`) for all downstream tracking pixels. - **Common DOM Event Capture**: Unified logic for capturing high-impact interactions like "Add to Cart", "Begin Checkout", and "Add Payment Info" across the website. - **Improved Performance**: Reduces code redundancy and ensures a single point of truth for tracking data calculation (both frontend and backend). #### Configuration: 1. Go to **Website > Configuration > Settings**. 2. Look for the **SEO** section. 3. Use the **Tracking Item ID Type** to select how products are identified globally. 4. Enable **Tracking Exclude Delivery** if you want to exclude shipping costs from all conversion values. #### Technical Implementation: - Extends the legacy `websiteSaleTracking` widget to provide a stable event bus for all Terrabit tracking modules. - Implements Python helper methods (`_get_tracking_data`) to ensure consistency between CAPI and Pixel values. #### Support: For support and customizations, please contact **Terrabit** at [https://www.terrabit.ro](https://www.terrabit.ro).
Table of contents
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.
Please log in to comment on this module