有使用不算子 busuanzi 给 hexo next 博客统计浏览的人吗?

2020-03-28 17:36:32 +08:00
 allAboutDbmss

我的博客基于 hexo next,本来访客数量统计是正常的。我对两个数字进行计数,total_visitors(uv 访客数)和 total_views(pv, 访问量)。

本来这两个数值统计都是好好的。但是从前天左右开始 total_visitors(uv 访客数)开始不正常。我自己用固定 IP 连续访问也会被重复计数,之前同一个行为不会被重复计数。不知道问题出在哪里?有同样疑惑的朋友们吗?


各个软件版本是:

hexo: 4.2.0 hexo-cli: 3.1.0 hexo next: v7.7.2

在最近的 next 版本中, busuanzi 已经被配置好,可以直接开箱使用:

# Show Views / Visitors of the website / page with busuanzi.
# Get more information on http://ibruce.info/2015/04/04/busuanzi
busuanzi_count:
  enable: true
  total_visitors: true
  total_visitors_icon: user
  total_views: true
  total_views_icon: eye
  post_views: false
  post_views_icon: eye

busuanzi 链接:

http://ibruce.info/2015/04/04/busuanzi/

https://busuanzi.ibruce.info/

2041 次点击
所在节点    问与答
3 条回复
whatsmyip
2020-03-28 20:36:23 +08:00
是不是关了第三方 cookie,我有一个同样功能的服务用的是 cookie 来确定 UV 的。如果 cookie 没问题,估计就是改算法了。
airyland
2020-03-28 20:58:25 +08:00
猜测有没有可能是受 chrome same site 影响。
allAboutDbmss
2020-03-29 00:47:28 +08:00
@airyland @whatsmyip
谢谢

的确是因为 same site 这玩意儿和 cookie 也类似

我进 chrome://flags/ 关掉了这个 same site,就正常了

大概是几天以前 chromo 自动更新,启用了 same site

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/657110

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX