1. Home
  2. Docs
  3. TikTok Events API

TikTok Events API

Overview:

TikTok Events API is designed to provide advertisers with a more reliable connection between TikTok and their marketing data (such as servers, websites, apps, or CRMs), while also offering the flexibility to customize the information shared. Sharing these events with TikTok helps marketing teams measure ad performance, optimize ad delivery, and create targeted audiences. This guide explains how to set up the TikTok Events API specifically for websites to track first-party web data.

Goal:
  • Reduce cost per action through improved data connectivity
  • Optimize ads for actions that occur later in the customer journey
  • Improve measurement accuracy
  • Enhance event matching to further reduce the cost per action
  • Increase control over your data
Source Set-up:

The website data source is the most common way to track user actions. It captures user interactions and hashed user data, which can be sent to various destinations such as ad platforms (for targeting and optimization), analytics systems, and marketing automation tools.

Destination Set-up:

The TikTok Events API destination is set up using a Pixel ID, which can be created or accessed through the TikTok Ads Manager interface, part of a TikTok for Business account. The API is authenticated using an access token, which can be generated either through the “Login with TikTok” SSO flow provided by Datahash or manually from the Pixel settings in TikTok Ads Manager.

Pre-requisites:
  • A Datahash account with Website Source and TikTok Events API destination connectors enabled
  • Access to the Domain Manager of your website to configure a subdomain
  • Access to Google Tag Manager or your website code to implement tags
  • TikTok Ads Manager access through a TikTok for Business account with access to Pixel set-up on the business website


This document will guide you through the implementation of the TikTok Events API through your website as a data source.

Implementation of TikTok Events API includes the following three steps:

Step 1: Set up a sub-domain for first-party cookies

Step 2: Set up your website as a data source for Web events

Step 3: Set up TikTok Events API Destination

Articles

How can we help?