Creating analytics property id using Piwik APIs

373 views Asked by At

I have an application, which creates web properties (Website, Apps) on the fly and I was wondering, If for these web properties, there is any way to generate property ID for tracking website Analytics, so that I can add tracking code when a property is created.

I was thinking of doing it programmatically using Google Analytics API but found here that currently Google Analytics only provides read-only APIs, which does Not let user write anything on the account.

I know Piwik is another very powerful tool that can be used for Analytics but Not very sure if Piwik provides this functionality and If not, How It can be customized for above needs.

Question: Is there any way to achieve above functionality in Piwik or If not, can we customize Piwik for that requirement?

1

There are 1 answers

3
Eduardo On

Piwiki is an open source tool that you install in your own servers. So technically you could do it any way by hacking into it.

But it also offers an API for creating and managing sites.

http://piwik.org/docs/analytics-api/reference/#SitesManager