# Custom Consent not showing after Refresh

**URL:** <https://community.piwik.pro/t/custom-consent-not-showing-after-refresh/3702>\
**Category:** Privacy\
**Created:** [February 27, 2024, 9:46am UTC](https://community.piwik.pro/t/custom-consent-not-showing-after-refresh/3702 "2024-02-27T09:46:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fabian](https://avatars.discourse-cdn.com/v4/letter/f/f6c823/32.png) [@Fabian](https://community.piwik.pro/u/Fabian)\
**Post date:** [February 27, 2024, 9:46am UTC](https://community.piwik.pro/t/custom-consent-not-showing-after-refresh/3702/1 "2024-02-27T09:46:33Z")

</div>

Hi,  
we are using the Custom Consent from this page: [Piwik PRO - Custom consent form example | Custom consent form example for Piwik PRO Consent Manager](https://piwikpro.github.io/ConsentManager-CustomConsentFormExample/)

When the page is first opened, the Consent banner appears as intended. After reloading or navigating to another page, the banner does not appear, although no Consent selection has been made.

We know that we can make a manual call via a button with a special ID.

Can the custom consent be configured so that the banner is always displayed as long as no consent decision has been made? Or can the reminder banner be used with the custom consent? I haven’t found anything about this in the documentation.

Many thanks for help

---

<div class="post-metadata">

**Author:** ![kamilb](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/kamilb/32/309_2.png) [@kamilb](https://community.piwik.pro/u/kamilb)\
**Post date:** [February 27, 2024, 2:45pm UTC](https://community.piwik.pro/t/custom-consent-not-showing-after-refresh/3702/2 "2024-02-27T14:45:32Z")

</div>

Hi @Fabian,

Can you please send me the website where this can be tested in a private message?

Have a great day! 🙂

---

<div class="post-metadata">

**Author:** ![Fabian](https://avatars.discourse-cdn.com/v4/letter/f/f6c823/32.png) [@Fabian](https://community.piwik.pro/u/Fabian)\
**Post date:** [March 11, 2024, 9:08am UTC](https://community.piwik.pro/t/custom-consent-not-showing-after-refresh/3702/3 "2024-03-11T09:08:10Z")

</div>

Hey @Oliwer_Kaczmarek & @anthonybartczak could you help me on this?

---

<div class="post-metadata">

**Author:** ![kamilb](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/kamilb/32/309_2.png) [@kamilb](https://community.piwik.pro/u/kamilb)\
**Post date:** [March 11, 2024, 10:17am UTC](https://community.piwik.pro/t/custom-consent-not-showing-after-refresh/3702/4 "2024-03-11T10:17:33Z")

</div>

Hi @Fabian,

This behaviour is expected in the custom consent form examples.  
The logic for the consent form being shown when there is no decision needs to be implemented on your side. You can use the CM API to check the current state - [Commands — Piwik PRO Analytics Suite 18.12 documentation](https://developers.piwik.pro/en/latest/consent_manager/js_api/commands.html?highlight=getComplianceSettings#get-compliance-settings)  
For example, you could use the getComplianceSettings method to check if there is a -1 status and if there is, it means that there has been no decision made. You could close the form when the status returned from this method is not -1. Please keep in mind that when the user clicks on the ‘X’ in the right corner it will show the banner again on the next page. In order to show some kind of a custom reminder when the user presses the ‘X’ I presume you’d need to create either a cookie or store the value in some local storage for example which would allow you to check if the consent form was closed or not.

Please let me know if you have any questions.

Have a great day! 🙂
