wellcomecollection / wellcomecollection.org

🪟 Wellcome Collection's website and services that support it
https://wellcomecollection.org
MIT License
39 stars 5 forks source link

Youtube behaviours based on consent #10888

Closed rcantin-w closed 4 months ago

rcantin-w commented 4 months ago

Click here to access a page from our website containing Youtube videos.

As discussed, we use the www.youtube-nocookies.com links to embed our videos, which is what YT uses when embedding videos without wanting any tracking or cookies added. At the moment, four cookies are added on loading a page containing a Youtube video:

Necessary

Analytics

Marketing

This is because of our current integration of Video embeds, which works like this:

Removing the script does not stop the video from playing, it seems to solely be for GA4's benefit. With that in mind, we could (and should) stop it from being added should the Analytics permission not be consented to. It does, however, still load the YSC cookie, which we marked as a Marketing cookie. It also makes me question whether the VISITOR_PRIVACY_METADATA is actually Necessary as it doesn't load without the Iframe API script.

Therefore, based on our chats, I think this simplifies this issue somewhat, but we need to have a look at (1) how we categorise those cookies and (2) stop the script from loading should Analytics not be consented to.

We also originally wanted to consider the option of adding a note under each video saying "Clicking play means you allow Youtube's third-party cookies", but I think based on these findings, it might not be necessary anymore? I don't seem to get ANY cookies without any hinderance to watching the videos.

rcantin-w commented 4 months ago

Relevant Slack conversation for further discussion on this topic.

LaurenFBaily commented 4 months ago

Discussed approach:

  1. Categorise YT cookies under Analytics
  2. Stop script from loading if no consent for Analytics cookies

With Data Protection Lead for approval.

LaurenFBaily commented 4 months ago

No issues raised by Helen on above approach.

rcantin-w commented 4 months ago

Changes are in prod