views:

268

answers:

1

In one page on my personal site, I like to be able to see some data get from Google Analytics.

I like to have a list of all my site and the average visitor per week or per month over the current year

I have check some solution:

  1. Yahoo Pipe (look complicated)
  2. Google Analytics PHP API class(look nice)
  3. Google Analytics API (look official)
  4. Dimension Analyzer for Google Analytics(look fancy)

So at this point, it have done my research, but none give me something i like to have. Getting a JSON from google would be nice. I will have to parse a XML maybe, but i like to see simpler solutions.

ANYthing would be nice too see

+6  A: 

The Google Analytics API is GData based. There isn't really a mapping from GData to JSON as far as I know. However, it is possible to access the API from JavaScript if you prefer.

Edit:

I was wrong. However, that mapping is kinda scary. I don't know how I feel about XML namespaces in JSON. If you really want to use it, just tack alt=json onto the end of your Analytics GData feed.

Bob Aman