Advertising vendor · TikTok Pte. Ltd.
TikTok Pixel Cookies: List With Purpose and Retention
Last verified 2026-10-17 · Updated 2026-10-17
On this page
Cookies the TikTok Pixel Sets on Your Site
The TikTok Pixel sets up to 4 first-party cookies on your domain, led by _ttp, and TikTok sets a second _ttp cookie as a third-party cookie on .tiktok.com.
| Name | Type | Category | Party | Retention | What it does |
|---|---|---|---|---|---|
_ttp | Cookie | Advertising | First-party | 13 months (395 days) | The _ttp cookie is a TikTok Pixel advertising cookie that identifies a browser for 13 months and needs consent under the ePrivacy Directive. |
ttclid | Cookie | Advertising | First-party | 13 months (395 days) | The ttclid cookie stores the TikTok Click ID from the landing page URL of a visitor who clicked a TikTok ad. |
ttcsid | Cookie | Advertising | First-party | 13 months (395 days) | The ttcsid cookie is a first-party cookie of the TikTok Pixel that measures the performance of TikTok ads. |
ttcsid_<pixel-id> | Cookie | Advertising | First-party | 13 months (395 days) | The ttcsid_<pixel-id> cookie is a first-party TikTok Pixel cookie for a single pixel ID, which TikTok lists for ad measurement. |
Scripts, Pixels, and Endpoints the TikTok Pixel Loads
The TikTok Pixel loads 2 known scripts, pixels, and data endpoints. Each row gives the host to look for in the Network tab of Chrome DevTools or in a cookie scanner report.
| Type | Resource | Host | What it does |
|---|---|---|---|
| Script | TikTok Pixel library (events.js) | analytics.tiktok.com | The TikTok Pixel library loads from analytics.tiktok.com and writes the _ttp cookie on your domain. |
| Data endpoint | TikTok Pixel event endpoint (api/v2/pixel) | analytics.tiktok.com | The event endpoint receives every page view and event that the TikTok Pixel reports, with the identifier from the _ttp cookie. |
Does the TikTok Pixel Need Consent?
Yes, the TikTok Pixel cookies need consent in the EU and the UK, and need no prior opt-in in California. The table gives the rule for each law, taken from the page of the _ttp cookie.
| Law | Consent before the cookies are set | Opt-out right | Source |
|---|---|---|---|
| EU ePrivacy Directive + GDPR | Required | Withdraw at any time | Article 5(3), ePrivacy Directive |
| UK PECR | Required | Withdraw at any time | Regulation 6 and Schedule A1, PECR |
| California CCPA | No general opt-in | Opt out of sale and sharing | Cal. Civ. Code 1798.120 |
The consent table describes what each law requires and is not legal advice. Whether a law applies to your site depends on where your visitors are, where your business is based, and how you set up the TikTok Pixel, such as the cookie settings of your pixel in TikTok Events Manager.
Read the reason for each answer in the consent rules for the _ttp cookie.
How to Add the TikTok Pixel to a Consent Banner
Add the TikTok Pixel to a consent banner by holding back the TikTok Pixel base code until the visitor accepts advertising cookies. Both TermsFeed products block the TikTok Pixel in the Advertising category.
Add the TikTok Pixel to TermsFeed Free Cookie Consent
TermsFeed Free Cookie Consent runs a tagged script only after the visitor accepts its category. Change type="text/javascript" to type="text/plain" and add data-cookie-consent="targeting".
<script type="text/plain" data-cookie-consent="targeting">
!function (w, d, t) {
w.TiktokAnalyticsObject=t;var ttq=w[t]=w[t]||[];ttq.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie","holdConsent","revokeConsent","grantConsent"],ttq.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};for(var i=0;i<ttq.methods.length;i++)ttq.setAndDefer(ttq,ttq.methods[i]);ttq.instance=function(t){for(
var e=ttq._i[t]||[],n=0;n<ttq.methods.length;n++)ttq.setAndDefer(e,ttq.methods[n]);return e},ttq.load=function(e,n){var r="https://analytics.tiktok.com/i18n/pixel/events.js",o=n&&n.partner;ttq._i=ttq._i||{},ttq._i[e]=[],ttq._i[e]._u=r,ttq._t=ttq._t||{},ttq._t[e]=+new Date,ttq._o=ttq._o||{},ttq._o[e]=n||{};n=document.createElement("script")
;n.type="text/javascript",n.async=!0,n.src=r+"?sdkid="+e+"&lib="+t;e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(n,e)};
ttq.load('YOUR_PIXEL_ID');
ttq.page();
}(window, document, 'ttq');
</script>
Cookie Consent is free and needs no account. Build your free consent banner with TermsFeed Free Cookie Consent.
Add the TikTok Pixel to TermsFeed Privacy Consent
Add the TikTok Pixel from its template in TermsFeed Privacy Consent and type your Pixel ID, which TikTok Ads Manager shows under Tools, Events, and Web Events. The TikTok Pixel loads only after the visitor accepts the TikTok vendor, and Privacy Consent sends the TikTok consent signal for you.
The TikTok Pixel template asks for the Pixel ID and fills every other field of the vendor. Pick the "TikTok Pixel" card under Advertising, enter the Pixel ID, and click "Add TikTok Pixel". Find the Pixel ID in TikTok Ads Manager under Tools › Events › Web Events › your pixel. The illustration shows the template form in the TermsFeed app.
Privacy Consent detects the location of each visitor and records every answer in a consent log. Set up the TikTok Pixel from its template with TermsFeed Privacy Consent.
Follow every step, the vendor settings, and the check in Chrome DevTools in how to block the _ttp cookie.
Who Runs the TikTok Pixel
TikTok Pte. Ltd. of Singapore provides TikTok outside the European Economic Area (EEA), the UK, and Switzerland. For the EEA and the UK, TikTok Technology Limited in Ireland and TikTok Information Technologies UK Limited act as joint controllers with the advertisers that run the TikTok Pixel.
Read how TikTok Pte. Ltd. handles the data in the TikTok Pixel privacy policy, and sign the TikTok For Business Jurisdiction-Specific Terms before you collect data from visitors in the EU or the UK. Both documents appear in the sources at the end of this page.
TikTok Pixel Cookie FAQs
Does the TikTok Pixel need consent?
Yes, the TikTok Pixel cookies need consent in the EU and the UK, and need no prior opt-in in California. Firstly, the ePrivacy Directive requires consent before a site sets the advertising cookies of the TikTok Pixel. Secondly, the UK PECR requires consent before a site sets the advertising cookies of the TikTok Pixel. Thirdly, the CCPA sets no general opt-in requirement for the advertising cookies of the TikTok Pixel, and the table gives the opt-out right of visitors. The consent section of this page gives the table for each law.
How long do the TikTok Pixel cookies last?
Each cookie of the TikTok Pixel in the current setup lasts 13 months (395 days). The retention column of the cookie list gives the lifetime of each cookie.
How do I block the TikTok Pixel cookies?
Block the the TikTok Pixel cookies by holding back the TikTok Pixel base code until the visitor accepts advertising cookies. Tag the TikTok Pixel base code with data-cookie-consent="targeting" in TermsFeed Free Cookie Consent, or add the TikTok Pixel as a vendor in TermsFeed Privacy Consent. The page of the _ttp cookie gives the full steps and the settings of the TikTok Pixel.
Sources for the TikTok Pixel Cookies
The facts on this page come from the documentation TikTok publishes, checked on 2026-10-17. The list gives every source, so you check each fact yourself.
- TikTok For Business, Use cookies with TikTok Pixel
- TikTok API for Business, Send the TikTok cookie (_ttp)
- TikTok API for Business, Pixel cookie consent mode
- TikTok For Business, How to use cookies with TikTok Pixel
- TikTok For Business, About TikTok Pixel
- TikTok API for Business, Send the TikTok Click ID (ttclid)
- TikTok, Website cookies policy
- TikTok, Business Products (Data) Terms
- TikTok Pixel privacy policy
- TikTok For Business Jurisdiction-Specific Terms