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.

Overview

TikTok Pixel is the conversion tracking and audience management tool for advertisers running campaigns on TikTok's advertising platform. Operated by ByteDance, TikTok's parent company, the pixel fires on advertiser websites to capture standard e-commerce and lead generation events. The data powers campaign optimization through TikTok's machine learning-based delivery system, enables lookalike and retargeting audience creation, and feeds attribution reporting in TikTok Ads Manager. TikTok is the second-largest short-form video platform globally, making its ad pixel one of the more widely deployed marketing scripts on retail and consumer-facing websites.

What This Script Does

Script Files and Domains

The main pixel script loads from analytics.tiktok.com/i18n/pixel/events.js. Outbound data requests are made to analytics.tiktok.com and business-api.tiktok.com. The script is typically initialized via a base code snippet injected into <head> and then event-specific calls fire on user interactions.

Cookies Set

  • _ttp — TikTok's primary cross-site tracking cookie. Persistent, 13-month expiry. Third-party cookie that persists the visitor's unique identifier used for attribution and audience building.
  • _tt_enable_cookie — Boolean flag storing the user's cookie consent choice within TikTok's own interface.
  • tt_sessionId — Session-scoped identifier for grouping events within a single browsing session.

Standard Events Captured

The pixel captures: PageView (fires on every page), ViewContent (product detail pages), AddToCart, InitiateCheckout, AddPaymentInfo, Purchase (with order value, currency, content IDs), CompleteRegistration, Lead, Search, and Contact. Each event payload includes the event name, timestamp, page URL, referrer, and user agent.

Advanced Matching

When enabled, the pixel transmits hashed (SHA-256) user identifiers — email address, phone number, and external user ID — alongside event data. This improves attribution accuracy by matching site visitors to TikTok accounts even when cookies are unavailable (e.g., cross-device scenarios). Hashing is client-side before transmission.

Pixel + Events API (Server-Side)

Many TikTok advertisers implement both the browser pixel and the TikTok Events API (server-to-server). The browser pixel handles real-time event capture while the server-side API closes attribution gaps caused by ad blockers and browser privacy features.

Audience Building

Visitor data feeds into Custom Audiences (retargeting) and Lookalike Audiences. TikTok's algorithm uses behavioral patterns from pixel events to find high-intent users similar to converters.

Consent & Compliance

Category: Marketing

TikTok participates in IAB TCF 2.2 as a registered vendor. Relevant purposes exercised include Purpose 1 (Store/access information on device), Purpose 3 (Create personalised ads profile), Purpose 4 (Select personalised ads), and Purpose 7 (Measure ad performance). Special Feature 1 (precise geolocation) is also declared.

Under GDPR, the TikTok Pixel requires explicit opt-in consent. It sets persistent third-party cookies, transmits behavioral data to ByteDance's servers, and involves international data transfers to servers in the US and Singapore. The Irish DPC opened an inquiry into TikTok's data transfer practices in 2023. TikTok is listed under the EU-US Data Privacy Framework (DPF) for US transfers.

Under CCPA/CPRA, behavioral data shared with TikTok for advertising optimization constitutes "sharing" of personal information for cross-context behavioral advertising. The "Do Not Sell or Share" opt-out must be honored before firing the pixel for California residents.

ePrivacy: The _ttp cookie is not strictly necessary and requires prior consent.

Should You Block This Without Consent?

Yes. The TikTok Pixel sets persistent tracking cookies, transmits behavioral data to ByteDance servers internationally, and performs audience profiling for advertising. It provides no site functionality for the end user. Block until explicit marketing consent is obtained.

Visit website

Products (3)

Consent Categories

Marketing

Also Known As

TikTok PixelTikTok trackingTikTok Ads Manager pixelByteDance trackingTikTok GDPRTikTok conversion pixelTikTok cookie

Industries

Arts and Entertainment

Tracked Domains (3)

analytics.tiktok.comMarketing
tiktok.comMarketing
www.tiktok.comMarketing

Frequently Asked Questions

Is consent required for the TikTok Pixel on my site?

Yes. The TikTok Pixel sets _ttp (13-month persistent identifier) and transmits behavioral data to ByteDance servers internationally. The Irish DPC opened a TikTok inquiry in 2023. Explicit opt-in consent is required under GDPR and ePrivacy before the pixel fires.

What cookies and data does TikTok collect?

TikTok sets _ttp (13-month visitor ID), _tt_enable_cookie (consent flag), and tt_sessionId (session). The pixel loads analytics.tiktok.com/i18n/pixel/events.js and fires PageView on every page, transmitting URL, referrer, user agent, and event data to analytics.tiktok.com.

How does ConsentStack manage TikTok?

ConsentStack classifies TikTok as marketing. The pixel is fully blocked until marketing consent is granted. ConsentStack supports TikTok's IAB TCF 2.2 vendor registration and the Do Not Sell or Share opt-out signal required under CCPA for California residents.

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

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