Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不蒜子在 Chrome 85 版本后所有页面统计是同一个数据 #376

Closed
YinAoXiong opened this issue Nov 17, 2020 · 3 comments
Closed

Comments

@YinAoXiong
Copy link
Contributor

YinAoXiong commented Nov 17, 2020

问题描述

在新的规范中Referrer-Policy 并没有延续 Referer这个拼写错误,所以不蒜子源码中的scriptTag.refererPolicy = "no-referrer-when-downgrade",会出现设置无效的问题。
同时由于chrome系列浏览器在85这个版本后Referrer-Policy默认值从no-referrer-when-downgrade改为strict-origin-when-cross-origin。这导致了不蒜子的页面统计功能失效。

修复方法

  1. 全局修改 Referrer-Policy
<meta name="referrer" content="no-referrer-when-downgrade">
  1. config 文件中使用修改过后的不蒜子js
 busuanzi: https://cdn.jsdelivr.net/gh/YinAoXiong/busuanzi@2.3.0/
  1. 等待原作者修复,已发邮件告知原作者
@zkqiang
Copy link
Member

zkqiang commented Nov 23, 2020

这个还是等待不蒜子的开发者修复,其他人可以先按照楼主的方式临时修复

@zkqiang zkqiang changed the title 不蒜子 页面统计在chrome 系列 85 后无效 不蒜子在 Chrome 85 版本后所有页面统计是同一个数据 Nov 23, 2020
@stevenjoezhang
Copy link

stevenjoezhang commented Nov 23, 2020

原作者在今天早些时候修复了这个问题,现在除了 Safari 之外大部分浏览器应该都可以正确加载了

Safari 如果开了阻止跨站跟踪,那么暂时无解

@zkqiang
Copy link
Member

zkqiang commented Nov 23, 2020

@stevenjoezhang 感谢同步信息

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants