We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 596bb61 commit 8d46723Copy full SHA for 8d46723
view/frontend/web/insights.js
@@ -18,7 +18,7 @@ define(
18
track: function (algoliaConfig, partial = false) {
19
this.config = algoliaConfig;
20
this.defaultIndexName = algoliaConfig.indexName + '_products';
21
- let useCookie = this.config.cookieConfiguration.cookieRestrictionModeEnabled ? !!getCookie(this.config.cookieConfiguration.consentCookieName) : true;
+ this.useCookie = this.config.cookieConfiguration.cookieRestrictionModeEnabled ? !!getCookie(this.config.cookieConfiguration.consentCookieName) : true;
22
if (this.isTracking || this.useCookie === false) {
23
return;
24
}
0 commit comments