TikTok Events API

TikTok for Business is a global platform designed to give brands and marketers the solutions to be creative storytellers and meaningfully engage with the TikTok community. The TikTok Events API is a server-side integration that allows you to share website and app visitor events directly with TikTok using their Events API for Web and Events API for App version 1.3.

The Events API for App support is currently under beta testing and coming soon.

Key features

The TikTok Events API destination provides the following key features:

  • Events structure: our Events reference matches TikTok's one, meaning that your data is properly bridged to the expected fields in an optimized way.

  • Prebuilt mappings: data mapping for event-based destinations happens automatically, which simplifies user inputs.

  • Automatic hashing: information is automatically hashed matching partner specifications.

  • Smart mapping: data mapping can be readjusted using your datalayer defined fields.

  • Support for multi-item data: information included in the item array is dispatched to TikTok.

  • Support for test event code: real-time validation in your test environments with field test_event_code.

Destination setup

Before you get started with this destination, make sure you can access TikTok Ads Manager.

TikTok custom events are available for reporting and audience creation purposes. Optimization is currently NOT supported.

Configuration

[1] The Test Event Code can only be set in test environments as TikTok won't save data coming from live events where this code is included. More details are available following this LINK.

Quick reference

Web events

TikTok supported web events are detailed in this LINK.

[1] With CompletePayment events you can take advantage of TikTok Value-Based Optimization for Web (VBO Web).

Field Mappings

Most properties can be remapped using our "Smart Mapping" feature. TikTok client-side pixel saves a unique identifier in cookie _ttp, which is used to match website visitor events with TikTok ads. This destination starts by getting this identifier from partners.tiktok.ttp . If it's not present, it looks for the previously mentioned cookie _ttp and sets TikTok context.user.ttp with the resulting value. The Tiktok Click ID, also known as ttclid, is a tracking parameter that is attached to your ad's landing page URLs. This destination checks if partners.tiktok.ttclid is set with the ttclid value. If it's not present, it looks for cookie ttclid. If none is found it tries by parsing the value from page.location.href . Advanced matching parameters are highly recommended to improve attribution rates: ensure properties.user.email and/or properties.user.phone is set. More details on the phone number format rules are available following this LINK.

[1] Automatically converted in the ISO 8601 format. [2] This is required if you are sending overlapping events from both TikTok client-side pixel and this destination. More details on the deduplication are available following this LINK. [3] Field automatically hashed with SHA256 if passed in clear. [4] This is eitherproductorproduct_groupdepending on how you have configured your data feed when you set up your product catalog. Default value:product. [5] partners.tiktok.ttp has priority over cookie _ttp. [6] partners.tiktok.ttclid has priority over cookie ttclid. and page.location.href parsing.

Last updated