From 3efb00f220fe57536d091712b0a79c7d7bca6351 Mon Sep 17 00:00:00 2001 From: Ross-Clark Date: Thu, 28 Nov 2019 13:47:08 +0000 Subject: [PATCH 1/2] fix acceptance of preferences when analytics is accepted --- src/cookieconsent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cookieconsent.js b/src/cookieconsent.js index eec15f5..402ff74 100644 --- a/src/cookieconsent.js +++ b/src/cookieconsent.js @@ -163,7 +163,7 @@ function acceptConsent() { function acceptAnalyticsConsent() { setConsent({ necessary: true, - preferences: true, + preferences: false, statistics: true, consented: true, }); From 44fea8e6b71c1d104d00b72e5fc8e429694588db Mon Sep 17 00:00:00 2001 From: Mayank Patel Date: Wed, 4 Dec 2019 06:10:24 -0800 Subject: [PATCH 2/2] refactor acceptance of preferences when analytics is accepted --- src/cookieconsent.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/cookieconsent.js b/src/cookieconsent.js index 402ff74..1ed34ca 100644 --- a/src/cookieconsent.js +++ b/src/cookieconsent.js @@ -162,8 +162,6 @@ function acceptConsent() { // If analytics consent is given, change the value of the cookie function acceptAnalyticsConsent() { setConsent({ - necessary: true, - preferences: false, statistics: true, consented: true, });