TikTok Ads

TikTok Ads

TikTok Ads tracking scripts supplement the TikTok Pixel to enable campaign targeting and attribution on TikTok's advertising platform. Scripts set cookies and collect behavioral signals to match website visitors to TikTok user profiles for audience segmentation and ad measurement.

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 the ttq tracking 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.

Visit website

Consent Categories

Also Known As

tiktok ads trackingtiktok advertising cookiestiktok ad attributiontiktok audience targetingtiktok ads consenttiktok ads pixel

Industries

Arts and Entertainment

Tracked Domains (1)

ads.tiktok.comMarketing

ads.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

TikTok
TikTok
TikTok Pixel is the conversion tracking and audience management tool for advertisers running campaigns on TikTok. Scripts fire on advertiser websites to capture standard events like page views, add-to-cart, and purchases. The data drives campaign optimization, lookalike audience creation, and attribution reporting in TikTok Ads Manager.
TikTok Events API
TikTok Events API
TikTok Events API enables server-to-server sharing of conversion events with TikTok's advertising platform. Rather than relying solely on browser scripts, event data such as purchases and signups is sent directly from the website server to TikTok, improving signal quality for ad attribution.
Facebook Share Button
Facebook Share Button
Facebook Share Button is a Meta social plugin that lets visitors share web content to their Facebook feed. Scripts load the Meta SDK and set cross-site tracking cookies on page load, enabling Meta to track visits and attribute browsing behavior for advertising purposes.
TikTok Pixel
TikTok Pixel
TikTok Pixel is TikTok's browser-side conversion tracking tag. Scripts fire on website events such as page views, add-to-cart actions, and purchases, sending event data and cookies to TikTok's advertising platform. Used to measure ad campaign performance and build retargeting audiences.
Facebook Like Button
Facebook Like Button
Facebook Like Button is a Meta social plugin that embeds a like and react button on external websites. Scripts load the Meta SDK and set Facebook tracking cookies on page load regardless of visitor interaction. Browsing data may be shared with Meta for ad targeting purposes.
Reddit Ads
Reddit Ads
Reddit Ads tracking scripts enable campaign attribution and audience targeting on Reddit's advertising platform. Scripts collect behavioral signals and set cookies to match website visitors to Reddit user profiles, supporting retargeting campaigns and conversion measurement for Reddit advertisers.

Manage consent for TikTok Ads

ConsentStack automatically detects and manages TikTok Ads trackers so your site stays compliant with global privacy regulations.