Many developers use the Google Analytics API to automate time-consuming tasks in the GA web interface. For example getting top level metrics for different websites. Instead of spending an hour pulling reports every week, developers can write a script to do all this data extraction and reporting before they get into work. That way they can spend time focusing on analysis.

When writing these automation scripts, I've found the Google API Python library to be one of the easiest libraries to use. First, Python code is really easy to read. Second, the Google API Python library has some really nice helper methods to store and reuse tokens.

Anyways, I just checked in 3 getting started with the Google Analytics API samples using the google-api-python lib:

If you've never used our API before, or don't use python, take a look at the code:

It's super easy to follow, and using it as a template to automate reports can start saving you LOTS of time!
Shared publiclyView activity