TikTok Sync
What is TikTok?
TikTok is a social media platform that allows users to create and share short-form video content. It offers powerful advertising tools for marketers to engage with users and track conversions. TikTok's advertising solutions include a pixel-based tracking system and URL parameter-based attribution to help brands measure performance and target audiences effectively.
Product Type: Advertising
Integration Type: Starter Kit & ID Sync
Capabilities
- Captures
ttclid
from URLs and stores it for tracking conversions. - Loads TikTok’s pixel library as a tagless pixel to allow TikTok to drop a third-party
_ttp
cookie. - Enhances server-side events with TikTok identifiers for audience targeting and attribution.
Considerations
- The full sync only runs when a Pixel ID is configured in the UI. Without it, only the URL-based sync for
ttclid
will operate. - The TikTok pixel sets a third-party
_ttp
cookie, which is used once to fire an event to Tiktok. Subsequent events are enriched using MetaRouter’s storedttp
. - Values from URL parameters (e.g.,
ttclid
) refresh on each page load when present. - Pixel-based identifiers (e.g.,
ttp
) are refreshed only after the corresponding storage marker expires.
Sync Details
-
IDs:
ttclid
– A unique identifier passed in TikTok ad URLs to track conversions and user sessions.ttp
– A 27-character unique identifier generated and stored in a first-party cookie to help TikTok recognize users.
-
Description:
- The sync captures ttclid from URL parameters, and generates a
ttp
identifier using TikTok’s library. - Each value is stored in first-party storage for a configured duration.
- The identifiers are added to server-side event payloads for attribution or targeting.
- The sync captures ttclid from URL parameters, and generates a
-
Server-side Event Payload:
Upon completion of all vendor's sync, the server-side events will incorporate all resolved identifiers as described above. The following object will be appended to thecontext.providers
property within the event's JSON payload.{ "tikTok": { "ttclid": "value from url parameter ttclid", "ttp": "random 27 charecter string" } }
-
Cookie Name:
- Cookie:
_meta_tiktok_ttclid
- IndexedDB:
[your storage prefix]_tiktok_ttclid
- For a general guide on ID Sync validation, see here.
- Cookie:
Sync Setup Guide
1. Gather Credentials
To complete this sync, you must obtain your TikTok Pixel ID from your TikTok Ads Manager account. If you are unsure where to find this, please consult TikTok’s documentation or reach out to their support team.
2. Add a TikTok Sync in MetaRouter
To gather the ttclid
and ttp
values, you must add a TikTok sync.
- From the Pipelines page, find the pipeline associated with the web property you’d like to add a sync to. Hover over the three dot dropdown and select “Build AJS File.”
- In the Identity Syncs section, select the TikTok sync.
- Fill out the following fields:
- Cookie Lifetime (in days) – Enter how long (in days) to store captured values. Example:
30
- Pixel ID – Pixel ID is only required to enable the full sync behavior, including generation of the
ttp
value. Without a Pixel ID, onlyttclid
will be captured from the URL. Example:"CRQ2CU3C72U5KN4TDM20"
- Cookie Lifetime (in days) – Enter how long (in days) to store captured values. Example:
- Scroll down and click the Save and Build File button.
- Deploy your AJS file to propagate changes to your web property.
Updated 10 days ago