when putting the tracking code  into files and placing it at the bottom or at the top
(within head part bevor tag ) of the website the FireFox browser is placing
a message/warning in the console (F12 inspector view).
"_paq.push() was used but Matomo tracker was not initialized before the matomo.js file was loaded.
Make sure to configure the tracker via _paq.push before loading matomo.js. Alternatively, you can
create a tracker..."
The message is not displayed all the time!
Its needed to reload the website in the browser (F5) a few times 5-6 to force this message.
When switching the position of 'tracking.js' and 'piwik.js' so that 'tracking.js' is loaded first,
it looks fine, so that there's no message appearing anymore.
Fail: If the 'piwik.js' is loaded fully first and then the 'tracking.js' the message appears.
OK : Otherwise if 'tracking.js' is finished loaded to be first and the 'piwik.js' no message appears.
I was just asking myself why anyone would load the
piwik.js by himself, instead of doing this at the end of the tracking code. But than I saw that this is exactly how it is done in the FAQ.
I'm no CSP guru, but it is possible to load the
piwik.js dynamically at the end of the
Not sure what the problem is here? If you load it differently, you just need to make sure to load it in the right order. That's what the message is telling you. Make sure the tracker is initialized before tracker is loaded. If there's any bug, I'm happy to reopen.
When I am using the official method proposed in  the message occurs. So it seems to me that the published way  is not correct, isn't it ?
Of course I can change the order loading 'tracking.js' first but it would against your documentation .
Why you do not change the documentation on you website :o ?
I've inverted the order of the scripts so it should work?
I quess this is the right way.
With loading 'tracking.js' first it works now in my case without message/warning.
Thanks so far.