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

您好,请修改README文件 #3

Open
SimoralX opened this issue Jan 7, 2019 · 0 comments
Open

您好,请修改README文件 #3

SimoralX opened this issue Jan 7, 2019 · 0 comments

Comments

@SimoralX
Copy link

SimoralX commented Jan 7, 2019

  1. 我注意到源代码options里有配置如下:
    autoPageview

  2. 但是README.md里面options说明没有这段话:
    README.md里的options

  3. 百度统计官方文档

_hmt.push(['_setAutoPageview', false]);
_hmt.push(['_trackPageview', '/new/path/new/name']);

在例子中,我们首先使用了_setAutoPageview接口关闭了自动PV跟踪,然后使用了_trackPageview接口来发送新的PV统计请求。

这样在页面被访问时,记入PV的就不是原URL了,而是您指定的新的URL。

请注意上述代码最好能够加在页头标签前,至少要保证位于百度统计分析代码的前面。

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

1 participant