Skip to content

Commit

Permalink
feat(docs): update google analytics doc
Browse files Browse the repository at this point in the history
  • Loading branch information
harisato committed Sep 11, 2023
1 parent 7ef7a74 commit 80bc372
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions docs/how-to-setup-google-analytics.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,35 @@
- Install `Google Tag Manager` in website

![Alt text](imgs/image-5.png)

## Use Google Analytics API

1. Go to `https://console.cloud.google.com/`, create new `Project` or select existing project

![Alt text](imgs/image-6.png)

2. Enable `Google Analytics Data API`

- Search `Google Analytics Data API`, go to this product details

![Alt text](imgs/image-7.png)

- Press `Enable`

![Alt text](imgs/image-8.png)

- Click `Credentials` in left panel. Create new or download existing service account credential

![Alt text](imgs/image-9.png)

3. Create service account (if not exist)

- Create new service account, no need to provide any permission

![Alt text](imgs/image-10.png)

- Add service account key, save to computer

![Alt text](imgs/image-11.png)

4. Use `https://www.npmjs.com/package/@google-analytics/data` package in NodeJS app
Binary file added docs/imgs/image-10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/imgs/image-11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/imgs/image-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/imgs/image-7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/imgs/image-8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/imgs/image-9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 80bc372

Please sign in to comment.