Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

307 Internal Redirect #13018

Closed
Aftabnack opened this issue May 31, 2018 · 5 comments
Closed

307 Internal Redirect #13018

Aftabnack opened this issue May 31, 2018 · 5 comments
Labels
not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.

Comments

@Aftabnack
Copy link

Hi,

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 trackPageView.

    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?

My Setup:

screenshot from 2018-05-31 12-40-14

@Aftabnack
Copy link
Author

Sorry to bother. But this is since I had a chrome extension blocking third party trackers!

@Aftabnack
Copy link
Author

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!

@mattab mattab added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label May 31, 2018
@mattab
Copy link
Member

mattab commented May 31, 2018

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/

@Aftabnack
Copy link
Author

I'm using 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.
screenshot from 2018-05-31 18-03-01

@Aftabnack
Copy link
Author

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. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

No branches or pull requests

2 participants