Skip to content

Commit

Permalink
Update GoatCounter analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
hossainemruz authored Oct 31, 2023
2 parents eabe82d + ab00a4f commit 854dae7
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit 854dae7

Please sign in to comment.