To view statistics for days / weeks / months / years, I compiled two tables. The first archives of all visits to the site with my page and ID are stored on one line. The second table records tables such as Piskvor.
The advantage is that I can view statistics for any page and id that I want over time (but it will be many lines over time ...), or I can just view the total pageviews. For visitors to my site, I serve the information from this second table, but my admin panel fully uses the first table.
statsEach - statID - page (example: page 100 is index.php, or 210 is news.php) - id (example: 1 is news story 1, 2 is news story 2,...) - date - time - user
and
statsTotal - statTotalID - page - id - total
I don't know what you need / need to do, or even if my table structure is better, but it works for me.
Bryan
source share