ByteDance

ByteDance

ByteDance is the parent company of TikTok. The TikTok Pixel fires on advertiser sites to track page views, add-to-cart events, and purchases for campaigns running on TikTok's advertising platform. Enables retargeting and lookalike audience building based on on-site behavior.

Overview

ByteDance is the parent company of TikTok, one of the world's largest social media platforms with over 1 billion monthly active users. The TikTok Pixel (also called the TikTok Events API in its server-side form) enables advertisers to measure campaign performance, build retargeting audiences, and track conversion events across websites. ByteDance is headquartered in Beijing, China, making data transfer to China a specific regulatory concern distinct from standard EU-US transfer frameworks.

What This Script Does

The TikTok Pixel is a JavaScript snippet that loads the TikTok analytics library and fires conversion events on advertiser websites.

Script Files and Domains

  • analytics.tiktok.com/i18n/pixel/events.js — The TikTok Pixel JavaScript library. Loaded from analytics.tiktok.com. Approximately 30–60KB minified.
  • Events API endpoint: analytics.tiktok.com/api/v2/pixel/track/ — Receives pixel event payloads.
  • ad.tiktok.com — Additional domain used for audience sync and ad attribution lookups.

Cookies Set

  • _ttp — TikTok Tracking Pixel cookie. Set as a first-party cookie on the advertiser's domain (via client-side JavaScript). Contains a unique visitor ID used to match website visitors to TikTok users for attribution and retargeting. Persists for 13 months.
  • _ttclid — TikTok Click ID parameter stored as a cookie when a user arrives from a TikTok ad click. Used to attribute the visit to a specific ad campaign, ad group, and creative. Persists for 7 days.
  • TikTok also reads existing browser cookies and localStorage data as part of its identity matching process.

Data Collected Per Interaction

  • Standard events: PageView (all pages), ViewContent (product detail pages), AddToCart, InitiateCheckout, AddPaymentInfo, PlaceAnOrder, CompletePayment
  • For each event: page URL, referrer, timestamp, event name, and event-specific parameters (content IDs, content type, currency, value)
  • Browser metadata: IP address, user agent, browser language
  • TikTok Click ID (ttclid) if the visit originated from a TikTok ad
  • Advanced Matching (if configured): hashed email address, phone number, external ID — transmitted alongside pixel events to improve match rates

Advanced Matching and Identity Resolution TikTok's Advanced Matching feature transmits SHA-256 hashed PII (email, phone number) alongside pixel events. This is used to match website visitors to TikTok accounts even when third-party cookies are blocked, improving attribution accuracy across devices.

TikTok Events API (Server-Side) Many advertisers use both the client-side pixel and a server-side Events API integration. Server-side events bypass browser-level tracking restrictions and are sent from the advertiser's server directly to TikTok's API, transmitting hashed PII and IP addresses.

Consent & Compliance

Consent category: Marketing

  • GDPR/ePrivacy: The TikTok Pixel requires explicit opt-in consent before loading. The _ttp cookie is a marketing/advertising cookie requiring consent under ePrivacy. Advanced Matching transmits hashed PII to TikTok, constituting data transfer to a third country (China) requiring appropriate safeguards. No EU adequacy decision exists for China, and the EU-US Data Privacy Framework does not cover ByteDance/TikTok. Data transfers rely on Standard Contractual Clauses, but their adequacy for transfers to China has been questioned by multiple European DPAs.
  • IAB TCF: TikTok is a registered IAB TCF vendor. Relevant purposes include Purpose 1 (Store and/or access information on a device), Purpose 3 (Create a personalised ads profile), Purpose 4 (Select personalised ads), and Purpose 7 (Measure ad performance).
  • CCPA/CPRA: Sharing visitor behavioral data and conversion events with TikTok's advertising platform constitutes "sharing" personal information under CPRA for cross-context behavioral advertising. Opt-out rights apply via a "Do Not Sell or Share My Personal Information" mechanism.
  • DPA enforcement: The Irish DPC fined TikTok €345 million in September 2023 for GDPR violations relating to children's data. Multiple EU DPAs have investigated TikTok data transfers to China. Italian, French, and Dutch DPAs have issued warnings about TikTok data processing practices.

Should You Block This Without Consent?

Yes. The TikTok Pixel is an advertising tracking tool that sets persistent identification cookies, collects behavioral and conversion data, and transfers that data to ByteDance infrastructure in China. It must be blocked until explicit marketing consent is granted. Advanced Matching should be disabled by default and only activated after consent is obtained.

Visit website

Consent Categories

Marketing

Also Known As

TikTok PixelTikTok adsByteDanceTikTok retargetingTikTok advertisingTikTok tracking pixel

Industries

Programming and Developer SoftwareComputers Electronics and Technology

Tracked Domains (2)

tiktokcdn-us.comEssential
tiktokcdn.comEssential

Frequently Asked Questions

Does ByteDance require cookie consent?

Yes. The TikTok Pixel sets persistent visitor ID cookies, collects behavioral and conversion data, and transfers it to ByteDance servers — including infrastructure in China. No EU adequacy decision exists for China. Block the pixel until explicit marketing consent is granted. Advanced Matching transmits hashed PII and must also be gated on consent.

What cookies does ByteDance set?

The TikTok Pixel sets _ttp (unique visitor ID for retargeting and attribution, 13 months) and _ttclid (click ID from TikTok ad links, 7 days) as first-party cookies. Scripts load from analytics.tiktok.com. Advanced Matching transmits SHA-256 hashed email and phone numbers alongside pixel events to improve cross-device attribution.

How does ConsentStack detect ByteDance?

ConsentStack identifies ByteDance through the TikTok Pixel script on analytics.tiktok.com and event API calls to the /api/v2/pixel/track/ endpoint. Classified as marketing and blocked by default. ConsentStack also flags the China data transfer risk, given no EU adequacy decision covers ByteDance infrastructure.

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 ByteDance

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