We are using matomo to track our SPA. Kudos on creating this amazing tool!!
I'm running into a issue off late.
On every client side route navigation I'm setting a bunch of data and calling
window._paq.push(['setUserId', username]); window._paq.push(['setTrackerUrl', url + 'piwik.php']); window._paq.push(['setSiteId', '13']); window._paq.push(['setCustomUrl', window.location.href]); window._paq.push(['trackPageView']);
It tracks couple of actions as soon as I enter the application. But post that every route navigation it makes a request which returns with a status of
307 Internal Redirect and that action doesn't get tracked!
Any idea about what the problem is?
Sorry to bother. But this is since I had a chrome extension blocking third party trackers!
Should this be documented somewhere on the matomo website?
I searched all over the internet why 307 is happening.
There should be a note somewhere mentioning that ad blockers could mess with tracking!
Never heard before of a 307 request, not sure where this comes from. Adblockers already mentioned in our faq: https://piwik.org/faq/troubleshooting/faq_58/
Ghostry chrome extension. This somehow intercepts all my outgoing requests to piwik, and responds with a 307.
This is a screenshot of how it looks.
Maybe I should have just searched for Matomo and Ghostery which would have redirected me to that FAQ.
I was looking for "307 Internal Redirect" with "Piwik/Matomo" which obviously took me nowhere.
Thought this can also be mentioned somewhere accessible. The probability of people looking into their network tab to see what the error is will be small. But devs like me can't resist to dig in. :smile: