I need to a stats solution for MU that I can offer my users. I have alot of users and just one server (as I'm sure most of you have) so caching is a must.
FireStats, ShortStats, Statpress and others I've experimented with don't support caching. Some of their reports aren't accurate to begin with (even with caching disabled). Google Analytics is too complex for my users and requires sign-up. Wordpress.com Stats also requires signup.
Has anyone tried Piwik ?
I don't know enough to code a Piwik+MU solution but I've found this discussion with an outline given by someone who had gotten it to work.
What do you guys think ?
http://lists.piwik.org/pipermail/piwik-hackers/2008-May/000112.html
I've tried this in test and it seems to work:
When a new blog is created:
/piwik/index.php?module=API&method=SitesManager.addSite&siteName=[BLOGNAME]&urls=[URL]&format=xml
This request returns an id. This will be used in ad. 3
2. /piwik/index.php?module=API&method=UsersManager.addUser&userLogin=[USERNAME]&password=[PASSWORD]&email=[USER
EMAIL]&format=xml
(if the user already exists it will return error. Just ignore)
3./piwik/index.php?module=API&method=UsersManager.setUserAccess&userLogin=[USERNAME]&access=view&idSites=[ID
RETURNED FROM AD. 1]&format=xml
4. Insert this code on all blog pages:
<!-- Piwik -->
<script language="javascript"
src="/piwik/piwik.js"
type="text/javascript"></script>
<script type="text/javascript">
<!--
piwik_action_name = '';
piwik_idsite = [ID RETURNED FROM AD. 1];
piwik_url = '/piwik/piwik.php';
piwik_log(piwik_action_name, piwik_idsite, piwik_url);
//-->
<!-- /Piwik -->