To test use eg
Then initialize tracker after document was loaded via
_paq.push. You will see tracker will be created etc. Also if someone else uses
_paq will be correctly restored to use the trackerproxy. Automated test is not possible for this.
Will issue a PR for Piwik 3 where we log a message and not create the tracker
New features in Piwik 3 only
FYI: This was a bug fix as it wasn't creating trackers anymore under circumstances. But totally fine to not merge
We are using the following script to track events on Matomo 3.0.4
We receive errors as follows in the browser’s console, although the activity is recorded properly.
“_paq.push() was used but Piwik tracker was not initialized before the piwik.js file was loaded.”
By any chance, is the tracking code also added maybe somewhere else? Not quite sure why this message would appear.