For years I’ve been using Piwik (more recently Matomo) for tracking solution instead of using GA. I considered Matomo simpler to work with.
But recently I still have the intermittent issue with tracking code. Sometimes it works, sometimes it doesn’t. From thin air the regular code (JS) didn’t catch any data anymore. Meanwhile, I found out an error by inspecting debug resource (F12) in browser pointing me to the following error:
Later on even with that error present I could again gather data to matomo normally. Honestly, I don’t understand this behavior.
So I decided to give a try by using Tag Manager instead, just giving me some added flexibility and in the hope some understanding about that error warning.
For my surprise I couldn’t get the debug preview displayed and couldn’t catch any data either, BUT the JS error previously detected is still there now voiding container from getting loaded. Despite of that, I could successfully gather data by simulating visitors to the site.
How can I get rid of that JS error? Help will be very appreciated.
Note: My site domain is different from the matomo’s domain.
Thanks in advance.