-1

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?

Community
  • 1
  • 1
lalit
  • 3,283
  • 2
  • 19
  • 26

1 Answers1

1

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

Eduardo
  • 22,574
  • 11
  • 76
  • 94
  • Hi Eduardo, Thanks for your reply. Yeah, it's possible to customize Piwik that way but as this might take some time for me. I was thinking, If I can use Google Analytics for now to achieve functionality I mentioned above. In that case do you think, I can use custom variable to pass identifier for each domain and maintain everything under single property? or there are better ways to do it? – lalit Aug 23 '13 at 09:09
  • That was not the question. – Eduardo Aug 23 '13 at 17:15
  • Yeah Correct, I am asking If we can do that? – lalit Aug 26 '13 at 07:28