Repository navigation
Add cookieless PostHog analytics - #75
Conversation
…ents Page views, searches, filters, listing opens, install-command copies and outbound link clicks, each tagged with the tool. No cookies or local storage, no session recording, Do Not Track and Global Privacy Control respected. CSP allows only PostHog's EU hosts. The About FAQ says what is collected.
OpenRoot ReviewConfidence score: 3/5 · Review incompleteThe review could not complete for any part of the diff, so no findings were produced. Comment SummaryAdds cookieless PostHog analytics to the ToolIndex site. A new site/analytics.js module sends privacy-safe events (page views, searches, filter changes, tool opens, copies, outbound clicks) to the EU PostHog cloud, honoring Do Not Track / Global Privacy Control and avoiding cookies, local storage, autocapture, and identification. CSP headers in backend/server.js, script publishing in scripts/publishing.py, and the script include in site/layout.html are updated to load the analytics client only on toolindex.org. ❌ Review failed — click for detailsThe code review could not complete for any reviewed chunk. No findings were returned. Stage: Code review Comment
|
Adds anonymous visitor analytics with PostHog (EU cloud, project Toolindex).
search_performed(query, result count),filter_changed,listing_opened(tool, position, active search and filters),install_command_copied,badge_code_copied,outbound_link_clicked(tool, link kind: install, repository, docs, release, website). Every event on a tool page carriestool_id, category and type.cookieless_mode: 'always'with server-side daily hashing, no cookies or local storage, no autocapture, no session recording, no identification. Skipped when the browser sends Do Not Track or Global Privacy Control. Runs only on toolindex.org.https://eu-assets.i.posthog.comto script-src andhttps://eu.i.posthog.comto connect-src.Tested locally against the PostHog project: all event types arrive with the right properties, no console errors.