是否从页面preloading内容歪曲我的谷歌Analytics(分析)的统计? [英] Does preloading content from a page skew my google analytics stats?

查看:94
本文介绍了是否从页面preloading内容歪曲我的谷歌Analytics(分析)的统计?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想写出自己的使用AJAX来加载从每一页的内容在我的主导航栏到当前页面上的隐藏分区一个简单的脚本。

I'd like to write myself a simple script that uses AJAX to load the content from each page on my main navbar into a hidden div on the current page.

这就是让我可以preLOAD尽可能多的我,尽可能把它缓存在用户的计算机(希望如此),他们已经完成了对当前页面之前,想要继续前进的重要内容。

This is just so that I can preload as much of my important content as possible and get it cached on the user's computer (hopefully) before they've finished with the current page and want to move on.

我很担心,这样做工地上的每一个页面请求,每次有人访问,真的会毁了我的谷歌分析统计的有效性。

I'm concerned that doing a request for every page on the site, every time someone visits, will really ruin the validity of my google analytics stats.

如何AJAX与谷歌分析互动?这是否算作页游?

How does AJAX interact with google analytics? Does it count as a "page visit"?

推荐答案

如果您检索每个页面而不运行嵌入的脚本,那么谷歌Analytics(分析)code将不会运行,它不应该算作一个页面视图。检索每个页面(即不​​插入内容到一个隐藏分区)后,我建议不要做与code什么。

If you retrieve each page without running the embedded script, then the Google Analytics code would not be run and it should not count as a page view. I suggest not doing anything with the code after retrieving each page (i.e. not inserting the content into a hidden div).

这篇关于是否从页面preloading内容歪曲我的谷歌Analytics(分析)的统计?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆