> The TikTok Pixel sets marketing cookies on your site. Here is how to block it before consent and stay GDPR compliant.
>
> Canonical: https://www.flowconsent.com/en/blog/tiktok-pixel-cookies-gdpr-consent

[Marketing tools](https://www.flowconsent.com/en/blog?category=tools)

# TikTok Pixel and GDPR: cookies, consent and compliance

By FlowConsent · Published 5 May 2026 · Updated 9 October 2026 · 5 min read

In short

The TikTok Pixel sets marketing cookies on your site as soon as it loads. How to block it before consent, Events API, data transfers: the complete guide.

## TL;DR

The TikTok Pixel sets marketing cookies on your site as soon as it loads, before the user has given any consent. Without specific configuration, this violates the GDPR and the ePrivacy Directive. To comply, the Pixel must be blocked by your CMP until the user has accepted marketing cookies. Consent must be prior, freely given and documented.

## What is the TikTok Pixel and what cookies does it set?

The TikTok Pixel is a JavaScript snippet that advertisers integrate on their site to measure conversions and target audiences on TikTok Ads. It sets cookies as soon as it loads, regardless of the user's choice.

The two main cookies are `_ttp` (a first-party cookie with a 13-month lifespan, used to identify the user for TikTok targeting and conversion measurement) and `_tt_enable_cookie` (a session cookie indicating that TikTok tracking is active). Both belong to the marketing category: they feed TikTok's advertising targeting algorithms.

In Events API mode (server-side), TikTok can receive data without browser cookies. This does not remove the consent requirement: if the transmitted data can identify the user (hashed email, phone number, IP address), prior consent is still required.

## Is the TikTok Pixel GDPR compliant by default?

No. In its standard configuration, the TikTok Pixel is not GDPR compliant for visitors from the European Economic Area.

**First issue: marketing cookies set without prior consent.** The Pixel loads on page load and sets cookies before any user interaction with a consent banner. This is a direct violation of the ePrivacy Directive and the GDPR.

**Second issue: transfer of personal data to third countries.** TikTok (ByteDance) processes personal data on servers some of which are located outside the EEA. This transfer requires an appropriate legal basis. Several European data protection authorities have issued decisions restricting the use of TikTok in professional contexts.

The situation is similar to that of the [Meta Pixel](https://www.flowconsent.com/en/blog/meta-pixel-cookies-gdpr-compliance): advertising tracking tools from major platforms are not GDPR compliant without explicit blocking before consent.

## How to block the TikTok Pixel before consent

GDPR compliance requires that the TikTok Pixel does not load until the user has given consent for marketing cookies. There are two main methods.

### Via your CMP (recommended method)

The most reliable approach is to use a [consent management platform (CMP)](https://www.flowconsent.com/en/blog/how-to-choose-consent-management-platform) that handles automatic blocking of non-consented scripts. FlowConsent detects the TikTok Pixel in your code and blocks it until explicit marketing consent is obtained. The script only loads if and when the user accepts the marketing category.

One essential condition: the Pixel code must not be injected directly into the page HTML outside of your CMP. Any TikTok code integrated outside the CMP bypasses blocking.

### Via Google Tag Manager

If you deploy the TikTok Pixel via GTM, configure the tag with a conditional trigger based on the marketing consent signal from your CMP. The tag should only fire when the marketing consent variable is granted.

If your CMP supports Consent Mode v2, you can use the `marketing_storage: denied` signal as a blocking condition in GTM. See the [GTM and Consent Mode v2 guide](https://www.flowconsent.com/en/blog/google-tag-manager-consent-mode-guide) for implementation details.

## TikTok Pixel and Consent Mode v2: what you need to know

[Consent Mode v2](https://www.flowconsent.com/en/blog/google-consent-mode-v2-implementation-guide) is a mechanism developed by Google that allows Google tags to adapt their behaviour based on user consent. TikTok does not have a native equivalent to this standard.

In practice, this means that without marketing consent, the TikTok Pixel must not load at all. There is no TikTok degraded mode equivalent to Google's advanced mode (anonymous pings without cookies). If consent is refused, the Pixel must be entirely blocked.

TikTok offers an Events API integration that sends conversion events from your server. This server-side approach does not exempt you from the consent requirement: if the data sent includes personal identifiers (hashed email, phone number, IP address), prior user consent is required before any transmission.

## What data does the TikTok Pixel transmit and what are the GDPR risks?

Beyond cookies, the TikTok Pixel can transmit Advanced Matching data: email address, phone number, first name, last name, city, region, postal code, country. This data is hashed client-side before being sent, but it remains personal data under the GDPR.

The applicable legal basis is generally consent (Art. 6.1.a GDPR). This reinforces the obligation to block the Pixel before the user has accepted marketing cookies, even if you are not using Advanced Matching.

On transfers outside the EEA: TikTok has committed to storing European users' data on servers located in Europe as part of the PDPA project (Project Clover). This framework is being progressively rolled out. Check the TikTok Ads data processing terms in force at the time of your compliance review.

## Common mistakes with the TikTok Pixel and GDPR

**Embedding the Pixel directly in the HTML without a CMP.** TikTok Pixel code added to the page head without a consent condition loads for all visitors, including those who have not yet seen the banner or have refused.

**Assuming TikTok handles compliance on your behalf.** TikTok does not collect consent from your visitors. That is your responsibility as data controller.

**Using the Events API without collecting consent.** Server-side transmission of identifying data without prior consent is a GDPR violation, even if no cookie is set in the browser.

**Not documenting consent.** [Proof of consent](https://www.flowconsent.com/en/blog/proof-of-cookie-consent-what-to-store) is a GDPR obligation. Your CMP must record the date, time and choices made by each visitor.

**Omitting the TikTok Pixel from the cookie policy.** The cookies `_ttp` and `_tt_enable_cookie` must appear in your [cookie policy](https://www.flowconsent.com/en/blog/cookie-policy-gdpr-guide) with their purpose, lifespan and the mention of the transfer to TikTok.

## GDPR-compliant TikTok Pixel checklist

1. The TikTok Pixel is blocked before consent (script does not load without marketing consent).
2. The cookie banner includes a distinct marketing category with a visible refusal option.
3. The Reject button is as visible as the Accept button.
4. The \_ttp and \_tt\_enable\_cookie cookies are listed in the cookie policy with their purpose and lifespan.
5. The retention period (\_ttp: 13 months) is documented.
6. The transfer to TikTok (data potentially outside the EEA) is mentioned in the policy.
7. If you use Advanced Matching, consent covers the transmission of hashed personal data.
8. If you use the Events API, prior consent is collected before sending any identifying data.
9. Proof of consent is stored and can be retrieved in case of a regulatory audit.
10. The Pixel is deactivated if the user withdraws consent or refuses on a subsequent visit.

## Conclusion

The TikTok Pixel, like any advertising tracking tool, must be blocked before consent and activated only if the user accepts marketing cookies. There is no compliant no-banner mode for the TikTok Pixel. Compliance requires a CMP that handles script blocking, a [GDPR-compliant cookie banner](https://www.flowconsent.com/en/blog/cookie-banner-gdpr-compliance-guide) with a clear refusal option, and documented consent.

Scan your site with the [free FlowConsent scanner](https://www.flowconsent.com/en/scan) to check whether the TikTok Pixel is correctly blocked before consent and identify all trackers set on your site.

[Back to the blog](https://www.flowconsent.com/en/blog)

Share this article · [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.flowconsent.com%2Fen%2Fblog%2Ftiktok-pixel-cookies-gdpr-consent) · [X](https://twitter.com/intent/tweet?url=https%3A%2F%2Fwww.flowconsent.com%2Fen%2Fblog%2Ftiktok-pixel-cookies-gdpr-consent)

Questions

## Common questions on this topic.

Can't find your question? Write to us, we answer fast.

[Write to us](https://www.flowconsent.com/en/demo)

### Does the TikTok Pixel require GDPR consent?

Yes. The TikTok Pixel sets marketing cookies (\_ttp) and can transmit personal data to TikTok. Both require prior, freely given and informed consent from the user. Without consent, loading the Pixel is unlawful for visitors from the EEA.

### Can I use the TikTok Pixel without a cookie banner on my site?

No, unless your site has no visitors from the EEA and is not subject to the GDPR or the ePrivacy Directive. For any site likely to be visited by European users, a cookie banner with a visible refusal option is mandatory as soon as the Pixel is integrated.

### Does the TikTok Events API (Conversions API) replace the need for consent?

No. The Events API is a server-side data transmission method that improves tracking accuracy, but it does not remove the consent requirement. If the data sent can identify a user (hashed email, phone number, IP address), prior consent is still required before any transmission.

### How can I verify that my TikTok Pixel is properly blocked before consent?

Open your browser in private mode, visit your site without accepting the cookie banner, and check the Network tab in DevTools for any requests to analytics.tiktok.com. If TikTok requests appear before consent is given, the blocking is not working correctly.

### How long can I retain data collected via the TikTok Pixel?

Retention periods must be documented and proportionate to the purpose. The \_ttp cookie has a 13-month lifespan. For data transmitted to TikTok via Advanced Matching or the Events API, refer to the TikTok Ads data processing terms and document the retention period in your cookie policy and records of processing activities.

Read next

## Keep reading.

[All articles](https://www.flowconsent.com/en/blog)

[Marketing tools · 7 April 2026](https://www.flowconsent.com/en/blog/meta-pixel-cookies-gdpr-compliance)

### [Meta Pixel and GDPR: the complete guide to cookies and consent](https://www.flowconsent.com/en/blog/meta-pixel-cookies-gdpr-compliance)

[The Meta Pixel sets advertising cookies that require prior consent in Europe. Here is how to block it until consent, handle the Conversions API and stay GDPR compliant.](https://www.flowconsent.com/en/blog/meta-pixel-cookies-gdpr-compliance)

[Read the article ](https://www.flowconsent.com/en/blog/meta-pixel-cookies-gdpr-compliance)·

[Marketing tools · 7 May 2026](https://www.flowconsent.com/en/blog/linkedin-pixel-cookies-gdpr-compliance)

### [LinkedIn Pixel and GDPR: cookie compliance guide](https://www.flowconsent.com/en/blog/linkedin-pixel-cookies-gdpr-compliance)

[The LinkedIn Insight Tag sets third-party advertising cookies. This guide explains why prior consent is mandatory and how to configure your site to stay GDPR compliant.](https://www.flowconsent.com/en/blog/linkedin-pixel-cookies-gdpr-compliance)

[Read the article ](https://www.flowconsent.com/en/blog/linkedin-pixel-cookies-gdpr-compliance)·

[Platform guides · 13 July 2026](https://www.flowconsent.com/en/blog/nextjs-cookies-gdpr-compliance-guide)

### [Next.js cookie consent and GDPR: the complete compliance guide](https://www.flowconsent.com/en/blog/nextjs-cookies-gdpr-compliance-guide)

[How to collect valid cookie consent in a Next.js app, from App Router installation and SPA navigation to Google Consent Mode v2 and server-side consent checks.](https://www.flowconsent.com/en/blog/nextjs-cookies-gdpr-compliance-guide)

[Read the article](https://www.flowconsent.com/en/blog/nextjs-cookies-gdpr-compliance-guide)

## Make your site compliant today.

Free up to 25,000 sessions a month. No credit card, no commitment.

[Create my banner](https://app.flowconsent.com/auth/sign-up?utm_source=flowconsent.com\&utm_medium=referral\&utm_campaign=general) · [Scan my site](https://www.flowconsent.com/en/scan)
