# Piwik and Klaro integration

**URL:** https://community.piwik.pro/t/piwik-and-klaro-integration/1882
**Category:** API & integrations
**Created:** [March 23, 2023, 11:27am UTC](https://community.piwik.pro/t/piwik-and-klaro-integration/1882 "2023-03-23T11:27:15Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![perttu](https://avatars.discourse-cdn.com/v4/letter/p/e274bd/32.png) [@perttu](https://community.piwik.pro/u/perttu)
#### Post date: [March 23, 2023, 11:27am UTC](https://community.piwik.pro/t/piwik-and-klaro-integration/1882/1 "2023-03-23T11:27:15Z")

</div>

Hello there!

I need to integrate client’s Piwik with Klaro Consent Management Tool. I imagine that I should follow these instructions: [How can I integrate a third-party cookie consent tool with Piwik PRO? | Piwik PRO help center](https://help.piwik.pro/support/privacy/how-can-i-integrate-a-third-party-cookie-consent-tool-with-piwik-pro/)

But do you have anything to add for this particular third-party tool? What should I take into account? Thanks!

Here is Klaro’s website: [https://heyklaro.com/](https://heyklaro.com/)

---

<div class="post-metadata">

### Author: ![Oliwer\_Kaczmarek](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/oliwer_kaczmarek/32/3888_2.png) [@Oliwer\_Kaczmarek](https://community.piwik.pro/u/Oliwer_Kaczmarek)
#### Post date: [March 23, 2023, 11:47am UTC](https://community.piwik.pro/t/piwik-and-klaro-integration/1882/2 "2023-03-23T11:47:53Z")

</div>

Hi!

If you will follow the guide you should be okay 🙂

Additionally you might think about adding methods for clicks on “agree to all”, “decline all”, “save changes”.  
So on clicks on each of those options you can use those methods:

1. [track agree to all click](https://developers.piwik.pro/en/latest/consent_manager/js_api/index.html#track-agree-to-all-click)
2. [track reject all click](https://developers.piwik.pro/en/latest/consent_manager/js_api/index.html#track-reject-all-click)
3. [track save choices click](https://developers.piwik.pro/en/latest/consent_manager/js_api/index.html#track-save-choices-click)

This way you will also see visitors interactions with consent form in consent report.

But it’s not necessery for integration to work correctly. The guide on help center shows exactly what is needed.

---

<div class="post-metadata">

### Author: ![perttu](https://avatars.discourse-cdn.com/v4/letter/p/e274bd/32.png) [@perttu](https://community.piwik.pro/u/perttu)
#### Post date: [March 29, 2023, 6:10am UTC](https://community.piwik.pro/t/piwik-and-klaro-integration/1882/3 "2023-03-29T06:10:32Z")

</div>

Thanks Oliwer!

We have done as the guide tells, but now even though I give consent to all cookies, in tracker debugger our tags are not fireing. Only if I change the needed consent from “Analytics” to “No consent needed” our tags (for example phone number clicks) are fireing. Before turning on the “Use a custom consent form” the tags were fireing as they should in debugger. What could cause this?

---

<div class="post-metadata">

### Author: ![Oliwer\_Kaczmarek](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/oliwer_kaczmarek/32/3888_2.png) [@Oliwer\_Kaczmarek](https://community.piwik.pro/u/Oliwer_Kaczmarek)
#### Post date: [March 29, 2023, 8:58am UTC](https://community.piwik.pro/t/piwik-and-klaro-integration/1882/4 "2023-03-29T08:58:22Z")

</div>

If you use our tag manager for integration, please make sure the consent type for the integration tag is “No consent is required”.  
To check if the mapping works correctly you can use this function in console:  
`ppms.cm.api('getComplianceSettings', (e)=>{console.log(e)}, ()=>{});`  
[Here is documentation](https://developers.piwik.pro/en/latest/consent_manager/js_api/index.html#get-compliance-settings)

---

<div class="post-metadata">

### Author: ![perttu](https://avatars.discourse-cdn.com/v4/letter/p/e274bd/32.png) [@perttu](https://community.piwik.pro/u/perttu)
#### Post date: [April 5, 2023, 6:02am UTC](https://community.piwik.pro/t/piwik-and-klaro-integration/1882/5 "2023-04-05T06:02:04Z")

</div>

Hey,

still not working. 🙂

So if I understand correctly, do I need a tag similar like with Cookiebot integration for Klaro or any other 3rd party consent tool?

We are new to PiwikPro and our client wants to stick to Klaro as a consent management tool. What could we check next? Is there a way to walk us through this integration?

---

<div class="post-metadata">

### Author: ![Oliwer\_Kaczmarek](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/oliwer_kaczmarek/32/3888_2.png) [@Oliwer\_Kaczmarek](https://community.piwik.pro/u/Oliwer_Kaczmarek)
#### Post date: [April 5, 2023, 7:59am UTC](https://community.piwik.pro/t/piwik-and-klaro-integration/1882/6 "2023-04-05T07:59:30Z")

</div>

You need a script that will get the consent decisions from Klaro (or other 3rd party consent tool) and send them to Piwik PRO Consent Manager. We have ready to use script for Cookiebot which you can use as a referenece for writing your own script for Klaro tool.  
Once you have the script than you can follow steps from either cookiebot integration (using your script) or the steps from [How can I integrate a third-party cookie consent tool with Piwik PRO? | Piwik PRO help center](https://help.piwik.pro/support/privacy/how-can-i-integrate-a-third-party-cookie-consent-tool-with-piwik-pro/?pk_vid=1680681458334b2a).
