This article is an explanatory guide covering the blocking of YouTube videos in the absence of user consent.
Our consent management platform helps you comply with regulations governing the management of video content provided by third-party services.
Despite a very common practice due to its ease, since September 1, 2023, placing a YouTube video on your website without consent is no longer compliant.
Why do we do this?
When YouTube videos are embedded on your website, the user’s IP address is automatically sent to YouTube servers in the U.S. as soon as the page is loaded, even if the user does not click on the video.
In addition, the service will also deposit a series of cookies to study user behavior.
It’s important to stress that an IP address is personal data, and sending it without explicit consent constitutes a violation of the Swiss New Data Protection Act (nLPD) but also with the European General Data Protection Regulation (RGPD).
By blocking these videos until users give their consent, your website will not only comply with legal obligations, but it will also boost user confidence by demonstrating a commitment to their privacy.
Biskoui can block your YouTube videos to bring your site into compliance with the nLPD and the European RGPR.
We have developed a system that will block your YouTube videos as long as the user’s consent has not been collected.
Your YouTube videos will be displayed as follows to indicate to visitors that their consent is required:
If the user clicks on “Allow YouTube”, consent will be activated for YouTube only.
Our blocking system will immediately disappear, allowing the user to play the YouTube video.
A. Add YouTube service (one-time operation)
When you want to embed a YouTube video on your website, YouTube will provide you with an “iframe” embedding script like this one:
To activate video blocking, simply modify the parameter text calling the source src= and replace it with data-src=.
Here’s what it will look like in practice:
Before modifying the source parameter:
src="https://www.youtube.com/embed/jNQXAC9IVRw?si=BNdYq_6680jj5-q_"
After modifying the source parameter:
data-src="https://www.youtube.com/embed/jNQXAC9IVRw?si=BNdYq_6680jj5-q_"
This little manipulation of the source parameter will allow biskoui to execute, or not, the video depending on the status of your visitor’s YouTube consent.
Please note: It’s important to do this for every YouTube video you embed on your website.
The next time the page is loaded, the biskoui blocking system will be reinstated until the user accepts the YouTube service again.
When generating the integration script, YouTube will ask you to activate theadvanced privacy mode. This is a feature designed to limit the collection of personal data from users. When a video is embedded using this mode, YouTube does not store information about visitors to the page, unless they interact directly with the video by clicking on “Play”.
In theory, this means that less data is collected and sent to YouTube than is the case with standard integration, offering greater protection for users’ privacy. However, this advanced privacy mode is being called into question for a number of reasons. Firstly, even if the video is not played, certain information, such as the user’s IP address, may still be transmitted to YouTube’s servers when the page is loaded. Secondly, there is a lack of transparency and clarity about the exact nature of the data collected by YouTube and how it is used.
Biskoui recommends that you activate the advanced privacy mode while using our blocking system.
Our support team is available at : support@biskoui.ch