FlowConsent
ServicesBlogExtensionSolutionsPricingTry FlowConsent
FlowConsent

FlowConsent is a GDPR-compliant cookie consent management platform.

Product

  • Services
  • Extension
  • Extension support
  • Solutions
  • Pricing
  • FlowConsent App

Legal

  • Privacy Policy
  • Terms of Service
  • Legal notice

© 2026 FlowConsent by BeBranded. All rights reserved.

FrancaisDeutschEspanol

Does your website use third-party services? Get GDPR compliant in minutes.

Try FlowConsent
  1. Home
  2. Services
  3. Social Media
  4. YouTube Embed
Y

YouTube Embed

Marketing

Related services

A

AddShoppers

AddShoppers is a digital marketing technology that helps businesses reach, engage, and convert their target audience online. It provides advanced targeting, campaign management, and performance analytics capabilities. AddShoppers enables marketers to deliver personalized experiences across channels, optimize campaign ROI, and gain actionable insights into customer behavior. With automation features and data-driven optimization, AddShoppers empowers marketing teams to achieve measurable growth.

Marketing

AddThis

AddThis is a web technology service that provides essential functionality for websites and digital platforms. It delivers core capabilities that support site operations, content delivery, and user experience optimization. AddThis integrates seamlessly with modern web architectures, ensuring reliable performance and compatibility across browsers and devices. Trusted by businesses worldwide, AddThis helps organizations maintain robust websites that meet user expectations and technical requirements.

Marketing

AddToAny

AddToAny is a web technology service that provides essential functionality for websites and digital platforms. It delivers core capabilities that support site operations, content delivery, and user experience optimization. AddToAny integrates seamlessly with modern web architectures, ensuring reliable performance and compatibility across browsers and devices. Trusted by businesses worldwide, AddToAny helps organizations maintain robust websites that meet user expectations and technical requirements.

Marketing

Cackle

Cackle is a foundational web service that powers critical website functions and digital experiences. It provides reliable infrastructure, seamless integration capabilities, and consistent performance across all devices and browsers. Cackle supports modern development practices and scales with growing business needs. With a focus on stability and compatibility, Cackle ensures your website delivers a smooth, uninterrupted experience to every visitor and search engine crawler.

Marketing

Commento

Commento is a web technology service that provides essential functionality for websites and digital platforms. It delivers core capabilities that support site operations, content delivery, and user experience optimization. Commento integrates seamlessly with modern web architectures, ensuring reliable performance and compatibility across browsers and devices. Trusted by businesses worldwide, Commento helps organizations maintain robust websites that meet user expectations and technical requirements.

Marketing

Douban

Douban is a versatile web technology that supports digital platforms with specialized functionality and enhanced capabilities. It provides robust tools and services that integrate with modern websites and applications seamlessly. Douban is designed to improve operational efficiency, user experience, and digital performance. Trusted by developers and businesses alike, Douban offers reliable solutions that scale with organizational needs and evolving web standards.

Marketing
Get compliant — Try FlowConsent free

Free plan · 10-min setup

What does YouTube Embed do?

Embedding YouTube videos on websites causes Google's tracking code to load in visitors' browsers, setting advertising and analytics cookies that track viewing behaviour and build advertising profiles. This requires consent under the ePrivacy Directive. YouTube provides a privacy-enhanced embed domain (youtube-nocookie.com) that significantly reduces cookie placement. Alternatively, using a facade/thumbnail approach delays YouTube loading until users click play, reducing privacy impact.

What is YouTube Embed?

Embedding YouTube videos on websites is done via an iframe element pointing to youtube.com or youtube-nocookie.com. When a standard YouTube iframe loads, it immediately executes Google''s JavaScript, which sets tracking cookies, reads existing Google cookies (including Google account session cookies), and sends data about the page visit and visitor to Google''s servers. This happens even if the visitor never plays the video.

The privacy-enhanced embed mode

YouTube''s privacy-enhanced mode uses the domain youtube-nocookie.com instead of youtube.com. According to Google, this mode does not set cookies until the user actually plays the video. However, Google may still process IP addresses and technical data for content delivery even in no-cookie mode. The no-cookie mode significantly reduces privacy risk and may be sufficient for many implementations, but legal teams differ on whether it fully resolves GDPR consent requirements.

The facade approach: best practice

The facade approach shows a static thumbnail image with a play button instead of loading the YouTube iframe on page load. The actual YouTube iframe only loads when the user explicitly clicks the play button. This approach: eliminates page-load tracking entirely, improves page performance significantly (YouTube iframes are heavy), and only transfers data when the user actively requests the video. Libraries like lite-youtube-embed implement this pattern easily.

Get GDPR compliant in 10 minutes

Free plan available · No credit card required

Try FlowConsent free

Practical compliance steps

Use youtube-nocookie.com embeds as a minimum. Implement the facade pattern for best practice. If using standard embeds, block via CMP until media consent is given. Disclose YouTube embeds in your cookie policy and privacy policy. Sign the Google DPA. For large media sites, consider self-hosting key video content or using a GDPR-compliant EU video host.

GDPR consent category

Marketing

Websites using YouTube Embed must obtain user consent under GDPR regulations.

Legal basisConsent (Art. 6(1)(a) GDPR) required for standard YouTube embeds that set advertising and tracking cookies under the ePrivacy Directive. The youtube-nocookie.com embed domain reduces cookie placement but Google may still process IP addresses and technical data for content delivery.
Risk levelmedium
Applicable regulationsGDPR, ePrivacy Directive, SCCs for US data transfers. Multiple EU DPAs have addressed YouTube embed consent requirements.

DPIA considerations

A DPIA is generally not required for standard YouTube video embedding with proper consent management. It may become relevant for large media platforms embedding many videos where Google's audience tracking creates systematic profiling of visitors.

Sample consent text

This page contains an embedded YouTube video. Loading it will allow YouTube (Google) to set cookies and track your viewing behaviour for advertising purposes. Data is transferred to Google in the US. Accept media cookies below to load the video, or watch it directly on youtube.com.

Technical details

Tracking methodEmbedded YouTube player iframe, Google tracking cookies, YouTube viewing history, advertising personalisation, cross-site tracking
Server locationUnited States (Google/YouTube infrastructure)
Cookieless tracking availableYes
Data transferred outside the EUYouTube (Google) processes all embedded video data on US infrastructure. EU personal data transfers require Standard Contractual Clauses. YouTube provides a privacy-enhanced embed mode (youtube-nocookie.com) that reduces but does not eliminate data processing.

Third-party domains contacted

youtube.comwww.youtube-nocookie.comi.ytimg.com

Cookies placed

NameTypeDurationPurpose
YSCsessionSessionYouTube session identifier loaded on standard YouTube embed — tracks viewing session data
VISITOR_INFO1_LIVEpersistent6 monthsYouTube visitor identifier for tracking viewing history and personalising recommendations

YouTube Embed places tracking cookies for advertising — comply with GDPR using FlowConsent.

Get started freeScan your site

Frequently asked questions

Does embedding YouTube require GDPR consent?

Standard YouTube embeds require consent as they set advertising cookies immediately on page load. Using youtube-nocookie.com reduces but may not fully eliminate consent requirements. The facade approach (thumbnail loading) is the most privacy-friendly and may not require a consent banner.

What is the youtube-nocookie.com embed?

youtube-nocookie.com is YouTube's privacy-enhanced embed domain. According to Google, it does not set cookies until the user plays the video. Enable it by replacing "youtube.com/embed/" with "www.youtube-nocookie.com/embed/" in your iframe src URL. WordPress' built-in YouTube block uses this by default.

What cookies does a standard YouTube embed set?

Standard YouTube embeds set VISITOR_INFO1_LIVE (YouTube visitor ID, 6 months), YSC (session, no expiry), and may set advertising cookies if the user is logged into Google. These require consent. The youtube-nocookie.com mode avoids setting these cookies until play.

Does YouTube transfer data outside the EU?

Yes. All YouTube (Google) processing occurs on US infrastructure. SCCs are required as part of Google's standard terms. Accept Google's data processing terms and disclose the US transfer in your privacy policy when embedding YouTube videos.

How do I implement the YouTube facade pattern?

Use the lite-youtube-embed library (available on npm and GitHub) which renders a thumbnail and loads the actual YouTube iframe only when clicked. This is semantic, accessible, dramatically faster, and privacy-respecting. Alternatively, use a custom implementation with a thumbnail image and onclick handler that replaces the image with the actual iframe.

Is the youtube-nocookie.com embed GDPR compliant without consent?

Legal opinions differ. Google says no cookies are set until play. Some DPAs consider even IP address transmission on iframe load to be personal data transfer requiring consent. The safest approach: use youtube-nocookie.com AND the facade pattern, so the YouTube domain only receives a request when the user actively clicks play.

What are EU-based alternatives to YouTube embedding?

Vimeo (US-hosted but with dnt=1 privacy mode), Wistia (US-hosted), and Dailymotion (French company) are alternatives. For self-hosted video, PeerTube (open-source, EU-hostable) provides a YouTube-compatible embed without Google's data practices.

Do I need to mention YouTube embeds in my privacy policy?

Yes. Disclose that the website embeds YouTube videos, that YouTube (Google) sets cookies when videos are loaded or played, that data is transferred to Google in the US, and provide a link to YouTube's Privacy Policy. If using youtube-nocookie.com, note that this reduces but may not eliminate data processing.