X (Twitter) cookiesAll need consent
X (Twitter) sets 4 cookies we know of. Every one may only be set after the visitor opts in.
Reviewed · Provider: X Corp. (formerly Twitter), X Corp.
List of X (Twitter) cookies
_twclidMarketingConsent required30 daysStores the Twitter click ID used for conversion tracking and ad attribution.
muc_adsMarketingConsent required2 yearsCollects user data for Twitter/X advertising products, such as retargeting and audience matching.
personalization_idMarketingConsent required2 yearsUsed by Twitter/X to track visitors and serve personalised advertising, set when a page embeds tweets, timelines, or the Twitter Pixel.
guest_idMarketingConsent required2 yearsIdentifies a browser as a guest (not signed in) for Twitter/X integrations, used for analytics and advertising on embedded content.
How to handle X (Twitter) cookies
- 1Load it only after consent
Hold the X (Twitter) script until the visitor accepts marketing cookies. Blocking the script is what stops the cookies; hiding them in a banner does not.
- 2Make Reject work
After a visitor rejects, none of the 4 consent-requiring cookies below may be set or kept.
- 3Name every cookie in your policy
List each cookie by name with its purpose, provider (X Corp. (formerly Twitter), X Corp.) and lifetime.
- 4Check the result, not the settings
Open your site in a private window, reject cookies, and look at what was stored. Or run a scan and compare the three stages.
Tools that help: tracking script blocker · Consent Mode v2 generator
Other vendorsAnd the cookies they set
Does X (Twitter) wait for consent on your site?Scan it in 2 minutes
Free scan · every cookie before consent, after Reject and after Accept