matomo-tracker
matomo-tracker copied to clipboard
Make tracking call to real noop
Describe the bug In the current implementation, all calls pushes still to window._paq even if the tracker is disabled.
To Reproduce Steps to reproduce the behavior:
- Create a instance of a tracker and set the disabled flag to true
- Use pushInstruction() for instance one or multiple times
- Inspect the window._paq
Expected behavior The array should still be empty.
Is there any value in having window._paq populated when testing Matomo integration into a React app?
Hey, the issue is already a bit aged and I am currently engaged in some other topics, so I just want to let you know that it might can take a short while until I can tell you why I saw there an issue. Hope this is okay.