Google API -PHP & Keyword Anaysis

Discussion in 'PHP' started by digga121, Aug 26, 2008.

  1. #1
    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.
     
    digga121, Aug 26, 2008 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,980
    Likes Received:
    4,572
    Best Answers:
    124
    Trophy Points:
    665
    #2
    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 $$$
     
    sarahk, Aug 27, 2008 IP
  3. digga121

    digga121 Active Member

    Messages:
    158
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #3
    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 ! :D
     
    digga121, Aug 29, 2008 IP
  4. sarahk

    sarahk iTamer Staff

    Messages:
    28,980
    Likes Received:
    4,572
    Best Answers:
    124
    Trophy Points:
    665
    #4
    You can't!

    There is no api access into Analytics
     
    sarahk, Aug 30, 2008 IP
  5. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #5
    sarahk : can't you write a script that behaves like a human using analytics, grabbing all the data you need or whatever?
     
    matthewrobertbell, Aug 31, 2008 IP
  6. digga121

    digga121 Active Member

    Messages:
    158
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #6
    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.
     
    digga121, Aug 31, 2008 IP
  7. sarahk

    sarahk iTamer Staff

    Messages:
    28,980
    Likes Received:
    4,572
    Best Answers:
    124
    Trophy Points:
    665
    #7
    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, Aug 31, 2008 IP
  8. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #8
    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.
     
    matthewrobertbell, Sep 1, 2008 IP
  9. digga121

    digga121 Active Member

    Messages:
    158
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #9
    digga121, Sep 4, 2008 IP