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: 3 comments 12 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 IDI 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.
-
|
Apparently, the problem persists because simply specifying the ID in Am I correct in understanding that the ID is the first part of the goatcounter URL (the Account name during registration?) I just couldn't find any ID on the GoatCounter website. |
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.htmlby creating this file: