by richardv · 13y ago · 0 comments
My product allows users to create and launch their own website. I'd quite like to be able to quickly provide basic statistics for users (alongside Google analytics if they want it).
We run a multi-tenant application so have thousands of sites running from the same codebase, however, each site owner would need it's own statistics. At the moment, we just let users provide their own Google Analytics, but it would be nice to report to Piwik I think and give them their own preconfigured stats area?
This was about two years ago now and I've followed the development on and off and it's certainly come on leaps and bounds. It's definitely worth some investigation for your use-case.
I'd recommend reading the documentation and doing a bit of searching for a configuration that will fit your needs before you begin. It will save you a lot of time.
Good luck and let me know if you have any specific questions!
The plugin i use for that is: http://wordpress.org/plugins/wp-piwik/
Maybe you can get an idea how to do it with your codebase from that...
http://piwik.org/docs/analytics-api/reference/#UsersManager
http://piwik.org/docs/analytics-api/reference/#SitesManager
(and if there are some quirks in the way, file a ticket etc.)