Ticket #842 (closed New feature: fixed)

Opened 14 months ago

Last modified 14 months ago

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

computeNbUniqVisitors.patch Download (1.6 KB) - added by mauser 14 months ago.
computeNbUniqVisitors v2.patch Download (1.6 KB) - added by mauser 14 months ago.

Change History

Changed 14 months ago by mauser

Changed 14 months ago by mauser

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.

Changed 14 months ago by matt

  • owner set to mauser
  • milestone changed from Features requests - after Piwik 1.0 to 1 - Piwik 0.4.2

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

Changed 14 months ago by mauser

Changed 14 months ago by mauser

  • status changed from new to closed
  • resolution set to fixed

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

Note: See TracTickets for help on using tickets.