EN

What Is youtube-nocookie.com?

In short

A privacy-enhanced YouTube embed domain that avoids setting tracking cookies until a visitor presses play.

youtube-nocookie.com is an alternative domain YouTube offers specifically for embedded players. Functionally it behaves the same as a normal embed, but it does not set YouTube’s advertising and tracking cookies in a visitor’s browser purely from the page loading.

How it changes behaviour

Cookies are still set once a visitor actively interacts with the player (for example by pressing play), because at that point the visitor is directly engaging with YouTube’s service. Before that interaction, the privacy-enhanced domain keeps the footprint on your page smaller.

Should you always use it?

For most websites, yes: it is a drop-in replacement (just swap youtube.com for youtube-nocookie.com in the embed URL) with no loss of functionality, and it is one of the easier steps toward a privacy-friendly, GDPR-aligned page. The embed code generator enables it by default.

What changes, technically, on this domain

From a visitor’s perspective, a video embedded from youtube-nocookie.com looks and plays identically to one from the standard domain: same controls, same quality options, same fullscreen support. The difference is entirely on the cookie and tracking side. Google configures this domain to withhold the cookies it would otherwise set immediately on page load, specifically the ones tied to advertising personalisation and cross-site tracking, until a visitor actually begins interacting with the player. Functionally, this makes youtube-nocookie.com a drop-in replacement rather than a reduced-feature alternative.

A practical example

Compare two identical embeds, differing only in domain:

<!-- Standard: may set cookies immediately on page load -->
<iframe src="https://www.youtube.com/embed/VIDEO_ID"></iframe>

<!-- Privacy-enhanced: defers cookies until interaction -->
<iframe src="https://www.youtube-nocookie.com/embed/VIDEO_ID"></iframe>

Every parameter covered elsewhere in this knowledge base, start, autoplay, loop and the rest, works identically on both domains; only the cookie timing differs.

It is worth being precise about the boundaries of what this domain does. It reduces the pre-consent tracking footprint significantly, but it is not, by itself, a complete GDPR compliance solution, and most sites with EU visitors still need a proper cookie notice alongside it. See our guide on GDPR and YouTube embeds for the fuller picture, including what this domain does not cover, such as data handling once a visitor does press play.

Because the switch costs nothing in terms of functionality or effort, there is rarely a good reason for a new embed not to default to this domain from the start.

Some site owners assume switching domains requires re-generating every existing embed from scratch, but in practice it is a simple find-and-replace across your site’s existing embed codes, swapping youtube.com for youtube-nocookie.com wherever it appears in the src attribute.

Frequently asked questions

Is youtube-nocookie.com different from a normal embed?

It behaves the same but avoids setting tracking cookies until a visitor actually presses play.

How do I use youtube-nocookie.com?

Enable “Privacy-enhanced” mode in our embed code generator, which is on by default.

Put it to use

Build your embed code

Our generator writes a privacy friendly embed code you can paste straight into your page.

Open the generator →