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

Display unique visitors per week and month #842

Closed
mattab opened this issue Jun 30, 2009 · 5 comments
Closed

Display unique visitors per week and month #842

mattab opened this issue Jun 30, 2009 · 5 comments
Assignees
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Milestone

Comments

@mattab
Copy link
Member

mattab commented Jun 30, 2009

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.

@zawadzinski
Copy link
Contributor

Attachment:
computeNbUniqVisitors.patch

@zawadzinski
Copy link
Contributor

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.

@mattab
Copy link
Member Author

mattab commented Jul 8, 2009

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

@zawadzinski
Copy link
Contributor

Attachment:
computeNbUniqVisitors v2.patch

@zawadzinski
Copy link
Contributor

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

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Projects
None yet
Development

No branches or pull requests

2 participants