assign _paq to window in tracking code #16189
Labels
c: Tracking
For issues related to getting tracking data into Matomo.
c: Usability
For issues that let users achieve a defined goal more effectively or efficiently.
Milestone
When putting the default Matomo tracking code into a function, tracking stops working as matomo.js expects
window._paq
to exist and the variable is just local inside the function.For comparison the default Google Analytics tracking code:
slightly more readable form:
completly unminified form:
The text was updated successfully, but these errors were encountered: