Aggregated and anonymized data from 80k+ sites using tarteaucitron.
youtube
requests / 30 days
44.4% consent
Youtube: video, cookies and consent
Youtube is used to display or embed video content. Loading an external player may establish a connection with the provider’s servers before the visitor starts the video.
With tarteaucitron, loading Youtube can be conditioned on the visitor’s choice instead of immediately activating the third-party service.
Managing Youtube with tarteaucitron
When Youtube is integrated through tarteaucitron, its activation is managed according to the visitor's consent choice. The service can therefore be loaded only when the corresponding permission has been granted and the visitor can later change this choice through the consent interface.
Cookies and storage used by Youtube
The current tarteaucitron integration declares 3 cookies associated with Youtube:
This list corresponds to the cookies currently declared in the tarteaucitron service definition. The service provider may change its technical implementation over time.
Configuring Youtube
Add the following code to your website after initializing tarteaucitron. Replace the example values with those provided by Youtube.
<script>
(tarteaucitron.job = tarteaucitron.job || []).push('youtube');
</script>
Additional code
The following code can already be present on your website and should be kept where the service is used.
<div class="youtube_player" data-videoID="video_id" data-width="width" data-height="height" data-theme="theme (dark | light)" data-rel="rel (1 | 0)" data-controls="controls (1 | 0)" data-showinfo="showinfo (1 | 0)" data-autoplay="autoplay (0 | 1)" data-mute="mute (0 | 1)" srcdoc="srcdoc" data-loop="loop (0 | 1)" data-loading="loading (0 | 1)" data-start="start" data-end="end"></div>
Code to remove
Default HTML code to remove from your website:
<iframe width="width" height="height" src="//www.youtube.com/embed/video_id" frameborder="0" allowfullscreen></iframe>For a complete guide, read the documentation to install tarteaucitron.js.
Privacy information
For detailed information about the processing of data by Youtube, cookies and applicable retention periods, refer to the documentation or privacy policy published by the service provider:
Frequently asked questions about Youtube
Does Youtube require consent?
Whether Youtube requires consent depends on the data and tracking technologies used by the player. Embedded content using non-essential trackers should be conditioned on consent.
How does tarteaucitron block Youtube?
tarteaucitron controls the activation of Youtube according to the consent choice recorded for the visitor. The service code is triggered through tarteaucitron instead of being loaded independently from the consent manager.