Skip to content

feat: add gtag analytics to star-tracker#58

Merged
wavekat-eason merged 1 commit into
mainfrom
feat/star-tracker-gtag
May 17, 2026
Merged

feat: add gtag analytics to star-tracker#58
wavekat-eason merged 1 commit into
mainfrom
feat/star-tracker-gtag

Conversation

@wavekat-eason
Copy link
Copy Markdown
Contributor

Summary

  • Inject the G-P2YBZ0W8HQ gtag snippet into the shell() template so it fires on every star-tracker HTML page (landing, dashboard, /:slug, /:slug/:repo).
  • Per-org and per-repo hits will show up automatically in GA4's Pages and screens report keyed by URL path — no custom dimensions needed.

Note: this only covers HTML page views. Embedded chart.svg fetches (the high-volume traffic from READMEs) are not tracked — that would need server-side logging in the Worker.

Test plan

  • Deploy preview, load /, /wavekat, /wavekat/wavekat-voice and confirm collect requests to google-analytics.com fire with the right dl (page_location).
  • Confirm Realtime in GA4 shows the visit.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@wavekat-eason wavekat-eason merged commit 5441af3 into main May 17, 2026
4 checks passed
@wavekat-eason wavekat-eason deleted the feat/star-tracker-gtag branch May 17, 2026 07:48
@github-actions
Copy link
Copy Markdown
Contributor

wavekat-eason pushed a commit that referenced this pull request May 17, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.0.22](wavekat-com-v0.0.21...wavekat-com-v0.0.22)
(2026-05-17)


### Features

* add favicon to star-tracker
([#60](#60))
([4075b41](4075b41))
* add gtag analytics to star-tracker
([#58](#58))
([5441af3](5441af3))
* add lite audience analytics to star-tracker
([#61](#61))
([2e4b975](2e4b975))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant