Overview
TikTok Events API - is a server-side connection to provide tracking data from Odoo to TikTok.
Odoo e-Commerce events can be tracked as by TikTok Pixel, and the Events API as well. The solution allows you to manage which connection method to use, the browser-side, the server-side, or both.
Events that are sent to TikTok contain product and sale order details, customer data for advanced matching, and the event identifier for deduplication.
The module setup guide:
Configuration in TikTok Enable Website Tracking Configuration in Odoo Advanced Matching Testing Monitoring
Availability |
Odoo Online
Odoo.sh
On Premise
|
---|---|
Compatibility |
Community
Enterprise
|
Technical Name | website_sale_tiktok_capi |
Version | 18.0.1.0.0 |
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











- contend_id
- contend_type
- contend_category
- contend_name
- description
- value
- price
- currency
- quantity
- event_id


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.
When you are going to use the Advanced Matching and send your website customers' names in the tracking data, specify the order of the first and the last names. As, in some countries, a partner name can start with the first name, and with the last name in others.

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.

Configure the tracking service in the following way:
- Specify a website (if you have a multi-website environment).
- Select the service type "TikTok Pixel".
- Fill in your TikTok Pixel ID to the Key field.
- Activate the "Internal Logs" option.
Internal logging is a required option for the TikTok Events API 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 "API" option.
According to the TikTok's Web measurement guidance, it's recommended "setting up both the TikTok Pixel and Events API together to maximize measurement and performance of your campaigns".
This Odoo app implements this behavior by default, but you can deactivate the TikTok Pixel script on your website by the "Remove JS Pixel script" option.
In the case when both the tracking are active, the solution sends the additional parameter Event ID to perform a deduplication on the TikTok side.
Activate the Automatic Advanced Matching for your TikTok Events API in Odoo on the "Advanced Matching" tab.

In case when you allow guest checkouts without registering on the Odoo portal, it can cause a lack of user data for advanced matching.
By selecting the "Sale Order Partner" option, you can supplement user data by customer details from their sales orders.
As a website activity of Odoo internal users should not be tracked, 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.
- You need to log out from Odoo, or use the incognito mode, or use another browser to test website tracking.
After configuring of the TikTok Conversion API, make a checkout on your Odoo eCommerce. Go through all the checkout steps: from viewing the product list, adding products to cart, initiating a checkout process and completing on the confirmation page. Switch back to your Odoo and open the TikTok tracking service logs, you should see the tracking logs for all eCommerce events.

Select your TikTok Pixel in the Events Manager, and on the Test Events tab copy the test event code:

Put this code to your TikTok tracking service in Odoo.

After that, perform several actions on your website and send these tracking events in the following way:

On the TikTok Ads Manager side, the events will appear in the Event Activity list.

Monitor your TikTok Events API integration with the TikTok Ads Manager to get analytics and get informed about performance and issues.
Open the Events Manager by going to the "Tools" - "Management" - "Events" menu and select your data source.

Changelog
16.0.1.0.0 2024-06-04
- Init version.
17.0.1.0.0 2024-10-30
- Migration from 16.0.
18.0.1.0.0 2025-01-14
- Migration from 17.0.