File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,9 @@ define(
58
58
algoliaAnalytics . addAlgoliaAgent ( userAgent ) ;
59
59
60
60
var userToken = getCookie ( 'aa-search' ) ;
61
- if ( userToken && userToken !== '' ) algoliaAnalytics . setAuthenticatedUserToken ( userToken ) ;
61
+ if ( userToken && userToken !== '' ) {
62
+ algoliaAnalytics . setAuthenticatedUserToken ( userToken ) ;
63
+ }
62
64
} ,
63
65
64
66
addSearchParameters : function ( ) {
@@ -75,7 +77,6 @@ define(
75
77
if ( algoliaConfig . personalization . enabled ) {
76
78
allWidgetConfiguration . configure . enablePersonalization = true ;
77
79
allWidgetConfiguration . configure . userToken = algoliaAnalytics . getUserToken ( ) ;
78
- allWidgetConfiguration . configure . authenticatedUserToken = algoliaAnalytics . getUserToken ( ) ;
79
80
}
80
81
81
82
return allWidgetConfiguration ;
@@ -88,7 +89,6 @@ define(
88
89
if ( algoliaConfig . personalization . enabled ) {
89
90
options . enablePersonalization = true ;
90
91
options . userToken = algoliaAnalytics . getUserToken ( ) ;
91
- options . authenticatedUserToken = algoliaAnalytics . getUserToken ( ) ;
92
92
}
93
93
return options ;
94
94
} ) ;
You can’t perform that action at this time.
0 commit comments