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

Update GoatCounter analytics #233

Merged
merged 1 commit into from
Oct 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions content/posts/analytics/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,16 @@ Warning: When adding analytics, you should consider local legislation to see if

[GoatCounter](https://www.goatcounter.com/) is the most complete, simple and privacy friendly analytics method supported in Toha. Its script tracks the most viewed pages, total number of users, devices, and much more, all while being open source!

To enable GoatCounter analytics in your site, you have to sign in at [goatcounter.com](https://www.goatcounter.com) and obtain a code for your site. Then, you have to add `analytics` section under `params.features` section of your `config.yaml` file as below:
To enable GoatCounter analytics in your site, you have two options: one is to sign in at [goatcounter.com](https://www.goatcounter.com) and obtain a code for your site, the second is to self-hosted an instance of GoatCounter. Then, you have to add `analytics` section under `params.features` section of your `config.yaml` file as below:

```yaml
params:
features:
analytics:
enabled: true
goatCounter:
code: <your goat counter code>
code: <your GoatCounter code> # Not self-hosted
instance: <your GoatCounter instance url> # For self-hosted you should use only one of the two methods
```

### counter.dev
Expand Down
Loading