Skip to content

Fetch Google Analytics data with Google APIs in Node.js ๐Ÿš 

Notifications You must be signed in to change notification settings

hta218/ga-fetcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

14 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš  Fetch Google Analytics data with Google APIs in Node.js

Installation

Create Google App

  1. Add new Project from Google Console
  2. Create Credentials for your app (Select Oauth Client ID => Web application => Create)
  3. Config URIs & Authorized redirect URIs in Consent Screen
  4. Enable Google Analytics API (Go to Library => search Analytics API => Enable)

Set up Nodejs Server

  1. git clone https://github.com/hta218/nodejs-google-api-starter.git

  2. Config .env file (Using .env.example)

  3. yarn && yarn start

  4. Sign in, get your view and fetch data

  5. Learn how to create your request with Google Analytics Reporting API v4

License

MIT License