With Piwik, you can use the Analytics API: http://piwik.org/docs/analytics-api/ to automatically create websites, then automatically get javascript code and add it to your websites. Then you can automatically create a user with access to this website, and your users will be able to log in and enjoy the statistics of their sites in the Piwik user interface. You will need to call the API several times and need a little knowledge about development (at least you know how to call the REST API, etc.).
source
share