Fix policy opt-out issue

This commit is contained in:
Bea 2021-03-16 17:50:12 +01:00
parent c3bc836a99
commit 16beaedc6f
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ function openPolicyPopup() {
$("#mind-policy-popup").fadeIn(300); // Enable the div
}
function agreePolicyPopup() {
function giveConsent() {
const _paq = window._paq || [];
_paq.push(['forgetUserOptOut']);
_paq.push(['rememberConsentGiven', 43800]);
@ -16,7 +16,7 @@ function agreePolicyPopup() {
function removeConsent()
{
const _paq = window._paq || [];
_paq.push(['rememberCookieConsentGiven']);
_paq.push(['forgetCookieConsentGiven']);
$("#mind-policy-popup").fadeIn(300); // Enable the div
setCookie("consentGiven", "false", 1825);
}

View File

@ -4,5 +4,5 @@
<br>
By visiting our website, you agree with our <a href="/policy" target="_blank">Privacy Policy</a>.
</p>
<button onclick="agreePolicyPopup()">Ok, understood</button>
<button onclick="giveConsent()">Ok, understood</button>
</div>