Is there a google API to create google analytics code through API(not going to google site manually and create) ?
Please help...
The GA Management API is read-only. You cannot create accounts or profiles through it:
Google Analytics provides developer access to the configuration data through the Management API, which is a read-only API for account and configuration data.