Skip to content

Latest commit

 

History

History
35 lines (17 loc) · 864 Bytes

google-analytics-api.md

File metadata and controls

35 lines (17 loc) · 864 Bytes

Google Analytics API

  1. Go to: https://console.developers.google.com

  2. Click 'Create Project'

  3. Enable 'Analytics API'

Enable Analytics API

  1. Create an ‘OAuth 2.0 client IDs’ (Application type is Other)

Create Credentials

  1. Go to Google Analytics account: http://www.google.com/analytics/

  2. Add user email to GA permission.

Add permission to email

  1. Go to Query Explore to test: https://ga-dev-tools.appspot.com/query-explorer/

Notes: Get PROFILE_ID from ids: ga:xxxxxxxxx

  1. Documents: https://developers.google.com/api-client-library/

Integrate with Ruby