跳到主要内容

访问统计

阅读量来自 GoatCounter:不使用 Cookie,不收集个人信息;同一访客短时间内重复访问只计一次。实时数据约 4 小时刷新一次。

尚未启用访问统计

阅读时间和字数已经可用。启用 GoatCounter 后,这里会显示阅读量、排行、趋势和来源。

  1. 在 goatcounter.com 免费注册,记下站点代码(<code>.goatcounter.com)。
  2. 在 GoatCounter 的 Settings 中勾选 Allow adding visitor counts on your website。
  3. 在 GitHub 仓库 Settings → Secrets and variables → Actions → Variables 中添加 GOATCOUNTER_CODE。
  4. 可选:在 GoatCounter 创建 API 令牌,添加为 Secret GOATCOUNTER_TOKEN,即可显示趋势、来源、浏览器和地区分析。