Google Analytics Unrolls a Shiny, New API

google-analytics-logoWith all the new features Google Analytics has been unrolling since version 3 launched in August, the Google Analytics was in need of a new API. Now, developers have it.

The Google Analytics Core Reporting API is the new hotness for Google Analytics developers. This version replaces the previous - and now defunct - Data Export API. This Analytics API change is both a continuation of the previous Analytics API changes from earlier this summer, and also more consistent with recent API changes for other Google products, including their new JavaScript client library for various Google product APIs.

The new Core Reporting API has two versions. Version 3.0 is an all new release that contains new libraries for other languages like PHP, Ruby, and Python. It reduces the size of the data outputted 10 times more efficiently than previous APIs. The version 2.4 API is a legacy release to maintain compatibility with the previous Data Export API version 2.3.

Developers will find significant changes in the v. 3.0 API, starting with authentication through the OAuth 2.0 format, but also in the use of JSON format for data output and absolutely no backwards compatibility with the previous version 2.3. The 2.4 release will provide some of the backwards compatibility, but the API team highly recommends migrating to the new 3.0 version.

If you develop custom apps or interfaces using the 2.3 API, you'll need to update within six months. The XML requests, Data Export API Account Feeds and all configuration data will be going away at that time.

Most developers should appreciate these changes. For data feeds and recent trends in REST API development, the less bulky JSON (JavaScript Object Notation) format is quickly replacing XML as the format of choice for returning data.

Google Analytics has seen many changes this past year. With new social reporting already announced for 2012, the features will continue to roll out. This API will help developers keep up with them and help Google make the new features more accessible.

About the author

Thom is a seasoned techincal SEO and digital analytics veteran. His current role as VP of Development and IT at Internet Marketing Ninjas includes the improvement of internal processes, leading the creation and refinement of industry-leading tools across multiple brands.

Previously he was a premier independent consultant, held a a senior search position at nationally renown TopRank Online Marketing and led all digital web-related technology's at Rochester Institute of Technology's Saunders College of Business. He also led analytics strategy efforts for the university's mobile initiative.

Part of the ClickZ Academy faculty, Thom has also taught for several well-respected colleges and universities. He is a regular speaker at ClickZ Live events and is a veteran of TEDx as well.