Vimeo embed videos

Vimeo doesn’t provide privacy enhanced mode like YouTube does so the only way to avoid tracking cookies from Vimeo would be to not show any embed videos until users have allowed tracking cookies.

Insert the following code to your website instead of the iframe tag provided by Vimeo and make sure you modify the tag.src to the url of the video you would like to show:

<div id="vimeo-player"></div>
<script type="text/plain" data-consent="analytics">
var tag = document.createElement('iframe');
tag.src = "https://player.vimeo.com/video/00000000?color=fdfdfd";
tag.width = 640;
tag.height = 360;
tag.frameBorder = 0;
tag.setAttribute('webkitallowfullscreen', '');
tag.setAttribute('mozallowfullscreen', '');
tag.setAttribute('allowfullscreen', '');

var el = document.getElementById('vimeo-player');
el.appendChild(tag);
</script>

Still need help? Contact Us Contact Us