Service Applications and Google Analytics API V3: Server-to-server OAuth2 authentication?

UPDATE July 21st, 2012 Google Analytics API V3 now supports OAuth2 tokens returned by a .p12-signed JWT request. That is, we can now use the Analytics API w/ service accounts. Currently pulling 4 years of day-by-day metrics, just for the hell of it. Here’s a quick ‘n’ dirty step-by-step: Go to the Google API Console … Read more

What is the client ID when sending tracking data to google analytics via the measurement protocol?

Integer or UUID The cid is the equivalent of the second value in the _utma cookie when you use the javascript tracking. In js tracking, it is a random integer (generated by Math.round(2147483647 * Math.random())). But it is strored and sent as a string : so you can use both formats (integer or UUID). Required/Optional … Read more

Google Analytics API – Get page view information for specific URLs

Yes – you will need to use the Google Analytics API for this. I would suggest checking out the Query Explorer to get a feel for the queries you will need to create. You will require numerous queries to get all the data you need (adjusting the starting date): – Total Views – This Year … Read more