# YouTube embed and GDPR: load the video only after a click

> How to embed YouTube videos so they load only after a click or after consent, why youtube-nocookie.com alone is not enough, and how to measure it.

Source: https://konformia.at/en/guides/youtube-embed-gdpr

# YouTube on your website. Does it load before anyone is asked?

An embedded YouTube video loads from Google as soon as the page opens, not when someone presses play. Privacy-enhanced mode does not change that.

Check your website for free

Your account after the first check

Sample shop. Every point opens its fix with the steps for your tool.

Free for 14 days, no credit card. Results usually in under two minutes.

## Where the video loads too early

The banner only holds a video back if it knows how it is built in. Otherwise an iframe in the content or a video block in the theme loads with the page.

- 01

### Iframe from “Share, Embed”

The embed code is an iframe with src pointing to youtube.com/embed. The browser loads the player, scripts and thumbnail from Google without anyone pressing play.

Art. 5(3) Directive 2002/58/EC

- 02

### youtube-nocookie.com

Privacy-enhanced mode loads from a different address, but still from Google, with the visitor's IP address. The connection on page load stays.

Art. 5(3) Directive 2002/58/EC

- 03

### YouTube block in WordPress and site builders

The YouTube block in the WordPress editor, Elementor video widgets and video sections in themes insert the same iframe as soon as the page loads.

Art. 5(3) Directive 2002/58/EC

- 04

### Background video

A video that plays automatically in the header loads on every page that has this header, often already on the home page.

Art. 5(3) Directive 2002/58/EC

## Step by step

### Measure

Open the page without consenting and filter the developer tools (F12, Network tab) for youtube and ytimg. The report does this for every page it reads and names where the video is built in.

### Load only after a click

Show a preview image with a play button instead of the player; only the click inserts the iframe. Most banner tools have a content blocker for this. Store the preview image on your own server rather than loading it from i.ytimg.com.

### Or skip the embed

Use your own image with a link “Watch on YouTube”. The visitor then leaves your page, and YouTube only loads there.

### Measure again

Check again without consent and after “Reject”. Only when no request to youtube.com, youtube-nocookie.com or ytimg.com is left in the list does the video no longer load in advance.

## Questions

### Is privacy-enhanced mode enough?

It loads from youtube-nocookie.com, so still from Google, with the visitor's IP address, as soon as the page opens. What it stores in the browser shows in the measurement; either way the browser connects to Google before anyone is asked.

### Does the video really load without a click?

Yes. The iframe fetches the player and thumbnail when the page opens, so the video is ready to play. In the Network tab you see the requests before you click anything.

### Does this apply to Vimeo too?

Yes, an embedded Vimeo video also loads with the page, and dnt=1 in the address does not change that. The fix is the same: a preview image, and only the click loads the player. The report detects both.

## What a scan shows

It opens your website without consenting, also reads subpages, then clicks Reject and measures again. If YouTube loads in advance, the report names the page, the player address and how to make the video load only after the click. Right away for your website: [cookie check](https://konformia.at/en/guides/cookie-check).

Check your website for free

As of 15 November 2026. We name the reference so you can read it yourself; this is not legal advice.

## More guides

- [Cookies before consent: what ePrivacy requires](https://konformia.at/en/guides/cookies-before-consent)
- [Price information in web shops: unit price and shipping](https://konformia.at/en/guides/price-information-product-page)
- [European Accessibility Act checker for web shops (WCAG)](https://konformia.at/en/guides/web-shop-accessibility-check)
- [Cookiebot not working or not blocking?](https://konformia.at/en/guides/cookiebot-not-blocking)
- [Usercentrics not blocking?](https://konformia.at/en/guides/usercentrics-not-blocking)
- [Borlabs Cookie not blocking?](https://konformia.at/en/guides/borlabs-cookie-not-blocking)
- [Real Cookie Banner not blocking?](https://konformia.at/en/guides/real-cookie-banner-not-blocking)
- [Complianz not blocking?](https://konformia.at/en/guides/complianz-not-blocking)
- [Check your cookie banner yourself in three steps](https://konformia.at/en/guides/check-cookie-banner-yourself)
- [Google Fonts self-hosted but still loading?](https://konformia.at/en/guides/google-fonts-find-source)
- [Dark patterns in online shops: five patterns and the fix](https://konformia.at/en/guides/dark-patterns-online-shop)
- [EU withdrawal button 2026: what your shop needs](https://konformia.at/en/guides/withdrawal-button)
- [Unit price and the “order with obligation to pay” button](https://konformia.at/en/guides/unit-price-order-button)
- [GPSR: manufacturer information in your web shop](https://konformia.at/en/guides/gpsr-manufacturer-information)
- [OneTrust not blocking cookies?](https://konformia.at/en/guides/onetrust-not-blocking)
- [CookieYes not blocking or not working?](https://konformia.at/en/guides/cookieyes-not-blocking)
- [Wix cookie banner check: does it really block?](https://konformia.at/en/guides/wix-cookie-banner-check)
- [GTM consent: fire tags only after consent in Tag Manager](https://konformia.at/en/guides/google-tag-manager-consent)
- [Google Maps embed and GDPR: load the map only after a click](https://konformia.at/en/guides/google-maps-embed-gdpr)
- [Google Analytics without consent?](https://konformia.at/en/guides/google-analytics-consent)
- [Meta Pixel before consent?](https://konformia.at/en/guides/meta-pixel-consent)
- [TikTok Pixel before consent?](https://konformia.at/en/guides/tiktok-pixel-consent)
- [Hotjar before consent?](https://konformia.at/en/guides/hotjar-consent)
- [Microsoft Clarity consent mode: check what it sends](https://konformia.at/en/guides/microsoft-clarity-consent)
- [Google reCAPTCHA and GDPR: load it only on the form page](https://konformia.at/en/guides/google-recaptcha-gdpr)
- [HubSpot cookie banner not showing?](https://konformia.at/en/guides/hubspot-cookie-banner)
- [Shopify cookie banner check: does it really block?](https://konformia.at/en/guides/shopify-cookie-banner-check)
- [Google Consent Mode v2 checker: test and set it up](https://konformia.at/en/guides/google-consent-mode-v2)
- [Cookie checker for websites: free, with the reject test](https://konformia.at/en/guides/cookie-check)
- [Security headers check: free website security checker](https://konformia.at/en/guides/security-headers-check)
