-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
Waiting for user feedbackIndicates the Matomo team is waiting for feedback from the author or other users.Indicates the Matomo team is waiting for feedback from the author or other users.duplicateFor issues that already existed in our issue tracker and were reported previously.For issues that already existed in our issue tracker and were reported previously.
Description
When the tracker is being initialized, configCookiesDisabled is set to true by default. When hasCookies()
is called by detectBroweserFeatures()
during initialization, this causes a cookie warning dialog to popup twice(each time navigatorAlias.cookieEnabled
) is accessed. This occurs every time the modal dialog is opened.
function hasCookies() {
if (configCookiesDisabled) {
return '0';
}
if (!isDefined(navigatorAlias.cookieEnabled)) {
var testCookieName = getCookieName('testcookie');
setCookie(testCookieName, '1');
return getCookie(testCookieName) === '1' ? '1' : '0';
}
return navigatorAlias.cookieEnabled ? '1' : '0';
}
Metadata
Metadata
Assignees
Labels
Waiting for user feedbackIndicates the Matomo team is waiting for feedback from the author or other users.Indicates the Matomo team is waiting for feedback from the author or other users.duplicateFor issues that already existed in our issue tracker and were reported previously.For issues that already existed in our issue tracker and were reported previously.