Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Display unique visitors per week and month #842

Closed
mattab opened this Issue · 5 comments

2 participants

Matthieu Aubry Maciej Zawadziński
Matthieu Aubry
Owner

Currently we only display unique visitors per day. We could run the query to also process this number across all logs for weeks and month. This might interfere with log purging, eg. if we purge logs that are older than 2 weeks, we are not able to process uniques for the month anymore.

Maciej Zawadziński
Collaborator
Maciej Zawadziński
Collaborator

I attach the small patch that solves the problem.

You need to keep at least one month history of piwik_log_visit in order this function can return proper results for month period stats.

Matthieu Aubry
Owner

Maciej, we can commit your patch to core - can you just please replace == 3 and == 2 b the real constant; looks good to me

Maciej Zawadziński
Collaborator
Maciej Zawadziński
Collaborator

(In [1301]) fixes #842 computing the real number of unique visitors per month and week

Matthieu Aubry mattab added this to the Piwik 0.4.2 milestone
Maciej Zawadziński zawadzinski was assigned by mattab
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.