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.

Overview

The TikTok Pixel is TikTok's browser-side conversion tracking tag, functioning as the primary measurement tool for TikTok's advertising platform (TikTok for Business). Advertisers place the pixel on their websites to track visitor actions — page views, product views, add-to-cart events, and purchases — and attribute these conversions to TikTok ad campaigns. The pixel also feeds TikTok's machine learning models for ad delivery optimization and builds retargeting audiences from website visitors.

What This Script Does

The TikTok Pixel loads from TikTok's analytics domain and tracks visitor behavior on the advertiser's website.

  • Script loaded: analytics.tiktok.com/i18n/pixel/events.js — the TikTok Pixel base code that initializes tracking and provides the ttq event API
  • Page tracking: On every page load, the pixel fires a beacon to analytics.tiktok.com containing the page URL, referrer, browser information, and visitor identifiers.
  • Cookies set:
    • _ttp — First-party cookie (13-month expiry). TikTok's persistent visitor identifier, linking browsing sessions for cross-session attribution and audience building.
    • _ttclid — First-party cookie. Stores the TikTok Click ID from ad clicks for conversion attribution.
  • Event tracking: Advertisers configure the pixel to fire standard events (ViewContent, AddToCart, CompletePayment, Subscribe, etc.) or custom events on specific user actions. Each event transmits event name, parameters (product ID, value, currency), and visitor identifiers.
  • Advanced matching: The pixel supports sending hashed personally identifiable information (email, phone number) to TikTok for deterministic matching of website visitors to TikTok user accounts.
  • Retargeting audiences: Visitor identifiers collected by the pixel are used to build custom audiences on TikTok — enabling advertisers to serve ads to people who visited specific pages or completed specific actions on their website.

Consent & Compliance

The TikTok Pixel falls under the marketing consent category.

Under GDPR and ePrivacy, the TikTok Pixel requires explicit opt-in consent. The _ttp cookie is a persistent first-party identifier used for advertising attribution and audience building, constituting storage of non-essential information under the ePrivacy Directive. Advanced matching with hashed PII constitutes processing of personal data for advertising under GDPR. TikTok's EU user data is processed under the EU-US Data Privacy Framework, though TikTok's data handling practices have faced increased scrutiny from EU DPAs. TikTok also operates a European data center (Project Clover) for EU user data.

Under CCPA/CPRA, the pixel's transmission of visitor identifiers and behavioral data to TikTok for advertising optimization constitutes "sharing" of personal information for cross-context behavioral advertising. Advertisers must support opt-out mechanisms and honor the Global Privacy Control signal.

Should You Block This Without Consent?

Yes. The TikTok Pixel sets persistent tracking cookies, transmits page-level behavioral data to TikTok's advertising platform, and builds retargeting audiences from website visitors. Block the pixel entirely until the user grants marketing consent.

Visit website

Consent Categories

Marketing

Also Known As

tiktok pixeltiktok pixel trackingtiktok conversion pixeltiktok pixel cookiestiktok retargetingtiktok pixel consent

Industries

Arts and Entertainment

Tracked Domains (1)

pixel.tiktok.comMarketing

Frequently Asked Questions

Does the TikTok Pixel require consent?

Yes. The TikTok Pixel sets the _ttp cookie (13-month persistent identifier) and transmits behavioral data to TikTok's advertising platform on every page load. Explicit opt-in consent is required under GDPR and ePrivacy before the pixel is allowed to fire.

What does the TikTok Pixel track?

The pixel loads analytics.tiktok.com/i18n/pixel/events.js and sets _ttp (13-month visitor ID) and _ttclid (click attribution). It fires PageView on every page and captures standard events — ViewContent, AddToCart, CompletePayment — with product metadata sent to analytics.tiktok.com.

How does ConsentStack block the TikTok Pixel?

ConsentStack classifies the TikTok Pixel as marketing. The pixel script is blocked entirely until the visitor grants marketing consent. ConsentStack prevents _ttp and _ttclid cookies from being set until the appropriate consent signal is received.

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 Pixel

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