Proxy 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.
- Start notion-ga server and deploy it to the internet world (Optional)
- Build URL with parameters according to the Parameter reference guide
- Add embed image to notion pages you want to track. (with the URL you built at the previous step)
Key | Description | Example | Required |
---|---|---|---|
tid | Google Analytics tracking ID. GA4 IDs are not supported. #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 |
- 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
Node.js@^8
$ npm install now@^15 --global
$ now dev
$ now
Issues and PRs are welcome. Do not hesitate to do it. Please do.
MIT