Skip to contentSkip to navigationSkip to topbar
On this page
Looking for more inspiration?Visit the
(information)
You're in the right place! Segment documentation is now part of Twilio Docs. The content you are used to is still here—just in a new home with a refreshed look.

TikTok Conversions


The TikTok Conversions destination is a server-to-server integration with the TikTok Events API that allows advertisers to share website visitor events from Segment directly to TikTok.

Data shared through the Events API is processed similarly to information shared through the TikTok pixel and TikTok SDK business tools. Advertisers can use events data to power solutions like dynamic showcase ads (DSA), custom targeting, campaign optimization and attribution. Advertisers can see their event data in TikTok Events Manager.

TikTok maintains this integration. Please reach out to the [TikTok support team](mailto: segmenteng@bytedance.com) for any issues.


Benefits of TikTok Conversions

benefits-of-tiktok-conversions page anchor

The TikTok Conversions destination provides the following benefits:

  1. Clear mapping of data. Actions-based destinations enable you to define the mapping between the data Segment receives from your source and the data Segment sends to TikTok.
  2. Prebuilt mappings. Mappings for TikTok Standard Events, like PlaceAnOrder, are prebuilt with the prescribed parameters and available for customization.
  3. Streamlined stability and security. Integrate and iterate without client-side limitations, like network connectivity or ad blocker issues.
  4. Privacy-focused: Stay compliant with rapidly evolving requirements with automatic PII hashing and flexible controls that let you adapt what data you share.
  5. Maximum event measurement: Capture more events with improved accuracy across different browsers, apps, and devices to get a unified view of your customer's journey from page view to purchase.

Follow the instructions below to enable your TikTok ads account and add the TikTok Conversions destination to your Segment workspace.

(information)

Info

Refer to the destination as Tiktok Conversions in the Integrations object.

TikTok Requirements

tiktok-requirements page anchor

The TikTok Conversions destination is configured to use the TikTok Events API. To generate a TikTok Pixel Code and Access Token:

  1. Create a TikTok For Business account(link takes you to an external page).
  2. Create a TikTok Pixel(link takes you to an external page) in Developer Mode to obtain a Pixel Code. For more information about Developer Mode, please review the TikTok developer documentation(link takes you to an external page).
  3. Follow instructions for Authorization(link takes you to an external page) and generate a long term Access Token.

Connect TikTok Conversions to your workspace

connect-tiktok-conversions-to-your-workspace page anchor
  1. From the Segment web app, click Catalog, then click Destinations.
  2. Search for "TikTok Conversions" in the Destinations Catalog, and select the destination.
  3. Click Configure TikTok Conversions.
  4. Select the source that will send data to TikTok Conversions and follow the steps to name your destination.
  5. On the Settings tab, enter in your TikTok Access Token and Pixel Code and click Save.
  6. Follow the steps in the Destinations Actions documentation on Customizing mappings.

Property nameTypeRequiredDescription
Access Tokenpassword
required

Your TikTok Access Token. Please see TikTok’s Events API documentation(link takes you to an external page) for information on how to generate an access token via the TikTok Ads Manager or API.


Pixel Codestring
required

Your TikTok Pixel ID. Please see TikTok’s Events API documentation(link takes you to an external page) for information on how to find this value.


TikTok Conversions has the following presets

Preset NameTriggerDefault Action
DownloadEvent event = "Download Link Clicked"Report Web Event
Add Payment InfoEvent event = "Payment Info Entered"Report Web Event
ContactEvent event = "Callback Started"Report Web Event
Initiate CheckoutEvent event = "Checkout Started"Report Web Event
Complete PaymentEvent event = "Order Completed"Report Web Event
Click ButtonEvent event = "Product Clicked"Report Web Event
Add to WishlistEvent event = "Product Added to Wishlist"Report Web Event
SearchEvent event = "Products Searched"Report Web Event
View ContentEvent event = "Product Viewed"Report Web Event
Submit FormEvent event = "Form Submitted"Report Web Event
SubscribeEvent event = "Subscription Created"Report Web Event
Place an OrderEvent event = "Order Placed"Report Web Event
Page ViewEvent type="page"Report Web Event
Complete RegistrationEvent event = "Signed Up"Report Web Event
Add to CartEvent event = "Product Added"Report Web Event

Build your own Mappings. Combine supported triggers with the following TikTok Conversions-supported actions:

(information)

Mapping limits per destination

Individual destination instances have support a maximum of 50 mappings.

Report Web events directly to TikTok. Data shared can power TikTok solutions like dynamic product ads, custom targeting, campaign optimization and attribution.

Report Web Event is a Cloud action.

Property nameTypeRequiredDescription
Event SourceSTRING

Optional

The type of events you are uploading through TikTok Events API. Please see TikTok's Events API documentation(link takes you to an external page) for information on how to find this value. If no selection is made 'Web' is assumed.


Additional FieldsSTRING

Optional

Include fields for travel or vehicle events.


Event NameSTRING
required

Conversion event name. Please refer to the "Supported Web Events" section on in TikTok’s Events API documentation(link takes you to an external page) for accepted event names.


Event IDSTRING

Optional

Any hashed ID that can identify a unique user/session.


Event TimestampSTRING

Optional

Timestamp that the event took place, in ISO 8601 format.


Phone NumberSTRING

Optional

A single phone number or array of phone numbers in E.164 standard format. Segment will hash this value before sending to TikTok. e.g. +14150000000. Segment will hash this value before sending to TikTok.


EmailSTRING

Optional

A single email address or an array of email addresses. Segment will hash this value before sending to TikTok.


First NameSTRING

Optional

The first name of the customer. The name should be in lowercase without any punctuation. Special characters are allowed.


Last NameSTRING

Optional

The last name of the customer. The name should be in lowercase without any punctuation. Special characters are allowed.


AddressOBJECT

Optional

The address of the customer.


Order IDSTRING

Optional

Order ID of the transaction.


Shop IDSTRING

Optional

Shop ID of the transaction.


External IDSTRING

Optional

Uniquely identifies the user who triggered the conversion event. Segment will hash this value before sending to TikTok. TikTok Conversions Destination supports both string and string[] types for sending external ID(s).


TikTok Click IDSTRING

Optional

The value of the ttclid used to match website visitor events with TikTok ads. The ttclid is valid for 7 days. See Set up ttclid(link takes you to an external page) for details.


TikTok Cookie IDSTRING

Optional

TikTok Cookie ID. If you also use Pixel SDK and have enabled cookies, Pixel SDK automatically saves a unique identifier in the _ttp cookie. The value of _ttp is used to match website visitor events with TikTok ads. You can extract the value of _ttp and attach the value here. To learn more about the ttp parameter, refer to Events API 2.0 - Send TikTok Cookie(link takes you to an external page) (_ttp).


LocaleSTRING

Optional

The BCP 47 language identifier. For reference, refer to the IETF BCP 47 standardized code(link takes you to an external page).


Page URLSTRING

Optional

The page URL where the conversion event took place.


Page ReferrerSTRING

Optional

The page referrer.


IP AddressSTRING

Optional

IP address of the browser.


User AgentSTRING

Optional

User agent from the user’s device.


ContentsOBJECT

Optional

Related item details for the event.


Content IDsSTRING

Optional

Product IDs associated with the event, such as SKUs. Do not populate this field if the 'Contents' field is populated. This field accepts a single string value or an array of string values.


Number of ItemsNUMBER

Optional

Number of items when checkout was initiated. Used with the InitiateCheckout event.


Content TypeSTRING

Optional

Type of the product item. When the content_id in the Contents field is specified as a sku_id, set this field to product. When the content_id in the Contents field is specified as an item_group_id, set this field to product_group.


CurrencySTRING

Optional

Currency for the value specified as ISO 4217 code.


ValueNUMBER

Optional

Value of the order or items sold.


DescriptionSTRING

Optional

A string description of the web event.


QuerySTRING

Optional

The text string that was searched for.


Limited Data UseBOOLEAN

Optional

Use this field to flag an event for limited data processing. TikTok will recognize this parameter as a request for limited data processing, and will limit its processing activities accordingly if the event shared occurred in an eligible location. To learn more about the Limited Data Use feature, refer to Events API 2.0 - Limited Data Use(link takes you to an external page).


Test Event CodeSTRING

Optional

Use this field to specify that events should be test events rather than actual traffic. You can find your Test Event Code in your TikTok Events Manager under the "Test Event" tab. You'll want to remove your Test Event Code when sending real traffic through this integration.


Delivery CategorySTRING

Optional

Category of the delivery.


Prediected Lifetime ValueNUMBER

Optional

Predicted lifetime value of a subscriber as defined by the advertiser and expressed as an exact value.


Search StringSTRING

Optional

The text string entered by the user for the search. Optionally used with the Search event.


CRM FieldsOBJECT

Optional

Fields related to CRM events.


Vehicle FieldsOBJECT

Optional

Fields related to vehicle events.


Travel FieldsOBJECT

Optional

Fields related to travel events.


Deduplication with the TikTok Pixel

deduplication-with-the-tiktok-pixel page anchor

If you independently placed the TikTok Pixel on your website, reach out to your TikTok representative to see if there are any necessary changes to your Pixel to properly deduplicate events sent through both the Pixel and the Segment TikTok Conversions destination.

To increase the probability of matching website visitor events with TikTok ads, send one or more of the following match keys and identifiers when possible:

  • TikTok Click ID
  • External ID
  • Phone Number
  • Email
  • IP Address
  • User Agent

If you want to send a TikTok standard event(link takes you to an external page) that Segment doesn't have a prebuilt mapping for, you can use the Report Web Event action to send the standard event. For example, if you want to send a CompleteRegistration event:

  1. Create a mapping for Report Web Event.
  2. Set up your Event Trigger criteria for completed registrations.
  3. Input a literal string of "CompleteRegistration" as the Event Name.

Please be aware that TikTok only supports these event names(link takes you to an external page).

Segment creates a SHA-256 hash of the following fields before sending to TikTok:

  • External ID
  • Email
  • Phone Number

You can check whether the integration is working, test events in real-time, and troubleshoot common issues in TikTok's Web Diagnostics Suite. See the TikTok Pixel Web Diagnostics documentation(link takes you to an external page) for more information.


The TikTok Conversions destination is owned and maintained by the TikTok team.

  • For general Segment questions, including issues with event data not being sent to TikTok Events Manager, contact Segment support(link takes you to an external page).
  • For questions regarding campaign setup and performance, web tracking, or additional API functionality, contact your TikTok representative.