diff --git a/view/frontend/web/insights/notices-mixin.js b/view/frontend/web/insights/notices-mixin.js deleted file mode 100644 index 226fed43a..000000000 --- a/view/frontend/web/insights/notices-mixin.js +++ /dev/null @@ -1,23 +0,0 @@ -define( - [ - 'jquery', - 'algoliaInsights' - ], - function ($) { - 'use strict'; - var algoliaCookieMixin = { - _create: function () { - this._super(); - $(document).on('click', algoliaConfig.cookieConfiguration.cookieAllowButtonSelector, function (event) { - event.preventDefault(); - algoliaInsights.track(algoliaConfig, true); - }); - } - }; - - return function (widget) { - $.widget('mage.cookieNotices', widget, algoliaCookieMixin); - return $.mage.cookieNotices; - }; - -});