Merged PR 3048: enable telemetry when cookie consent is not required
Enable telemetry when cookie consent is not required.
This commit is contained in:
Родитель
eafb9ce25f
Коммит
09b51d9163
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче