Some Piwik users add a lot of websites in Piwik.
It is also common that users of a given Piwik installation can access more than 10 websites.
Currently they have to go to each of these websites to check their reports.
They need quick & easy way to get an overview of what’s happening in all their websites at once, and a quick access to more details.
When loading 300 websites, we will lookup numerical values, for the period selected.
To show UU + visits + pages + conversions we need to load the 4 related numeric values for 300 websites. that’s 1 SELECT query to return 1200 values.
to show green/red evolution indicator we need to select the compared numeric value from yesterday/last week/last month/last year. that’s one SELECT to return 300 values.
loading 300 sparklines will take a loong time, as the browser will issue limited http request on the piwik domain. loading 300 sparklines will certainly take more than 20 seconds.
is that an issue?
between 4 and 6 days of work
[multi site report.PNG](http://issues.piwik.org/attachments/389/multi_site_report.PNG)
Current version in the attachment.
Now working on core to optimize Archive/Array/*.php
I’ve installed and activated this plugin but there is no new entry in the “Website selector” on the top right of the page. Only my sites are listed, but there still isn’t an extra one for All websites. I installed and activated it on two different servers, and neither shows the new selection in the drop-down.
Aha! I figured this one out. The documentation is incorrect. The plugin does work, just not as it states above. Rather than placing a new entry for All sites in the website selector in the top right of the page, it instead places an extra menu item in the main blue horizontal menu at the end after Dashboard, Visitors, Actions, Referrers. The new item is called Sites Summary.
I originally reported this problem on the forums because trac was down for me, but now I’ve come here. Here’s a summary of the bug below, but a larger version of the error is at the forum thread located at http://forum.piwik.org/index.php?showtopic=831. Neither this report nor the one at the forum includes the entire error because it is incredibly huge.
Since I upgraded to version 0.2.33, the multisites plugin has produced an error – the FIRST time I run it each day. After the first time, it’s fine (until the next day). Here’s an edited version of the error. The real version was ENORMOUS. I’ve also edited my domain info to keep it generic.
Notice: Undefined property: Piwik_DataTable_Simple::$rows in /home/myfolder/public_html/piwik/core/DataTable.php on line 457 Backtrace —>#0 Piwik_ErrorHandler(8, Undefined property: Piwik_DataTable_Simple::$rows, /home/myfolder/public_html/piwik/core/DataTable.php, 457, Array ()) called at [/home/myfolder/public_html/piwik/core/DataTable.php:457]…………
see also: add a line with total for all websites: http://www.karlkopp.com/blog/2009/4/30/piwik-updated-multisitesplugin
Please update to the new MultiSitesPlugin.tar for compatibility with 0.2.35.
This pops up with piwik 0.2.35 (using the updated version above):
Fatal error: Unsupported operand types in /var/www/apps/content/piwik/plugins/MultiSitesPlugin/Controller.php on line 204
Current version of MultiSitesPlugin. It still needs a lot of improvements and refactoring.
I am concerning rewriting the plugin to use directly piwik_archive_numeric_* tables in order to speed up the plugin (it is still very slow when even having "just" hundreds of sites).
If you got < 500 sites you can use this version (but remember to setup auto archiving http://piwik.org/docs/setup-auto-archiving/ - piwik won't be capable of archiving so many sites via web request!)
There is no way to use SQL query result limiting (LIMIT) and sorting (ORDER BY) using Piwik API. This is very important for MultiSitesPlugin, because when having thousands of sites we do not want to fetch all results, and sort & limit them in PHP.
We can build MultiSitesPlugin_API that will query directly SQL fetching data from piwik_archive_numeric_* tables. We do not want to check if data for specific site is archived, so we assume that all data is archived using cron auto-archiving (users will be noticed about it when installing MultiSitesPlugin).
This solution will significantly increase MultiSitesPlugin performance.
here is my feedback:
about the UI
thanks! it is getting real close to be included in core ;)
PS: we can include in core before the optimization happen on the php side, so please feel free to do the UI updates and then work on the php side if you wish to push this in core.
Is this placement normal ?
If anyone know what to change in the main CSS file...
New version in the attachment.
We use now Piwik's CSS styles, and plugin Piwik coding standards are followed.
I'm sorry to say, the "button" in the menu is still "misplaced" :
Its caused by translation (that is too long and does not fit in the button), it is not this plugin related issue.
Switching to english i still get this :
The submenu is always present no matter what language.
the location in the menu is temporary and will be fixed before submitting the plugin to the core - most likely it will appear as "All Websites" next to Dashboard, top left of screen.
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 4.0.20506; Tablet PC 2.0;)
Timestamp: Wed, 15 Jul 2009 00:33:50 UTC
Message: Unknown runtime error
this plugin can't work properly on my IE browser(can't list any website),on chrome and firefox it works well,is it a bug or I've done something wrong?
Once the few bugs listed here are fixed, we would like to commit it to trunk asap after Piwik 0.6. Maciej, would you mind taking a look at the reported issues? thanks!
removed the suffix and the require_once calls. added a link to topbar (see included patch).
changed some stuff in index.tpl, but i was just testing, so there's a problem when changing date or period.
Pebosi, can you please clarify what the issues are? What is missing for the plugin to be included in 0.5.1 in a stable state?
When changing the date the parameter "date" in url is not replace but it's appended to the url without an ampersand. so there's an error...
i tried using no ajax so i think there's a problem with the broadcast.
In , refs #389, commit MultiSites plugin
bugs in the last commit :
(In ) refs #389 Fixing date selection, fixing column sorting, few styles modifications
(In ) MultiSites plugin enabled by default refs #389
(In ) refs #389 using the jquery magic so that IE works OK
Included and enabled by default in 0.5.3
Next steps are performance improvements, see #1077
(In ) fixes #2708