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

very slow response time #13152

Closed
ghost opened this issue Jul 9, 2018 · 9 comments
Closed

very slow response time #13152

ghost opened this issue Jul 9, 2018 · 9 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@ghost
Copy link

ghost commented Jul 9, 2018

matomo and my website are installed on the SAME server but still very slow

how do I speed this up?

piwik

@sgiehl
Copy link
Member

sgiehl commented Jul 9, 2018

Are all requests that slow?
If you have browser archiving enabled in Matomo, some of the tracking request might trigger an archiving process, which let the requests run a bit longer.
If you want to avoid that, you can disable browser archiving and set up an archiving cron. See https://matomo.org/docs/setup-auto-archiving/

@fdellwing
Copy link
Contributor

Also note, that it does not matter on what server the sites are running, as each request is made from the users browser and it is therefore irrelevant (mostly) where the server is.

@ghost
Copy link
Author

ghost commented Jul 9, 2018

why is matomo calling two files? piwik.js and piwik.php

calling just one file ( piwik.js) would be better

@sgiehl
Copy link
Member

sgiehl commented Jul 9, 2018

because Matomo needs javascript to measure some stuff. piwik.js should only be loaded on the first page, afterwards browsers should have in cache. piwik.php will be requested on anytime something is tracked (page view, content impression, outlink, download, ...)

@sgiehl sgiehl closed this as completed Jul 9, 2018
@sgiehl sgiehl added the answered For when a question was asked and we referred to forum or answered it. label Jul 9, 2018
@ghost
Copy link
Author

ghost commented Jul 9, 2018

develop a rest API for tracking so only JavaScript will be loaded form the browser

@sgiehl
Copy link
Member

sgiehl commented Jul 9, 2018 via email

@ghost
Copy link
Author

ghost commented Jul 13, 2018

this takes too long to load the page

/piwik.php?action_name=Great%20Health%20%E2%80%93%20Ideas%20to%20help%20you%20look%20and%20feel%20your%20best.&idsite=4&rec=1&r=971077&h=4&m=3&s=5&url=https%3A%2F%2Fmywebsite.org%2F&_id=e41a0c80b23d269d&_idts=1531479785&_idvc=1&_idn=0&_refts=0&_viewts=1531479785&send_image=1&pdf=1&qt=0&realp=0&wma=0&dir=0&fla=1&java=1&gears=0&ag=0&cookie=1&res=1280x1024&gt_ms=110&pv_id=O4tHRK

@fdellwing
Copy link
Contributor

fdellwing commented Jul 13, 2018

Did you setup cron archiving as suggested in #13152 (comment)?

There is nothing special about your call, it's a generic page view.

@tsteur
Copy link
Member

tsteur commented Jul 13, 2018

You may also just get a better server and find the request time very fast. Or install queued tracking, there it takes like 5ms. https://plugins.matomo.org/QueuedTracking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

3 participants