Skip to content

Add cookie-free visit statistics with GoatCounter - #9

Merged
xtofalex merged 1 commit into
mainfrom
goatcounter
Oct 16, 2026
Merged

xtofalex merged 1 commit into
mainfrom
goatcounter

Conversation

@xtofalex

Copy link
Copy Markdown
Contributor

Adds visit statistics with GoatCounter. It sets no cookies and stores no personal data, so the site needs no cookie banner. Dashboard (private, login required): https://keplertech.goatcounter.com

What is counted:

  • page views, with referrers, countries, browsers, systems and screen sizes
  • clicks on links to other sites (GitHub, PyPI, talks, LinkedIn), as events named after the link
  • clicks on the pip install najaeda Copy button, as the event copy-pip-install

Changes:

  • site/count.js: GoatCounter's script, served from this site instead of gc.zgo.at
  • site/index.html: loads it and counts outbound clicks
  • netlify.toml: CSP allows img-src and connect-src to keplertech.goatcounter.com only
  • README.md: where the stats are and how to update count.js

Visits from localhost and file:// are not counted, so check it on the deploy preview: the browser network tab should show a request to keplertech.goatcounter.com/count with no CSP error.

🤖 Generated with Claude Code

Counts page views, clicks on links to other sites and the pip install
copy button. count.js is served from the site; the CSP allows only the
count requests to keplertech.goatcounter.com.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@netlify

netlify Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for keplertech-io ready!

Name Link
🔨 Latest commit 59ebd80
🔍 Latest deploy log https://app.netlify.com/projects/keplertech-io/deploys/6ad1d083f80c94ab7e3dfddd
😎 Deploy Preview https://deploy-preview-9--keplertech-io.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@xtofalex
xtofalex merged commit 01992dc into main Oct 16, 2026
5 checks passed
@xtofalex
xtofalex deleted the goatcounter branch October 16, 2026 07:24
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