Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Use youtube-nocookie.com for background videos



Site URL: https://www.skaarmusic.no/

I'm working on a Cookie Consent (GDPR) project for a client adding the OneTrust cookie banner to sites.

I've managed to restrict most cookies but struggling with some from youtube.

The simplest method is to use https://www.youtube-nocookie.com/ for any embeds and that does the trick on embedded videos, but background videos are a problem. The following cookies appear without the visitor's consent: NID, IDE, YSE, VISITOR_INFO1_LIVE

Looks like the cookies are coming from the iframe_api script which is used to create background videos:

<script src="https://www.youtube.com/iframe_api" async=""></script>

Removing the background video stops the cookies from dropping.

This tutorial claims to solve the issue: https://portalzine.de/dev/api/youtube-iframe-api-and-cookieless-domain-solution-gdpr-dsgvo/

An alternative solution would be for me to edit the script tag with a OneTrust class to restrict it from running without consent.

But I can't find any way of editing the YouTube API script used by Squarespace.

Any ideas?

Link to post
  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...