Here’s the kind of functionality I’m thinking of:
Let’s say I place the code for the embedded player in a post or page. When someone visits that page, I would like the website to check whether the visitor has recorded the appropriate consent from the cookie consent plugin (typically stored in a cookie). If they do NOT have the appropriate consent, I would like the embedded player to not load at all and instead display some kind of message to the effect of “This embedded video player has been hidden due to your current privacy settings. To adjust your settings, please …” (and then present the appropriate instructions for changing the settings). If the visitor DOES have the appropriate consent, the player would load normally.
(I am assuming for the sake of discussion that I already have some means of recording and storing the appropriate consent that can be passed to whatever wrapping function controls the loading of the media player. That part is already solved.)
I know this is possible with widgets, using Widget Logic, or with header/footer scripts, but I have no idea how to implement this for players or IFrames within in a post or page. Are there tutorials on how to do this? Are there plugins that can streamline it? Is this feasible with caching?
(The obvious motivation for doing this is to improve visitor privacy with embedded content, since the embedded player immediately gathers some information about the user as soon as the player loads — and may place its own cookies, LSOs, etc. — even if the visitor doesn’t actually use or interact with the player. I would like to give users the option to just not load that content if they prefer.)
]]>Cookie compliance
To comply with the regulations governing cookies under the GDPR and the ePrivacy Directive you must:
? Receive users’ consent before you use any cookies except strictly necessary cookies.
? Provide accurate and specific information about the data each cookie tracks and its purpose in plain language before consent is received.
? Document and store consent received from users.
? Allow users to access your service even if they refuse to allow the use of certain cookies
? Make it as easy for users to withdraw their consent as it was for them to give their consent in the first place.
All CleanTalk cookies don’t contain personal data or data by which a visitor can be identified and are strictly necessary cookies as they directly affect your website security and your guests/visitors/registered users.
]]>Links are provided with sample notices which were really handy. I used these and then came back and modified the notices for the web site which did entail more time for customization. But all was well.
WordPress’ new Customization CSS was also handy in making custom colors, borders and the like.
Very nice to have a clean plugin without a lot of advertising put into the site too. Thank you for sharing!
]]>