Conflict with Prototype (Magento 1)

I’m having trouble using JavaScript tracking in Magento 1. As I researched, other developers also face the same difficulties. The problem occurs because of the conflict between mtc.js and prototype (of Magento 1).



Is there any way to include the Mautic monitoring script by avoiding this conflict?

I’m seeing the same problem.

I’m having trouble using JavaScript tracking in Magento 1. As I researched, other developers also face the same difficulties. The problem occurs because of the conflict between mtc.js and prototype (of Magento 1).

Is there any way to include the Mautic monitoring script by avoiding this conflict?

The following error appears in the browser console:

mtc.js:14 Uncaught TypeError: #<Object> is not a function at Array.forEach (<anonymous>) at HTMLDocument.<anonymous> (mtc.js:14) at Object.MauticJS.dispatchEvent (mtc.js:10) at mtc.js:71 at XMLHttpRequest.xhr.onreadystatechange (mtc.js:7)