PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information

Lorna Mitchell's Blog: Retrieving Data from Google Analytics API using PHP

Note: This article was originally published at PHPDeveloper on 10 December 2010.
PHPDeveloper

Lorna Mitchell has a new post to her blog continuing her look at using the Google Analytics API. This time the focus is on pulling data out of the API (if you're looking for connection advice, see her previous post).

Recently I started playing with the google analytics API, looking at ways to bring analytics onto dashboards and generate simple reports from the data in there. Very shortly after I started to look at the API, I had working data retrieval, so I thought I'd share my experiences (and code!).

She mentions the data reference document you can use to find the methods to call for specifically what you want as well as a snippet of sample code to connect and pull data based on a set of "query data".