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
MultiSites.getAll: Add option to not remove sites that have no visits #3786
Comments
In [changeset:"a5be1e050f1819029d2f5158054356cb216d5fe4/piwikmobile2"]: |
@matt I reopen this ticket. It seems not to work for me. Maybe because of this? https://github.com/piwik/piwik/blob/master/core/DataAccess/ArchiveWriter.php#L214 Not sure. I have a fresh installation of Piwik here and I get the websites only when switching the period to year because there were only some visitors about a month ago. Setting the enhanced parameter to 1/true has no effect. |
FYI: Two beta testers have reported problems when the enhanced parameter is enabled (Piwik 1.12):
|
enhanced=1 seems to work here: http://demo.piwik.org/index.php?module=API&method=MultiSites.getAll&period=month&date=2013-09-01&format=xml%20&enhanced=1 Do you have URL showing the bug? |
create a new website and have a look whether it gets returned by MultiSites.getAll |
…l works with daterange and returns websites having 0 visits
…ix MultiSites.getAll does not work with dates like last7
I'm using MultiSites.getAll for the "All websites dashboard" in new Piwik Mobile app to have same behavior as in Piwik (if MultiSites is enabled by user in settings defaultReport).
If one calls MultiSites.getAll the API will remove websites having 0 visitors. See:
https://github.com/piwik/piwik/blob/master/plugins/MultiSites/API.php#L300
This can result in no displayed websites in the "All Websites Dashboard". -> User can not select a website, can not pick another date or anything else. A user can simply not use the app if no website has a visitor yet.
Is it possible to add an option so that websites having no visitors won't be removed?
The text was updated successfully, but these errors were encountered: