CALL GOOGLE ANALYTICS API USING NODEJS - v1.0
CALL GOOGLE ANALYTICS API USING NODEJS - v1.0
Author: [email protected]
Version :1.0
Overview:
Step 1: Create google Api project and enable Google Analytics API
Step 3: Add user in step 2 in google analytics account and get view Id
Detail:
Step 1: Create google Api project and enable Google Analytics API
Go to http://console.developers.google.com/
If you already have a project, then you can use your existing project
In my example, I already have existing project "demo1"/
Back to https://console.developers.google.com/
Your screen will different from mine, because I have some testing credentials
before
You can rename the json file to another beautiful name, such as
google_auth.json
Step 3: Add user in step 2 in google analytics account and get view Id
As my example
Click on Admin
Click on User Management
After getting view id, now it's ok to use view id in your code
In my case :
The result will looks like this