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

Javascript tracking API, GET method firing multiple times #10182

Closed
yinhsunhuang opened this issue May 24, 2016 · 4 comments
Closed

Javascript tracking API, GET method firing multiple times #10182

yinhsunhuang opened this issue May 24, 2016 · 4 comments
Labels
Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. worksforme The issue cannot be reproduced and things work as intended.
Milestone

Comments

@yinhsunhuang
Copy link

I was playing with the Content Tracking API through Google devtool console, and get this weird behavior that the browser fired multiple request in a single tracking event. Code like this:

_paq.push(['trackContentImpression', "test123", 'special character', "http://123.12.12.123"]);

will trigger multiple GET request to the piwik server and caused the content impression count increase 2 or more. After googling, this is a browser optimization implemented by chrome. Switching to POST method can solve this problem, but no doc has mentioned this problem. Maybe we can add docs describing this issue and make the default method be "POST".

@tsteur
Copy link
Member

tsteur commented May 25, 2016

Are you on the latest Google Chrome version? There used to be a bug in Chrome in one of the recent versions that fired a request multiple times

@mattab mattab added this to the 2.16.x (LTS) milestone May 27, 2016
@mattab
Copy link
Member

mattab commented May 27, 2016

Hi @daeno, could confirm and try with latest chrome?

@mattab mattab added the Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. label May 27, 2016
@yinhsunhuang
Copy link
Author

yinhsunhuang commented May 30, 2016

I used Chrome 50.0.2661.102 m on Windows 7 when I reported, still the same on the latest Chrome, version 51.0.2704.63 m. I am using Piwik 2.16.1

@mattab
Copy link
Member

mattab commented Jul 7, 2016

Could you post a screenshot showing the problem, and how do you reproduce it?

@mattab mattab closed this as completed Jul 18, 2016
@mattab mattab added the worksforme The issue cannot be reproduced and things work as intended. label Jul 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

3 participants