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.
Consent Categories
Also Known As
Industries
Tracked Domains (1)
ads.tiktok.comMarketingFrequently Asked Questions
Do TikTok Ads tracking scripts require consent?
Yes. TikTok Ads scripts set persistent cookies (_ttp, _ttclid) and transmit behavioral data to TikTok's advertising platform for targeting and attribution. Explicit opt-in consent is required under GDPR and ePrivacy before these scripts are permitted to load.
What do TikTok Ads scripts collect?
TikTok Ads loads analytics.tiktok.com/i18n/pixel/events.js, setting _ttp (13-month visitor ID) and _ttclid (click attribution). Behavioral signals — pages visited, products viewed, purchase events — are sent to TikTok to power dynamic product ads and lookalike audiences.
How does ConsentStack block TikTok Ads?
ConsentStack classifies TikTok Ads as marketing. All related scripts are blocked until the visitor explicitly grants marketing consent. ConsentStack ensures _ttp and _ttclid cookies are not set before consent, preventing cross-session attribution without permission.
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.