YouTube and GDPR compliance for videos embebed on website

左心房为你撑大大i 提交于 2020-12-06 12:24:10

问题


I came to know even embedding of youTube videos on website are also affected by GDPR law, even for this we need user consent. There is not much i can find on the internet how to make embedding of youtube videos GDPR compliance and how we can take user consent for this.

After digging for few days i found following link which say how we can use https://foliovision.com/support/fv-wordpress-flowplayer/requests-and-feedback/youtube-and-gdpr

following link from google allow us to use it in no cookie option but is this compliance with GDPR https://www.youtube-nocookie.com/embed/MjZxCbMQmXg

Is there any easy way of getting user consent for all such as third party tools etc.


回答1:


I'm currently working with a very similar issue. The solution I have working so far is like this:

  1. Install Cookie Consent Plugin from https://privacypolicies.com/cookie-consent/ and configure it
  2. Wrap Youtube embeds with this sort of PHP:

     if (isset($_COOKIE['cookie_consent_level']) && 
        $_COOKIE['cookie_consent_level'] == "targeting-cookies") {
         // If we are allowed to use targeting cookies, 
         // include the Youtube/FB/Google code.
         print $youtube_embed_code;
         print $google_retargeting_code;
         print $facebook_pixel_code;
     }
    

    What that provides is code load on second page view (within 12 month window). If your default cookie setting is the most liberal, eg targeting-cookies, then all subsequent page views on your site for that visitor will include the appropriate embeds.

I'm close to getting something working on first page load, after approval is sought, but not quite there yet.




回答2:


This plugin helped: http://wordpress.org/plugins/youtube-embed-plus/

Improved GDPR compliance options: YouTube no cookie, YouTube API restrictions, GDPR consent mode

To see how it works, without having to first download the plugin, I suggest watching this video: https://www.youtube.com/watch?v=lm_HIic6obw

Basically, there's a "preload" message displayed until the site visitor accepts the YouTube.com connection and cookies.



来源:https://stackoverflow.com/questions/50444701/youtube-and-gdpr-compliance-for-videos-embebed-on-website

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!