-
Notifications
You must be signed in to change notification settings - Fork 215
Open
Description
Summary
Add a native integration with OneDollarStats to provide simple, privacy-friendly, and affordable web analytics for static sites built with this framework.
Motivation
- Static sites need lightweight analytics without complex setup.
- OneDollarStats focuses on privacy (no cookies, GDPR-friendly) and simplicity, aligning well with static-site philosophy.
- Affordable pricing and low overhead make it attractive for hobby projects, blogs, and small business sites.
Proposed Solution
- Provide an official plugin/integration that:
- Injects the OneDollarStats tracking script into built pages.
- Supports per-environment configuration (disable in development).
Configuration Example
integrations:
onedollarstats:
enabled: trueImplementation Details
-
Add a build-time hook to conditionally inject:
- In HTML head:
<script defer src="https://assets.onedollarstats.com/stonks.js"></script>
- In HTML head:
-
Ensure:
- No injection during local development unless explicitly enabled.
References
- OneDollarStats: https://onedollarstats.com/
Metadata
Metadata
Assignees
Labels
No labels