|
@@ -40,6 +40,7 @@ const error = useError();
|
|
const isOpen = useState('isOpen', () => !consentStore.preferenceGiven && error.value === undefined);
|
|
const isOpen = useState('isOpen', () => !consentStore.preferenceGiven && error.value === undefined);
|
|
|
|
|
|
const rejectAll = () => {
|
|
const rejectAll = () => {
|
|
|
|
+ window._paq.push(['forgetCookieConsentGiven']);
|
|
consentStore.analytics = false;
|
|
consentStore.analytics = false;
|
|
consentStore.ads = false;
|
|
consentStore.ads = false;
|
|
consentStore.preferenceGiven = true;
|
|
consentStore.preferenceGiven = true;
|
|
@@ -47,6 +48,7 @@ const rejectAll = () => {
|
|
}
|
|
}
|
|
|
|
|
|
const acceptAll = () => {
|
|
const acceptAll = () => {
|
|
|
|
+ window._paq.push(['rememberCookieConsentGiven']);
|
|
consentStore.analytics = true;
|
|
consentStore.analytics = true;
|
|
consentStore.ads = true;
|
|
consentStore.ads = true;
|
|
consentStore.preferenceGiven = true;
|
|
consentStore.preferenceGiven = true;
|
|
@@ -56,6 +58,11 @@ const acceptAll = () => {
|
|
const acceptMyChoice = () => {
|
|
const acceptMyChoice = () => {
|
|
consentStore.preferenceGiven = true;
|
|
consentStore.preferenceGiven = true;
|
|
isOpen.value = false;
|
|
isOpen.value = false;
|
|
|
|
+ if (consentStore.analytics) {
|
|
|
|
+ window._paq.push(['rememberCookieConsentGiven']);
|
|
|
|
+ } else {
|
|
|
|
+ window._paq.push(['forgetCookieConsentGiven']);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|