Auto register of web sites

Apologies if this has been asked before, but I couldnt find a way to search.

We have hundreds of websites, and are looking to use piwik for analytics. However, we need to be able to deploy a new site, and have it automatically contact the analytics server and request a new code and register with the service. Is this currently possible? Manually adding each site in the administration service is not feasible for the number of sites we have.

Any advice or pointers to docs gratefully received.

Andy

You can use the API to automatically create a new Website for you and to get the correct tracking code.

http://demo.piwik.org/index.php?module=API&action=listAllAPI&idSite=1&period=day&date=yesterday#SitesManager

Found the docs, thanks for your help, will put it down to snow blindness. :slight_smile: