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

Unique visitors when period != day #3223

Closed
pcworld opened this issue Jun 13, 2012 · 5 comments
Closed

Unique visitors when period != day #3223

pcworld opened this issue Jun 13, 2012 · 5 comments
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. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Milestone

Comments

@pcworld
Copy link

pcworld commented Jun 13, 2012

When I set the period to something else than "day" (e.g. "week"), I don't see the count of unique visitors in stats, for example in custom vars.

How easy would it be to fix this?
Keywords: unique visitors,period

@sgiehl
Copy link
Member

sgiehl commented Jun 13, 2012

Unique visitors should be processed for week and month aswell. It is disabled for year and range period. The are config options in global.ini.php like enable_processing_unique_visitors_year.

@pcworld
Copy link
Author

pcworld commented Jun 14, 2012

enable_processing_unique_visitors_day, enable_processing_unique_visitors_week and enable_processing_unique_visitors_month are both 1.
In custom vars, when period is "day":
[[Image(http://www.abload.de/img/auswahl_029jrawn.png)]]
When period is "week":
[[Image(http://www.abload.de/img/auswahl_030dql10.png)]]

Should that look different?
Or does Piwik need at least 7 days of data to show unique visitors in custom vars?

@mattab
Copy link
Member

mattab commented Jul 19, 2012

There is probably a bug in the columns code for some of the settings- thanks for the report!

@diosmosis
Copy link
Member

This won't be easy to fix. Unique visitor counts are only calculated for metrics. Doing so for reports would mean running the report processing SQL for weekly/monthly/yearly periods instead of just adding the daily reports up. That's not to say it's impossible, but it would be hard to do, and much harder to scale.

For now, I don't think this can be fixed. Later, though, we could do the following:

For low traffic sites

  • Move the SQL used to create daily reports into entities/classes that describe the report itself, as opposed to mixing the SQL in plugins & ArchiveProcessing.
  • Modify Period archive processing to do summing when not processing unique visitors and to modify the SQL used in daily reports when processing unique visitors.

NOTE: Will need benchmarks to see exactly when this won't scale.

For high traffic sites

  • Get Piwik to work w/ different NoSQL backends.
  • Provide a plugin/backend that uses Redis to determine unique visitor under various conditions.

Resources

@mattab
Copy link
Member

mattab commented Jul 31, 2012

We will not process unique visitors for each of the Tables reports rows, since it's too performance intensive. For Unique Visitors as a general metrics see: http://piwik.org/faq/how-to/#faq_113

@pcworld pcworld added this to the 1.8.3 - Piwik 1.8.3 milestone Jul 8, 2014
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. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

4 participants