YouTube · GDPR

Embed YouTube GDPR-Friendly: Click-to-Load Without a Plugin

An embedded YouTube video connects the browser to Google on page load – even if nobody presses play. Click-to-load loads the video only when the visitor wants it.

Measure first, then fix. The free check shows in seconds what your site sends to Google, Meta and co. before any consent. The Fix Kit (€19) shows the fix for every finding – local Google Fonts, click-to-load for YouTube and Maps, tracking after consent, security headers.

Check your website for freeGet the Fix KitNetwork report (€39)

How click-to-load works

  1. Instead of the iframe there is a placeholder with a short notice and a “Load video” button.
  2. Only the click creates the iframe with the YouTube address.
  3. Your privacy policy explains what is transmitted when playing.

The core in three lines

button.addEventListener("click", () => {
  box.innerHTML = '<iframe src="https://www.youtube-nocookie.com/embed/ID" title="Video" allow="fullscreen"></iframe>';
});

The finished, styled block for YouTube, Vimeo and Google Maps is in the Fix Kit.

FAQ

Is youtube-nocookie.com enough?

The privacy-enhanced mode sets fewer cookies, but loading still connects to Google servers and transmits the IP address. Only click-to-load prevents that before the visitor decides.

Do I need a plugin?

No. A small block of HTML, CSS and a few lines of JavaScript is enough. Many consent tools offer the same as a content blocker.

Measure first, then fix. The free check shows in seconds what your site sends to Google, Meta and co. before any consent. The Fix Kit (€19) shows the fix for every finding – local Google Fonts, click-to-load for YouTube and Maps, tracking after consent, security headers.

Check your website for freeGet the Fix KitNetwork report (€39)
GDPR Website Fix Kit · €19Buy now