Skip to content
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

Feature Request - Add Page View Counter Section to Posts #915

Open
mustafabayar opened this issue Mar 30, 2024 · 0 comments
Open

Feature Request - Add Page View Counter Section to Posts #915

mustafabayar opened this issue Mar 30, 2024 · 0 comments
Labels

Comments

@mustafabayar
Copy link

Describe the solution you'd like

Toha supports analytics, which is great.
Is it also possible to add a page view counter section to the posts?
Maybe would be nice to add next to the reading time indicator, like:
Saturday, March 30, 2024 | 🕧 8 minutes | 👁 42

Describe alternatives you've considered

We can return the count by sending HTTP call to goatcounter such as:
https://app-name.goatcounter.com/counter//posts/post-url.json and using this as a script I guess I can insert into layouts/_default/single.html, but if I modify the default, it means I would also miss all the future updates to theme.
So would be nice if this can be added as a feature that can be toggled via config.yaml

Additional context

N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants