Server-side tracking on Odoo websites with TikTok Conversion API (Events API) integration to send tracking events to TikTok Ads Manager
Odoo e-commerce events can be tracked using the TikTok Pixel as well as the Events API. This Odoo module allows you to manage which connection method to use: browser-side, server-side, or both.
Events sent to TikTok include product and sales order details, customer data for advanced matching, and an event ID for deduplication.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
|---|---|
| Compatibility |
Community
Enterprise
|
| Technical Name | website_sale_tiktok_capi |
| Version | 20.0.1.0.1 |
| 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.
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.
* 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.
Manual
Tracking Events
The module supports tracking the following events
Search Products
Searching via global site search or within the product catalog
View Product List
Viewing the product list after opening the catalog, including search results
View Product
Viewing a product page
Add to Wishlist
Adding a product to the wishlist from any available location: catalog, product page, and cart
Add to Cart
Adding a product to the cart from any available location: catalog, product page, and wishlist
Begin Checkout
Opening the first step page of the checkout process
Add Payment Info
Proceeding from payment information to payment
Purchase
Successful purchase completion and opening the sales order confirmation page
Getting a Pixel ID and API Access Token
Before setting up activity tracking on your Odoo website, get a pixel ID and an access token for server-side integration via the API. To do this, follow the steps below.
-
01Log in to your TikTok Ads Manager account
-
02Go to Tools — Events Manager — Data Sources and click Connect Data Source
-
03Select Web as the data source
-
04Paste your Odoo website URL into the corresponding field or skip this step
-
05Select Manual Setup as the connection method
-
06Select TikTok Pixel + Events API as the manual connection method
-
07Enter a Name for your pixel
-
08On the Implement Events API step, copy the Pixel ID, click Generate Access Token, and also copy the generated value
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.
Tracking Service Configuration
The module tracks e-commerce events on an Odoo website using a tracking service. It sends tracking events to TikTok Ads Manager along with product information and user-provided data. You can send data via both the TikTok Pixel and the Events API. Add and configure the 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 for your Odoo website.
Firstly, fill in the following fields:
- Specify a Website (if multiple websites are used)
- Select TikTok Pixel as the service Type
- Paste your Pixel ID into the Key field
Then select the product identifier type and the product category to send to TikTok Ads Manager.
If products have attributes and variants, choose Product Variant ID in the Item Type field; if not, 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. Set the monetary value of lead generation according to your estimates.
Activating the Events API
Activating the TikTok Events API requires an access token and event logging.
Enable the Internal Logs option on the Options tab.
Next, activate the server-side integration in the API section—enable the Activate option and paste the generated Access Token.
Advanced Matching
Advanced matching optimizes your ads by providing user data to TikTok Ads Manager. Open the Advanced Matching tab and specify what information the tracking service should send. The Enable Allowed button allows you to enable all available options for this tracking service.
Checking the Hashed checkbox next to the Customer Name, Email, and Phone options indicates that this customer information is protected using hashing, complying with TikTok requirements.
For better results, also Enable Automatic Advanced Matching (AAM) in your data source settings within TikTok Events Manager.
Sending Tracking Data
The tracking service sends events from the internal log via the TikTok Events API at a set interval.
To view internal tracking events, go to Website — Configuration — Tracking — Logs or click the Logs button at the top of the tracking service form.
Enable the State and API Sent Date columns to display the status and date of event transmission to TikTok Ads Manager via the Events API.
Automatic Event Transmission
The module automatically sends tracking events using an Odoo scheduled action. By default, it runs every 30 minutes, and you can adjust this interval to suit your requirements.
To send tracking data manually, select tracking logs from the list or open an individual log record and click Send Event.
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.
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 module 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:
Purchase on Portal
To track portal purchases, enable the Track Purchase on Portal option:
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:
Exclude Rewards
To exclude reward order lines from tracking data, enable the Exclude Reward option:
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:
- Navigate to Website — Configuration — Websites
- Open the website on the Enhanced Tracking tab
- Enable the Add to Cart on Click option
Purchase
To track purchases only after a successful payment transaction, enable the Track Confirmed Purchases only option:
If business logic considers an order with a Pending payment status as a purchase, enable the Track Pending Purchases too option as well.
Testing
You can test the TikTok Events API server-side integration using test events. To do this, follow the steps below.
First, open your data source in TikTok Events Manager under the Test Events tab and copy the Test Code.
Next, open your TikTok Pixel tracking service in Odoo on the Options tab and paste the copied Test Code into the corresponding field. Additionally, enable the Remove JS Script option to prevent sending events to TikTok via the pixel script before launching the event API.
Now, perform several actions on your website, such as browsing the product list or adding an item to the cart.
After that, go to the log list and send these events manually. If the status is Warning or Error, review the API Response value on the Technical tab for detailed information.
The Sent status means the event was successfully sent via the API.
Return to TikTok Events Manager and check for the presence of test events in the list.
Changelog
16.0.1.0.0 2024-06-04
- Init version.
17.0.1.0.1 2026-05-25
- Improve tracking logic.
17.0.1.0.0 2024-10-30
- Migration from 16.0.
18.0.1.1.1 2026-05-25
- Improve tracking logic.
18.0.1.1.0 2026-02-19
- Add extra Advanced Matching options to provide customer information via TikTok Events API: First Name, Last Name, Country, Zip code, City, and State.
18.0.1.0.0 2025-01-14
- Migration from 17.0.
19.0.1.1.2 2026-10-28
- Improve API error handling.
19.0.1.1.1 2026-05-21
- Improve tracking logic.
19.0.1.1.0 2026-02-19
- Add extra Advanced Matching options to provide customer information via TikTok Events API: First Name, Last Name, Country, Zip code, City, and State.
19.0.1.0.0 2025-10-23
- Migration from 18.0.
20.0.1.0.1 2026-10-28
- Improve API error handling.
20.0.1.0.0 2026-09-28
- Migration from 19.0.