Skip to content

Commit 1dd5dfe

Browse files
committed
MAGE-998 Relocate insights lib and apply new namespace convention
1 parent 8247f9a commit 1dd5dfe

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

view/frontend/requirejs-config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const config = {
2727
'algoliaSearchLib' : 'Algolia_AlgoliaSearch/js/lib/algolia-search.min',
2828
'algoliaInstantSearchLib' : 'Algolia_AlgoliaSearch/js/lib/algolia-instantsearch.min',
2929
'algoliaAutocompleteLib' : 'Algolia_AlgoliaSearch/js/lib/algolia-autocomplete.min',
30-
'algoliaAnalytics' : 'Algolia_AlgoliaSearch/js/internals/search-insights',
30+
'algoliaAnalyticsLib' : 'Algolia_AlgoliaSearch/js/lib/search-insights.min',
3131
'algoliaRecommendLib' : 'Algolia_AlgoliaSearch/js/lib/recommend.min',
3232
'algoliaRecommendJsLib' : 'Algolia_AlgoliaSearch/js/lib/recommend-js.min',
3333

@@ -42,6 +42,7 @@ const config = {
4242
'algoliaBundle' : 'Algolia_AlgoliaSearch/js/internals/algoliaBundle.min',
4343
'rangeSlider' : 'Algolia_AlgoliaSearch/js/navigation/range-slider-widget',
4444
'recommend' : 'Algolia_AlgoliaSearch/js/lib/recommend.min',
45+
'algoliaAnalytics' : 'Algolia_AlgoliaSearch/js/lib/search-insights.min',
4546
'recommendJs' : 'Algolia_AlgoliaSearch/js/lib/recommend-js.min',
4647
'productsHtml' : 'Algolia_AlgoliaSearch/js/template/autocomplete/products',
4748
'pagesHtml' : 'Algolia_AlgoliaSearch/js/template/autocomplete/pages',

view/frontend/web/js/insights.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
define([
22
'jquery',
3-
'algoliaAnalytics',
3+
'algoliaAnalyticsLib',
44
'algoliaCommon',
55
'mage/cookies',
66
], function ($, algoliaAnalyticsWrapper) {

0 commit comments

Comments
 (0)