Skip to content

Commit d4b4f1d

Browse files
committed
Updated insight version
1 parent 4e916a6 commit d4b4f1d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

view/frontend/web/insights.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ define(
5858
algoliaAnalytics.addAlgoliaAgent(userAgent);
5959

6060
var userToken = getCookie('aa-search');
61-
if (userToken && userToken !== '') algoliaAnalytics.setAuthenticatedUserToken(userToken);
61+
if (userToken && userToken !== '') {
62+
algoliaAnalytics.setAuthenticatedUserToken(userToken);
63+
}
6264
},
6365

6466
addSearchParameters: function () {
@@ -75,7 +77,6 @@ define(
7577
if (algoliaConfig.personalization.enabled) {
7678
allWidgetConfiguration.configure.enablePersonalization = true;
7779
allWidgetConfiguration.configure.userToken = algoliaAnalytics.getUserToken();
78-
allWidgetConfiguration.configure.authenticatedUserToken = algoliaAnalytics.getUserToken();
7980
}
8081

8182
return allWidgetConfiguration;
@@ -88,7 +89,6 @@ define(
8889
if (algoliaConfig.personalization.enabled) {
8990
options.enablePersonalization = true;
9091
options.userToken = algoliaAnalytics.getUserToken();
91-
options.authenticatedUserToken = algoliaAnalytics.getUserToken();
9292
}
9393
return options;
9494
});

0 commit comments

Comments
 (0)