Filtering pages in the API!


(Dejamps) #1

Hi guys!

I run a web service and I’m really thinking about using Piwik as the Analytics system but one thing that I wanted to know is if it’s possible to filter the pages on the API calls. I mean, I wanna show my users their statistics based on their own subdomains and so on…

Couldn’t find anything on the API page and can get into the API docs on dev area, don’t know it that is working…

Thanks for the help in advanced! Bye!


(mvanlaar) #2

I’ve you add every subdomain as a site, there is no need to filter the returned api data.


(Dejamps) #3

I wasn’t adding every subdomain as a site, but that is a nice idea. Its possible to add sites through the API isn’t it? Do you guys have any examples or docs on how to do that?

Thanks!


(mvanlaar) #4

You can look at this page in the forum: http://forum.piwik.org/index.php?showtopic=805


(Dejamps) #5

I’ve managed to do it style_emoticons/<#EMO_DIR#>/smile.gif Thanks a lot! This will be a great feature to our service, tks to Piwik style_emoticons/<#EMO_DIR#>/smile.gif