Functionality vendor · Google LLC

YouTube Cookies: List With Purpose and Retention

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

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

Scripts, Pixels, and Endpoints YouTube Loads

YouTube 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
IframeYouTube embed (youtube.com)youtube.com
www.youtube.com
The YouTube embed player loads the video from www.youtube.com/embed/ and writes the YSC and VISITOR_INFO1_LIVE cookies with its first response.
IframeYouTube (Privacy Mode) embed (youtube-nocookie.com)youtube-nocookie.com
www.youtube-nocookie.com
The privacy-enhanced YouTube player loads the video from www.youtube-nocookie.com/embed/, and its first response sets no cookie.

Who Runs YouTube

Google LLC runs YouTube from the United States, and Google Ireland Limited provides Google services to users in the European Economic Area (EEA) and Switzerland. The YouTube embed player loads from the servers of Google, so every YouTube cookie on your pages belongs to a domain of Google.

Read how Google LLC handles the data in the YouTube privacy policy. Both documents appear in the sources at the end of this page.

YouTube Cookie FAQs

Does YouTube need consent?

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

The cookies of YouTube last up to 180 days (6 months), and 1 cookie lasts for the browser session. A session cookie such as YSC has no expiry date, and the __Secure-ROLLOUT_TOKEN cookie lasts longest. The retention column of the cookie list gives the lifetime of each cookie.

How do I block YouTube cookies?

Block the YouTube cookies by holding back the script that inserts the YouTube player until the visitor accepts functionality cookies. Tag the script that inserts the YouTube player with data-cookie-consent="functionality" in TermsFeed Free Cookie Consent, or add YouTube as a vendor in TermsFeed Privacy Consent. The page of the YSC cookie gives the full steps and the settings of YouTube.

Sources for the YouTube Cookies

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