Embedding Vimeo videos privacy-friendly

Get compliant today in the European Union, United States, Canada, United Kingdom, Australia, Brazil & South Africa with the only Privacy Suite for WordPress that offers a fully-featured plugin for Worldwide Compliance.

Hosting videos with a third-party service like YouTube or Vimeo is a great way to stream videos on your website, without carrying the server load for every view. These services are mostly free and come with another price, which is sharing your website’s visitor behavior so that these websites can recommend other videos based on statistics. In some cases, they might even personalize the content on different domains and show relevant advertising if the data permits.

We have discussed the YouTube no-cookie variant of embedding videos, and especially why this embed is still not compliant with most privacy laws, and therefore should be blocked prior to consent.

We will now focus on embedding Vimeo, and in contrast with YouTube no cookie, this can be done privacy-friendly.

Embedding Vimeo with HTML and Gutenberg

Many page-builders include HTML elements for Vimeo iFrames or video widgets to embed the video even easier. For the classic editor, an iFrame would suffice, and Gutenberg has its own Vimeo block. Whatever you will use to embed Vimeo, a simple change is needed and one thing to consider before proceeding, making the implementation privacy-friendly.

Gutenberg

If you use the Vimeo block from Gutenberg, Vimeo will be embedded privacy-friendly automatically. If you want to remove the restrictions, please add the following to your functions.php (or a MU plugin), or use the video block instead.

Embedding the video with a DNT parameter

For non-Gutenberg implementations you will need to add a parameter to the URL of the video you’re embedding:

Not privacy-friendly: https://vimeo.com/315487551

Privacy-friendly: https://vimeo.com/315487551?dnt=1

If the URL has other parameters, please append it as such:

Privacy-friendly: https://vimeo.com/315487551?quality=720p&dnt=1

You will use this URL, either in HTML or a widget.

Example

Our example is done with an iFrame in the classic editor. You can have a look at our source for the URL, and cookies to see there are no tracking cookies from Vimeo.

 

Vimeo and Complianz

If Vimeo is configured with the correct parameters, Vimeo will not be blocked. Without these parameters, Vimeo will require statistics consent (as of Complianz 6.1.6).

If you used Vimeo without these parameters before, you can clear your browser cache, and disable Vimeo from the services list to ensure no cookies are left in the cookie policy from the previous situation.

Recent articles

Integration with Woodmart Google Maps

An integration with the WoodMart theme is available as an MU Plugin on GitHub: https://github.com/Really-Simple-Plugins/complianz-integrations/blob/master/woodmart-custom-google-maps.php

Read More »
The Privacy Suite for WordPress
Get compliant today with the only Privacy Suite made for WordPress

Categories

Popular articles

Join our mailing list - 8 Tips & Tricks in your inbox over the next 8 weeks!