Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mskims/notion-ga
Proxy server that allows you to track pageview events via google analytics
https://github.com/mskims/notion-ga
google-analytics notion
Last synced: about 7 hours ago
JSON representation
Proxy server that allows you to track pageview events via google analytics
- Host: GitHub
- URL: https://github.com/mskims/notion-ga
- Owner: mskims
- License: mit
- Created: 2019-04-15T09:09:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-04T10:38:56.000Z (10 months ago)
- Last Synced: 2024-11-08T18:15:32.451Z (8 days ago)
- Topics: google-analytics, notion
- Language: JavaScript
- Homepage: https://notion-ga.com
- Size: 2.52 MB
- Stars: 190
- Watchers: 4
- Forks: 34
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Logo](/logo.svg)
# notion-gaProxy server that allows you to track pageview events via google analytics. It uses notion's embed image feature to send pageview event to google analytics.
![](preview.gif)
## How to use?
1. Start notion-ga server and deploy it to the internet world (Optional)
2. Build URL with parameters according to the Parameter reference guide
3. Add embed image to notion pages you want to track. (with the URL you built at the previous step)## Parameter reference
| Key | Description | Example | Required |
| ---- | ------------------------------------------------------------- | ------------------------- | -------- |
| tid | Google Analytics tracking ID. GA4 IDs are not supported. [#7](https://github.com/mskims/notion-ga/issues/7) | UA-99123456-1 | Y |
| host | Specifies the hostname. It doesn't matter the specified hostname exists or not. It only appears on your GA dashboard. | mskim.me | Y |
| Page | The path portion of the page URL. Should begin with `/` | /careers/product-designer | Y |### Example URLs
- https://notion-ga.ohwhos.now.sh/collect?tid=UA-97180334-1&host=mskim.me&page=/careers/product-designer
- https://notion-ga.ohwhos.now.sh/collect?tid=UA-97180334-1&host=mskim.me&page=/careers/data-engineer## Development
### Requirements
- `Node.js@^8`
### 1. Install dependencies
```bash
$ npm install now@^15 --global
```### 2. Run development server
```bash
$ now dev
```### 3. Deploy to the internet world
```bash
$ now
```## Contributions
Issues and PRs are welcome. Do not hesitate to do it. Please do.
## LICENSE
MIT