From 09b51d9163a348409d110d5b2435d505e5ab0884 Mon Sep 17 00:00:00 2001 From: Chris Lovett Date: Wed, 16 Sep 2020 15:11:32 +0000 Subject: [PATCH] Merged PR 3048: enable telemetry when cookie consent is not required Enable telemetry when cookie consent is not required. --- docs/assets/js/analytics.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/assets/js/analytics.js b/docs/assets/js/analytics.js index efe77925..39af809e 100644 --- a/docs/assets/js/analytics.js +++ b/docs/assets/js/analytics.js @@ -35,12 +35,10 @@ function wcp_ready(err, _siteConsent){ function onConsentChanged() { var userConsent = siteConsent.getConsentFor(WcpConsent.consentCategories.Analytics); - if (!siteConsent.isConsentRequired){ - // force the dialog just for testing... - // todo: remove this when we are done testing... - siteConsent.manageConsent(); + if (!siteConsent.isConsentRequired) { + enableTelemetry(); } - else if(userConsent) { + else if (userConsent) { enableTelemetry(); } else {