V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
allAboutDbmss
V2EX  ›  问与答

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

  •  
  •   allAboutDbmss · 2020-03-28 17:36:32 +08:00 · 2029 次点击
    这是一个创建于 1488 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我的博客基于 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/

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

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

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

    大概是几天以前 chromo 自动更新,启用了 same site
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4491 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 04:06 · PVG 12:06 · LAX 21:06 · JFK 00:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.