Google analitycs API and Wordpress MS integration

Discussion in 'PHP' started by trecords, Sep 21, 2011.

  1. #1
    Hi,

    I have a wordpress ms site with tons of blogs in it and i want tracking reports from Google analytics in admin panel widget. I have two ways t develop such custom plugin but I wonder which way is better:
    First is currently i have added subdomain tracking js code in site and it shows every blog domain in js code for to give hostname tracking. So on my Analytics reports I can see how many visits to specific hostname (blog site). I want to extrack this data and show last 30 days visits per every blog.
    Second is creating custom variables to track every blog and show this in wp admin panel through analytics API.

    So first one is hard to integrate currently for mem because i don`t know how to extract these data but i think it is better way. So please tell me which one is the way to go or you know better way recommend me plz.
    If you know show me pz how to extract hostname data and visits for each hostname from Google analytics API.
     
    trecords, Sep 21, 2011 IP