This release announces a new version of the API, the Analytics Reporting API V4. This new API is the most advanced programmatic method to access report data in Google Analytics.
Google Analytics is built upon a powerful data reporting infrastructure. The API gives developers access to the power of the Google Analytics platform. Some key features in the Analytics Reporting API V4 include the following:
- Metric Expressions – The API allows you to request not only the built-in metrics but also mathematical metric expressions. For example goal completions per number of sessions can be expressed in the request as ga:goal1completions/ga:sessions.
- Multiple date ranges – Support for requesting two date ranges, allowing you to compare data for two periods in a single request.
- Cohorts and Lifetime value – The API has a rich vocabulary to request Cohort and Lifetime value reports.
- Multiple segments – You can now request multiple segments in a single request.
See the developer documention for all the details on getting started with the API.
The Analytics Reporting API V4 comes with its own quotas and limits; as this is a new API, these limits and quotas are subject to be changed.