Skip to content

Commit e87f791

Browse files
committed
Updated code to store the anonymous user token in a browser cookie.
1 parent 41f73e7 commit e87f791

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

view/frontend/web/insights.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ define(
3737
initializeAnalytics: function () {
3838
algoliaAnalytics.init({
3939
appId: this.config.applicationId,
40-
apiKey: this.config.apiKey
40+
apiKey: this.config.apiKey,
41+
useCookie: true,
4142
});
4243

4344
var userAgent = 'insights-js-in-magento (' + this.config.extensionVersion + ')';

0 commit comments

Comments
 (0)