{"id":19002557,"url":"https://github.com/mskims/notion-ga","last_synced_at":"2025-04-13T08:40:46.158Z","repository":{"id":38786032,"uuid":"181451535","full_name":"mskims/notion-ga","owner":"mskims","description":"Proxy server that allows you to track pageview events via google analytics","archived":false,"fork":false,"pushed_at":"2024-02-04T10:38:56.000Z","size":2639,"stargazers_count":190,"open_issues_count":9,"forks_count":33,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T00:13:41.861Z","etag":null,"topics":["google-analytics","notion"],"latest_commit_sha":null,"homepage":"https://notion-ga.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mskims.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-15T09:09:16.000Z","updated_at":"2024-11-07T02:46:07.000Z","dependencies_parsed_at":"2024-11-16T08:15:59.866Z","dependency_job_id":null,"html_url":"https://github.com/mskims/notion-ga","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskims%2Fnotion-ga","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskims%2Fnotion-ga/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskims%2Fnotion-ga/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskims%2Fnotion-ga/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mskims","download_url":"https://codeload.github.com/mskims/notion-ga/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248686058,"owners_count":21145413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google-analytics","notion"],"created_at":"2024-11-08T18:15:26.495Z","updated_at":"2025-04-13T08:40:46.131Z","avatar_url":"https://github.com/mskims.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"![Logo](/logo.svg)\n# notion-ga\n\nProxy 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.\n\n![](preview.gif)\n\n## How to use?\n\n1. Start notion-ga server and deploy it to the internet world (Optional)\n2. Build URL with parameters according to the Parameter reference guide\n3. Add embed image to notion pages you want to track. (with the URL you built at the previous step)\n\n## Parameter reference\n\n| Key  | Description                                                   | Example                   | Required |\n| ---- | ------------------------------------------------------------- | ------------------------- | -------- |\n| tid  | Google Analytics tracking ID. GA4 IDs are not supported. [#7](https://github.com/mskims/notion-ga/issues/7)  | UA-99123456-1             | Y        |\n| host | Specifies the hostname. It doesn't matter the specified hostname exists or not. It only appears on your GA dashboard.         | mskim.me                  | Y        |\n| Page | The path portion of the page URL. Should begin with `/`       | /careers/product-designer | Y        |\n\n### Example URLs\n\n- https://notion-ga.ohwhos.now.sh/collect?tid=UA-97180334-1\u0026host=mskim.me\u0026page=/careers/product-designer\n- https://notion-ga.ohwhos.now.sh/collect?tid=UA-97180334-1\u0026host=mskim.me\u0026page=/careers/data-engineer\n\n## Development\n\n### Requirements\n\n- `Node.js@^8`\n\n### 1. Install dependencies\n\n```bash\n$ npm install now@^15 --global\n```\n\n### 2. Run development server\n\n```bash\n$ now dev\n```\n\n### 3. Deploy to the internet world\n\n```bash\n$ now\n```\n\n## Contributions\n\nIssues and PRs are welcome. Do not hesitate to do it. Please do.\n\n## LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmskims%2Fnotion-ga","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmskims%2Fnotion-ga","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmskims%2Fnotion-ga/lists"}