Advertising vendor · X Corp.

X Pixel Cookies: List With Purpose and Retention

Last verified 2026-10-17 · Updated 2026-10-17

On this page
  1. Cookies the X Pixel sets
  2. Scripts, pixels, and endpoints
  3. Does the X Pixel need consent?
  4. How to add the X Pixel to a consent banner
  5. Who runs the X Pixel
  6. X Pixel cookie FAQs
  7. Sources

Scripts, Pixels, and Endpoints the X Pixel Loads

The X 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.

TypeResourceHostWhat it does
ScriptX Pixel base code (uwt.js)static.ads-twitter.comThe X Pixel library loads from static.ads-twitter.com and writes the _twclid cookie on your domain.
Data endpointX Pixel event endpoint (adsct)analytics.twitter.com
t.co
The event endpoint receives every visit that the X Pixel reports, and its responses set the personalization_id and muc_ads cookies.

Who Runs the X Pixel

X Corp. runs X from the United States. X Internet Unlimited Company in Dublin provides X to users in the European Union, the European Free Trade Association (EFTA), and the UK. X and the advertiser act as independent controllers under the X controller-to-controller data protection addendum.

Read how X Corp. handles the data in the X Pixel privacy policy, and sign the X Controller-to-Controller Data Protection Addendum before you collect data from visitors in the EU or the UK. Both documents appear in the sources at the end of this page.

X Pixel Cookie FAQs

Does the X Pixel need consent?

Yes, the X 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 X Pixel. Secondly, the UK PECR requires consent before a site sets the advertising cookies of the X Pixel. Thirdly, the CCPA sets no general opt-in requirement for the advertising cookies of the X 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 X Pixel cookies last?

The cookies of the X Pixel with a documented lifetime last from 13 months (390 days) to 2 years (730 days). The _twclid cookie lasts the shortest time, and the muc_ads cookie lasts longest. 5 cookies have no documented lifetime. Check their expiry in Chrome DevTools on your own site. The retention column of the cookie list gives the lifetime of each cookie.

How do I block the X Pixel cookies?

Block the the X Pixel cookies by holding back the X Pixel base code until the visitor accepts advertising cookies. Tag the X Pixel base code with data-cookie-consent="targeting" in TermsFeed Free Cookie Consent, or add the X Pixel as a vendor in TermsFeed Privacy Consent. The page of the personalization_id cookie gives the full steps and the settings of the X Pixel.

Sources for the X Pixel Cookies

The facts on this page come from the documentation X publishes, checked on 2026-10-17. The list gives every source, so you check each fact yourself.