YouTube cookiesAll need consent
YouTube sets 4 cookies we know of. Every one may only be set after the visitor opts in.
Reviewed · Provider: Google LLC (YouTube), Google LLC
List of YouTube cookies
YSCFunctionalConsent requiredSessionRegisters a unique ID to keep statistics of what videos from YouTube the user has seen.
VISITOR_INFO1_LIVEMarketingConsent required6 monthsTries to estimate the user's bandwidth on pages with integrated YouTube videos.
PREFFunctionalConsent required8 monthsStores preferences for embedded YouTube players, such as preferred playback quality, volume, and interface settings.
LOGIN_INFOMarketingConsent required2 yearsStores login and session information for YouTube, enabling personalised recommendations and ad measurement on embedded videos.
How to handle YouTube cookies
- 1Load it only after consent
Hold the YouTube script until the visitor accepts functional / 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 (Google LLC (YouTube), Google LLC) 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 YouTube wait for consent on your site?Scan it in 2 minutes
Free scan · every cookie before consent, after Reject and after Accept