Just started looking into this .. I need a tool the client can log into and get stats on What keywords brought them to there rented page. Estimated search for last month for that KW. Daily Traffic to Pages listed on. It would be nice if there was also a clickthrough link to put on there buttons and banners, to add that in the report. Ive done this before, but this time I need to communicate with google, and I want to use PHP, since there may already be a script out there..I have minimal funds, so I'd rather program this myself but if they have a free one, I'm all for it. ..so I'm pretty much looking either for a public free script ,or some code hints or posts on this. Thanks in advance.
You want to get into Analytics using an API? don't we all - we just sit with bated breath and wait. I have a report that takes a day to generate from Analytics. Writing a script would take a couple of hours and it would save me angst, and my client $$$
How can we go about writing this script? Would we need google API? Right now, I can get What keywords brought them to there rented page. By HTTP Refferal, however ... Still need .. Estimated search for last month for that KW. Daily Traffic to Pages listed on. Thanks for the replies !
sarahk : can't you write a script that behaves like a human using analytics, grabbing all the data you need or whatever?
hmm..I don't think that API was what I was looking for, I guess the best way is to either use urchin, or somehow scrape the data, but I don't know if thats possible, like matthewroberbell suggests. Thanks.
Perhaps, screen scraping is an option but it would be much cleaner to just have a api you could make structured calls to, get sensible results and work with them. has anyone tried it? edit: just tried to see the traffic sources page, showing the results for the top 25 - it's an ajax call so even if I view the source and feed that into a parser I'm not getting all the data. I even tried copying from firebug but couldn't get what I need. While the top 10 may be all I want to report on I need to weed out the referral spammers and I total all the email referrers to a single entry. For the most visited pages I collect the top 500 and run a parser on the "type" of page.
sarahk: it's entirely possible to emulate the ajax calls to get the data though. PM me if you're interested on working together on this.
Found this : http://www.google.com/apis/adwords/developer/TrafficEstimatorService.html What you guys think? Looking into it now, not sure if this is old or not, but looks good to me...