Clicking on this link will load and send data from and to Google.

Usage

This script loads the YouTube API script, when a user clicks on the image. Once loaded, the video will be played automatically. This version gives you more control over the video, e.g. you can pause it. See the documentation for more information.

Content-Security-Policy

To prevent accidentally loading YouTube resources without asking the user for consent, Apache sites have a default Content-Security-Policy that does not allow this. When you're confident you've applied the appropriate consent validation, you can allow loading resources from YouTube by putting the following Content-Security-Policy in your .htaccess:
		    # Allow loading YouTube content after ensuring consent.
		    # Additional allowances to be coordinated with privacy team
		    Header set Content-Security-Policy "frame-src https://www.youtube-nocookie.com https://www.youtube.com"
		

Pelican

If you're using the ASF Pelican tools you can use the consensual_youtube plugin.