Goatcounter stopped working #1569
-
Checklist
How did you create the site?Generated from DescriptionHello, dear all. Thanks a lot in advance. Operations you have already tried
Anything else?No response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
No much to share but here are some insights.
token=
api=https://kungfux.goatcounter.com/api/v0
curl -X POST "$api/count" \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $token" \
--data '{"no_sessions": true, "hits": [{"path": "/about"}]}' |
Beta Was this translation helpful? Give feedback.
-
@unbreakabl3 Meanwhile, analytics can be fixed by adding a new section to configuration: # Web Analytics Settings
analytics:
google:
id: # fill in your Google Analytics ID
goatcounter:
id: # fill in your GoatCounter ID I would also recommend to leave existing analytics configuration untouched until major release. You may receive errors while trying to publish the site and it will require to override <!-- GoatCounter -->
<script
async
src="https://gc.zgo.at/count.js"
data-goatcounter="https://{{ site.analytics.goatcounter.id }}.goatcounter.com/count"
></script> |
Beta Was this translation helpful? Give feedback.
@unbreakabl3 Meanwhile, analytics can be fixed by adding a new section to configuration:
I would also recommend to leave existing analytics configuration untouched until major release.
You may receive errors while trying to publish the site and it will require to override
_includes/analytics/goatcounter.html
by creating this file: