Support » Plugin: Embed Privacy » Feature request: Complementary tool Klaro

  • With the need of consenting for a lot of things, I discovered Klaro to control external scripts and let them only work, if people agree (and not before). Klaro is nice, because you can use it everywhere, even outside of the wordpress world. But still Klaro and Embed Privacy would make a great couple, if they could work better together. I would love to see some KLaro-config-file that works well together with embed privacy. I tried to create a config for Klaro, so people can agree to Facebook, Twitter, Instagram und YOuTube right when they agreeing for other cookies as well. But I could only create a a configuration that makes a preset of all 4 networks at the same time (not individually, because Embed Privacy only uses a single cookie for all networks).

    Here is the part of my Klaro-config:

    /* Embed Privacy > in Arbeit
    			{
    					name: 'embeddings',
    					default: false,
    					title: 'Social-Media-Embeddings (Facebook, Instagram, YouTube, Twitter)',
    					purposes: ['embedding'],
    					contextualConsentOnly: true,
    					cookies: [/^embed-.*$/, '/', "." + location.hostname],
    					callback: function(consent, service) {
    							console.log(
    									'cookie.bonn.digital: Einwilligung für Dienst ' + service.name + ': ' + consent
    							);
    							if(consent==true){
    										document.cookie="embed-privacy={\"instagram\":true,\"youtube\":true,\"facebook\":true,\"twitter\":true}; path=/; SameSite=Lax";
    							 } else {
    										document.cookie="embed-privacy={\"instagram\":false,\"youtube\":false,\"facebook\":false,\"twitter\":false}; path=/; SameSite=Lax";
    							}
    
    					},
    			}, */

    Klaro also started smoothing called “contextual consent”, but it is much more basis than Embed privacy is.
    https://kiprotect.com/docs/klaro/tutorials/contextual_consent

    I wrote already a Github issue on Klaros side, so I hope you can somehow work together or built your tools in a compatible way: https://github.com/kiprotect/klaro/issues/282

    Maybe someone has also a hint how to improve my KLaro-script, that would be awesome!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor KittMedia

    (@kittmedia)

    If you parse the JSON of the Embed Privacy cookie content, you should be able to enable/disable a single embed provider. If you need a more detailed how-to on this, I’m sure we can create one. 🙂

    Thread Starter Sascha_Foerster

    (@sascha_foerster)

    Thanks a lot! 🙂 Actually I would need more details and your offer for help, as I am not really a programmer. But I could accept also that my solution is not yet perfect and just wait.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Feature request: Complementary tool Klaro’ is closed to new replies.