Title: Feature request: Complementary tool Klaro
Last modified: November 25, 2020

---

# Feature request: Complementary tool Klaro

 *  [Sascha_Foerster](https://wordpress.org/support/users/sascha_foerster/)
 * (@sascha_foerster)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/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](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](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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffeature-request-complementary-tool-klaro%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Matthias Kittsteiner](https://wordpress.org/support/users/kittmedia/)
 * (@kittmedia)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/feature-request-complementary-tool-klaro/#post-13714107)
 * 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](https://wordpress.org/support/users/sascha_foerster/)
 * (@sascha_foerster)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/feature-request-complementary-tool-klaro/#post-13922477)
 * 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.

 * ![](https://ps.w.org/embed-privacy/assets/icon.svg?rev=2812349)
 * [Embed Privacy](https://wordpress.org/plugins/embed-privacy/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/embed-privacy/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/embed-privacy/)
 * [Active Topics](https://wordpress.org/support/plugin/embed-privacy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/embed-privacy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/embed-privacy/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Sascha_Foerster](https://wordpress.org/support/users/sascha_foerster/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/feature-request-complementary-tool-klaro/#post-13922477)
 * Status: not a support question