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 ad77383 commit 685d49dCopy full SHA for 685d49d
view/frontend/web/insights.js
100644
100755
@@ -3,7 +3,8 @@ define(
3
'jquery',
4
'algoliaAnalytics',
5
'algoliaBundle',
6
- 'algoliaCommon'
+ 'algoliaCommon',
7
+ 'mage/cookies'
8
],
9
function ($, algoliaAnalyticsWrapper, algoliaBundle) {
10
algoliaAnalytics = algoliaAnalyticsWrapper.default;
@@ -63,6 +64,7 @@ define(
63
64
algoliaAnalytics.setAuthenticatedUserToken(userToken);
65
} else if (unsetAuthenticationToken && unsetAuthenticationToken !== '') {
66
algoliaAnalytics.setAuthenticatedUserToken('undefined');
67
+ $.mage.cookies.clear('unset_authentication_token');
68
}
69
},
70
0 commit comments