@broros opened this Issue on July 9th 2018

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

how do I speed this up?


@sgiehl commented on July 9th 2018 Member

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 commented on July 9th 2018 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.

@broros commented on July 9th 2018

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

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

@sgiehl commented on July 9th 2018 Member

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, ...)

@broros commented on July 9th 2018

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

@sgiehl commented on July 9th 2018 Member

If you are able to provide a solution to transfer data from the users
browser to Matomo without sending a request, we would for sure implement
it. But even a Rest API requires a request...

If you don't want to track any JavaScript stuff and want to avoid any
additional request maybe have a look at the PHP Tracker or Log Analytics.

@broros commented on July 13th 2018

this takes too long to load the page


@fdellwing commented on July 13th 2018 Contributor

Did you setup cron archiving as suggested in https://github.com/matomo-org/matomo/issues/13152#issuecomment-403408157?

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

@tsteur commented on July 13th 2018 Member

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

This Issue was closed on July 9th 2018
Powered by GitHub Issue Mirror