Overview
TikTok Ads tracking scripts supplement the TikTok Pixel to provide additional campaign targeting and measurement capabilities on TikTok's advertising platform. While the TikTok Pixel handles conversion tracking, the broader TikTok Ads tracking infrastructure includes audience matching, dynamic product ad feeds, and enhanced attribution signals. These scripts work in concert with the pixel to optimize ad delivery and measure the full customer journey from TikTok ad exposure to website conversion.
What This Script Does
TikTok Ads tracking operates through the same script infrastructure as the TikTok Pixel, with additional targeting features.
- Scripts loaded:
analytics.tiktok.com/i18n/pixel/events.js— shared with the TikTok Pixel, providing thettqtracking API for event reporting and audience data - Cookies set:
_ttp— First-party cookie (13-month expiry). Persistent visitor identifier for cross-session ad attribution._ttclid— First-party cookie. TikTok Click ID for attributing conversions to specific ad clicks.
- Audience targeting: The tracking scripts collect behavioral signals (pages visited, products viewed, purchase history) that feed TikTok's lookalike audience and interest-based targeting models. Advertisers can create custom audiences based on specific website behaviors.
- Dynamic product ads: For e-commerce advertisers, the scripts transmit product catalog events (product views, add-to-cart, purchases) that power dynamic creative optimization — showing each TikTok user ads for the specific products they viewed on the advertiser's website.
- Data collected: Page URLs, product metadata, conversion events, visitor identifiers, and hashed PII (when advanced matching is enabled) are transmitted to TikTok's advertising servers.
Consent & Compliance
TikTok Ads tracking falls under the marketing consent category.
Under GDPR and ePrivacy, TikTok Ads tracking requires explicit opt-in consent. The scripts set persistent identification cookies and transmit behavioral data to TikTok's advertising platform for targeting and attribution. This constitutes non-essential cookie storage under the ePrivacy Directive and personal data processing for advertising under GDPR.
Under CCPA/CPRA, the transmission of visitor behavior and identifiers to TikTok for ad targeting constitutes "sharing" of personal information for cross-context behavioral advertising.
Should You Block This Without Consent?
Yes. TikTok Ads tracking scripts set persistent cookies and transmit behavioral data for advertising purposes. Block all TikTok Ads tracking until the user grants marketing consent.
Is TikTok Ads GDPR compliant?
TikTok Ads typically loads marketing trackers, which are not strictly necessary for your site to work. Under the GDPR and the ePrivacy Directive, non-essential cookies and trackers must stay blocked until a visitor gives clear opt-in consent. So TikTok Ads can be fully GDPR compliant, but only if your site holds its scripts until consent is granted and lets visitors decline just as easily. Compliance depends on how your site loads TikTok Ads, not on TikTok Ads itself.
Consent Categories
Also Known As
Industries
Tracked Domains (1)
ads.tiktok.comMarketingads.tiktok.com is a marketing domain operated by TikTok Ads, used to serve ads, build audiences, and measure ad conversions.
Frequently Asked Questions
Other TikTok Products
Related Vendors
Manage consent for TikTok Ads
ConsentStack automatically detects and manages TikTok Ads trackers so your site stays compliant with global privacy regulations.