# Embed YouTube videos with enhanced privacy mode (youtube-nocookie.com)

**URL:** <https://meta.discourse.org/t/embed-youtube-videos-with-enhanced-privacy-mode-youtube-nocookie-com/216469>\
**Category:** Feature\
**Created:** [January 30, 2022, 6:20am UTC](https://meta.discourse.org/t/embed-youtube-videos-with-enhanced-privacy-mode-youtube-nocookie-com/216469 "2022-01-30T06:20:45Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![AquaL1te](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aqual1te/32/201966_2.png) [@AquaL1te](https://meta.discourse.org/u/AquaL1te)\
**Post date:** [January 30, 2022, 6:20am UTC](https://meta.discourse.org/t/embed-youtube-videos-with-enhanced-privacy-mode-youtube-nocookie-com/216469/1 "2022-01-30T06:20:45Z")

</div>

At the moment Discourse embed YouTube videos with the standard URL. However, [Grav](https://getgrav.org/) rewrites URLs automatically so that it uses the [YouTube privacy enhanced mode](https://www.guidingtech.com/privacy-enhanced-youtube/). Which doesn’t store tracking cookies when people do not play the video. This feature makes cookie/privacy policies a bit easier to write. Is this something Discourse can introduce as well?

Below is a snippet of what Grav automatically generates when inserting a YouTube video into a page. More info about this Grav plugin [here](https://github.com/getgrav/grav-plugin-youtube).

```plaintext
<div class="grav-youtube-wrapper ">
  <div class="grav-youtube">
      <iframe src="https://www.youtube-nocookie.com/embed/th5KmL-tTI0?cc_load_policy=1&amp;color=white&amp;modestbranding=1&amp;rel=0" frameborder="0" allowfullscreen></iframe>
  </div>
</div>

```

---

_[View the full topic](https://meta.discourse.org/t/embed-youtube-videos-with-enhanced-privacy-mode-youtube-nocookie-com/216469)._
