-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blog: Reader counter #97
Comments
is this even possible without cookies (and without doing some shady persistent cookie-esque data storage)? |
You could use plausible to track visitors and ping their stats API to display visitor count. |
oh cool, this looks interesting. i'll look into this after #91 is done ^^ |
I created a proof of concept on the branch. it works, however we need to include a plausible api key. not sure how we handle client-side keys @janosh |
You can store secrets in netlify and then inject them using build-time env vars. They have to use the |
* #97 poc * #97 a bit cleaner * #97 added plausible api key to .env.example * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * refactor to async/await --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Janosh Riebesell <[email protected]>
Suggestion: Add a counter on blog post reflecting the (unique) readers it received
The text was updated successfully, but these errors were encountered: