allAboutDbmss
V2EX  ›  问与答

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

  •  
  •   allAboutDbmss · Mar 28, 2020 · 2629 views
    This topic created in 2259 days ago, the information mentioned may be changed or developed.

    我的博客基于 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 replies    2020-03-29 00:47:28 +08:00
    whatsmyip
        1
    whatsmyip  
       Mar 28, 2020
    是不是关了第三方 cookie,我有一个同样功能的服务用的是 cookie 来确定 UV 的。如果 cookie 没问题,估计就是改算法了。
    airyland
        2
    airyland  
       Mar 28, 2020 via iPhone
    猜测有没有可能是受 chrome same site 影响。
    allAboutDbmss
        3
    allAboutDbmss  
    OP
       Mar 29, 2020
    @airyland @whatsmyip
    谢谢

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

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

    大概是几天以前 chromo 自动更新,启用了 same site
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1084 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 18:29 · PVG 02:29 · LAX 11:29 · JFK 14:29
    ♥ Do have faith in what you're doing.