Skip to content

Integration of One Dollar Stats #784

@p0fi

Description

@p0fi

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: true

Implementation Details

  • Add a build-time hook to conditionally inject:

    • In HTML head: <script defer src="https://assets.onedollarstats.com/stonks.js"></script>
  • Ensure:

    • No injection during local development unless explicitly enabled.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions