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.

Visit website

Consent Categories

Marketing

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

Frequently 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

Google Ads
Google Ads
Google Ads is Google's advertising platform for search, display, and remarketing campaigns. Conversion tracking scripts fire on advertiser landing pages to measure actions taken after ad clicks. The remarketing tag builds audience lists for retargeting users across Google's ad network.
Google
Google
Google is the dominant provider of web analytics, advertising, and infrastructure tools. Scripts like Google Analytics, Tag Manager, Ads, and reCAPTCHA collect behavioral data, manage tag firing, serve targeted ads, and detect bots. Sets persistent cookies to track users and correlate activity across sites.
Microsoft Dynamics 365
Microsoft Dynamics 365
Microsoft Dynamics 365 is a suite of CRM and ERP applications that integrates with websites through tracking scripts and embedded forms. Web tracking code captures visitor behavior, page views, and form submissions to build customer profiles and score leads. Sets cookies to identify returning visitors and attribute marketing touchpoints across sessions.
Microsoft
Microsoft
Runs Clarity (session recording and heatmaps), the Microsoft Advertising UET tag (conversion tracking), and Bing's remarketing pixel. Clarity injects a recording script that captures mouse movements, clicks, and rage clicks. The UET tag fires conversion events to tie ad clicks to on-site actions across Microsoft's ad network.
Microsoft Advertising UET Tag
Microsoft Advertising UET Tag
Microsoft Advertising UET Tag is the Universal Event Tracking pixel for Microsoft's ad platform, formerly Bing Ads. The JavaScript tag fires on advertiser websites to track page views, conversions, and custom events for campaign optimization. Sets cookies to identify visitors across sessions and attribute conversions to Microsoft Search and Audience Network ad clicks.
LinkedIn Ads
LinkedIn Ads
LinkedIn Ads is LinkedIn's advertising platform for B2B marketing and professional audience targeting. Conversion tracking scripts and pixels fire on advertiser websites to measure sign-ups, downloads, and purchases driven by LinkedIn ad campaigns. Sets cookies for audience matching, retargeting list building, and cross-device attribution reporting.

Manage consent for TikTok Ads

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