Skip to content

This code will make a call to the google analytics realtime api to get the active users count.

Notifications You must be signed in to change notification settings

05TEVE/python-realtime-gapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Google Realtime API - Python

This is a simple command line app that will make a call to the google analytics realtime api to get current number of active users.

Instructions

  1. Create a service account in the google developer console. (https://console.developers.google.com/)

  2. Generate a key (preferably in '.p12' format)

  3. Go to the Google Analytics console and add the newly created service account (With Read and Analyse Permissions) on the 'Admin -> User Management' page.

  4. Copy the key to the same directory as the python files.

  5. In main.py set the following fields.

  • account_email = '[email protected]'
  • keyfile = 'KEYNAME.p12'
  • analytics_view_id = 'ga:VIEW_ID'

About

This code will make a call to the google analytics realtime api to get the active users count.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages