Skip to Content

TikTok Events API

Leave your feedback
https://garazd.biz/web/image/product.template/241/image_1920?unique=fc15fe3

$ 274.69
$ 274.69 6
274.6890619921467 USD

Not Available For Sale

  • Odoo Version

  • Price

This combination does not exist.

Price: Paid

Server-side tracking on Odoo websites with TikTok Conversion API (Events API) integration to send tracking events to TikTok Ads Manager

TikTok Events API is a server-side connection for transmitting tracking data from Odoo 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.

Odoo Update App List

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.

Odoo App Installation

* 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.

View Odoo App Description

Manual

section circle mask reverse
fa hand pointer

Tracking Events

The module supports tracking the following events

search
01
Search Products

Searching via global site search or within the product catalog

list ui
02
View Product List

Viewing the product list after opening the catalog, including search results

box
03
View Product

Viewing a product page

heart
04
Add to Wishlist

Adding a product to the wishlist from any available location: catalog, product page, and cart

cart plus
05
Add to Cart

Adding a product to the cart from any available location: catalog, product page, and wishlist

cart check
06
Begin Checkout

Opening the first step page of the checkout process

credit card
07
Add Payment Info

Proceeding from payment information to payment

bag check
08
Purchase

Successful purchase completion and opening the sales order confirmation page

fa code

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.

  • 01
    Log in to your TikTok Ads Manager account
  • 02
    Go to Tools — Events Manager — Data Sources and click Connect Data Source
  • tiktok ads manager tools events manager connect data source
  • 03
    Select Web as the data source
  • tiktok events manager connect web data source
  • 04
    Paste your Odoo website URL into the corresponding field or skip this step
  • tiktok events manager add your odoo website
  • 05
    Select Manual Setup as the connection method
  • tiktok events manager choose a data connection method manual setup
  • 06
    Select TikTok Pixel + Events API as the manual connection method
  • events manager choose a manual connection method tiktok pixel + api
  • 07
    Enter a Name for your pixel
  • tiktok events manager create pixel odoo
  • 08
    On the Implement Events API step, copy the Pixel ID, click Generate Access Token, and also copy the generated value
  • tiktok ads manager implement events api pixel id generate access token odoo
check circle fill

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.

odoo settings website activate tracking debug logging
settings

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.

odoo website configuration tracking services new

Firstly, fill in the following fields:

odoo tiktok pixel tracking service website type key
  • 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.

odoo tiktok pixel tracking service item type category

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.

odoo tracking service options lead value

Activating the Events API

Activating the TikTok Events API requires an access token and event logging.

alert warning
Saving tracking events in internal Odoo logs is mandatory for server-side integration.

Enable the Internal Logs option on the Options tab.

odoo tracking service options internal logs

Next, activate the server-side integration in the API section—enable the Activate option and paste the generated Access Token.

alert success
For instructions on how to generate an access token, see the Getting a Pixel ID and API Access Token section.
odoo tiktok pixel tracking service options activate api 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.

odoo tiktok api tracking service advanced matching

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.

tiktok events manager odoo data source settings enable automatic advanced matching
fa share from square

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.

odoo tiktok pixel tracking service logs

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.

odoo tiktok pixel tracking service logs state api sent date

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.

alert info
The list of scheduled actions is located in Settings — Technical — Automation — Scheduled Actions and is accessible only in Developer Mode.
odoo technical settings tiktok api scheduled action execute every

To send tracking data manually, select tracking logs from the list or open an individual log record and click Send Event.

odoo tiktok api tracking service log 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.

website settings clean up period for internal logs unlink

Enable the Unlink Logs After Period option to completely remove tracking logs older than the specified period.

fa gears

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:

odoo tracking service technical identifier field
notification
The specified product field should provide non-empty values and remain unique for each product. Otherwise, the tracking data for this product becomes unusable.

Purchase on Portal

To track portal purchases, enable the Track Purchase on Portal option:

odoo tracking service technical track purchase on portal

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:

odoo tracking service technical exclude delivery

Exclude Rewards

To exclude reward order lines from tracking data, enable the Exclude Reward option:

odoo tracking service technical exclude reward

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:

odoo website enhanced tracking event settings add to cart on click
  • Navigate to Website — Configuration — Websites
  • Open the website on the Enhanced Tracking tab
  • Enable the Add to Cart on Click option
alert info
Tracking the actual addition might fail if third-party modules modify the logic. In this case, this option allows for event tracking by binding it to button selectors used in native Odoo website templates.

Purchase

To track purchases only after a successful payment transaction, enable the Track Confirmed Purchases only option:

odoo website enhanced tracking event settings track confirmed pending purchases
alert info
This option only affects the event transmission through the tracking service; the internal log records the event regardless.

If business logic considers an order with a Pending payment status as a purchase, enable the Track Pending Purchases too option as well.

fa bug

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.

tiktok ads manager test events api code odoo

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.

odoo tiktok pixel tracking service options api test code remove js script

Now, perform several actions on your website, such as browsing the product list or adding an item to the cart.

alert warning
For testing, log out of Odoo or use a different browser, as website event tracking does not work for internal Odoo users.

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.

odoo tiktok pixel tracking service log error technical api response

The Sent status means the event was successfully sent via the API.

odoo tiktok api tracking service log sent

Return to TikTok Events Manager and check for the presence of test events in the list.

tiktok ads manager odoo website test events api activity
alert success
Once testing is complete, clear the Test Code field and disable the Remove JS Script option, as combining browser and server-side event tracking improves performance.

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.

Reviews

Our customers have already appreciated the quality, reliability, and performance of the solutions we offer

Login to leave a comment

FAQ

Do you provide assistance with this Odoo app installation?

Yes, if you are on Odoo.sh or use your own On-Premise hosting, and can grant us with access, we can help you with the installation and initial setup.