Retrieve social Analytics data from Google

To parse and compare your Facebook insights and Google analytics Data some snippets . Can be tested and extended in the Facebook Graph Explorer

Facebook insights 

  • # NEW Likes per day
    https://graph.facebook.com/PAGENAME/insights/page_fan_adds?since={date.last30Days}&until={date.today}
  • # Engaged Users per day
    https://graph.facebook.com/PAGENAME/insights/page_engaged_users?since={date.last30Days}&until={date.today}
  • # Page impressions per day
    https://graph.facebook.com/12344556789/insights/page_impressions_unique?since={date.last30Days}&until={date.today}

Google Analytics API

  • Google Analytics Data
    Docs: Google Analytics data sources
    https://www.googleapis.com/analytics/v3/data/ga?ids=ga:[ProfileID]&dimensions=ga:socialNetwork,ga:month&metrics=ga:visitors,ga:goalCompletionsAll&start-date={date.add(-90).format()}&end-date={date.today}

 


Code Cowboy

Exploring and Notes about interesting code snipets

Leave a Reply

Your email address will not be published. Required fields are marked *