Best practice to cange existing youtube.com-Links to youtube-nocookie.com
-
Hello.
Can you gust tell me what the best practice would be?
In my scenario I currently have a small page in development – so I could perform this task manually. I however am wondering if there is a better way.
The way I embed my Videos is trough Gutenberg with the YouTube-Block. Not sure if this is even the best practice these days with the privacy-act (in Europe) in place – some sources are mentioning embedding an iFrame.
The way I currently am attempting it, it seems to work fine with the free Version of Complianz. The Video is not loaded with the site, but rather an image is shown, and the user must accept the cookies by clicking on the image first.
My issue is, that when I started to create the site, I was not fully aware of the bureaucratic GDPR monster, so all the linked Videos are “regular” links, not the nocookie-Link.
An example URL with a randomly chosen Video:
Standard share-link could either be:
1. “https://youtu.be/Aj2_2KmAzz0”, or
2. “https://www.youtube.com/watch?v=Aj2_2KmAzz0”I thought if I replace either domain above with
“www.youtube-nocookie.com”, everything would be fine.Youtube will not accept such link however.
So I basically have three questions:
1. Would one use the enhanced privacy mode provided by YT with the Youtube-Block in Gutenberg, or is this the wrong approach to begin with?
2. Which link would I use, if I would like to link to the Video with the enhanced privacy/nocookie method trough the Youtube-Block with Gutenberg?
3. Since I am not sure if all my linked Videos are either above URL-example 1 or 2, should an URL-change even be attempted with wp-cli search-replace?
- The topic ‘Best practice to cange existing youtube.com-Links to youtube-nocookie.com’ is closed to new replies.