There is the problem when I implementing this code for Asp.Net MVC project with bower package manager and requirejs.
The code:
<script>
// Create BP element on the window
window["bp"] = window["bp"] || function () {
(window["bp"].q = window["bp"].q || []).push(arguments);
};
window["bp"].l = 1 * new Date();
// Insert a script tag on the top of the head to load bp.js
scriptElement = document.createElement("script");
firstScript = document.getElementsByTagName("script")[0];
scriptElement.async = true;
scriptElement.src = 'https://pixel.barion.com/bp.js';
firstScript.parentNode.insertBefore(scriptElement, firstScript);
window['barion_pixel_id'] = 'BP-0000000000-00';
// Send init event
bp('init', 'addBarionPixelId', window['barion_pixel_id']);
</script>
I ve got error:
require.min.js Uncaught Error: Mismatched anonymous define() module: function(){return y}