1. Documentation
  2. Consent Management
  3. Script/Cookie/Iframe Classification

YouTube Cookie Blocking

YouTube by default places cookies in the user's browser for the purpose of analytics, tracking, advertising, and personalization.

If you would like to embed YouTube videos on your website and would like to comply with the myriad privacy laws, Osano's privacy team recommends that you utilize the youtube-nocookie.com domain.

Implementing the  youtube-nocookie.com domain is as simple as replacing youtube.com with  youtube-nocookie.com in the embeds you place on your website. Your end-users will have the same experience, but without the tracking and cookies set by YouTube.

For example, here is Osano's own cookie explainer video on YouTube:

<iframe width="560" height="315" src="https://www.youtube.com/embed/yoE9-tNvhRs" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

Here is Osano's cookie explainer video on YouTube in privacy-enhanced mode:

<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/yoE9-tNvhRs" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>