-
-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Description
Implement analytics tracking via Plausible (or GoatCounter as fallback) for understanding user behavior and documentation gaps.
Deliverable
Full analytics integration ready to be enabled on command. Users can toggle analytics on/off with a single config change.
Acceptance Criteria
-
docs-plan-analytics.mdreviewed and approved as the source of truth -
Plausible account created and
astrodraw.github.ioregistered as a site -
Head injection configured in
astro.config.mjs(commented out by default):- Script tag with
data-domain='astrodraw.github.io'and Plausible script src - Can be uncommented to enable tracking immediately
- Script tag with
-
Optional: Zero-result search tracking script created:
website/public/track-search.jswith Pagefind observer- Scaffolded but not active (requires uncomment in head config)
- Documents how Plausible custom events work
-
Privacy/GDPR documentation:
- PRIVACY.md created briefly stating no cookies, no consent banner needed
- Links to Plausible's privacy policy
- Added to footer
-
GoatCounter as fallback documented:
- If Plausible plan changes or budget issues arise, exact steps to switch provided
- Single config line change needed
-
Rollout plan documented:
- Who enables analytics and when (decision point: after public announcement)
- How to check Plausible dashboard
- How to interpret zero-result searches
-
All code merged but analytics disabled by default (no impact on site until explicitly enabled)
Related Plan Section
docs-plan-analytics.md (full analytics plan)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels