Opened 5 years ago

Closed 5 years ago

#842 closed New feature (fixed)

Display unique visitors per week and month

Reported by: matt Owned by: mauser
Priority: major Milestone: Piwik 0.4.2
Component: Core Keywords:
Cc: Sensitive:

Description

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.

Attachments (2)

computeNbUniqVisitors.patch (1.6 KB) - added by mauser 5 years ago.
computeNbUniqVisitors v2.patch (1.6 KB) - added by mauser 5 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 5 years ago by mauser (zawadzinski)

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.

comment:2 Changed 5 years ago by matt (mattab)

  • Milestone changed from Features requests - after Piwik 1.0 to 1 - Piwik 0.4.2
  • Owner set to mauser

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

comment:3 Changed 5 years ago by mauser (zawadzinski)

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.