谷歌分析是否对下载静态网页有重大影响? [英] does Google analytics make a major effect on time to download a static web page?
问题描述
据我所知,通过简单地将脚本添加到html文档主体标记的末尾,可以通过Google分析处理它。我的问题是,这可能会对性能(下载时间和服务器负载)有很大影响?我们假设一个由IIS提供的100k的静态页面。感谢。
I understand that by simply adding a script to the end of the body tag of a html document one makes it processable by Google analytics. My question is, is this likely to have much effect on performance (download time and server load)? Let's assume a static page of say 100k served by IIS. Thanks.
推荐答案
Will my website's appearance or performance be affected by Google Analytics?
您的网站外观不会因使用
Google Analytics(分析)而受到影响 - 我们不会在您的网页上放置任何
图片或文字。
同样,您的
页面的性能不会受到影响,您可以在添加
跟踪后的
例外情况下首先执行
页面加载码。第一个浏览页面
会调用Google的
服务器上的JavaScript,这可能比常规页面加载稍长
。
后续综合浏览量将使用缓存数据,不会受到影响。
The appearance of your website will never be affected by your use of Google Analytics - we don't place any images or text on your pages. Likewise, the performance of your pages won't be impacted, with the possible exception of the very first page-load after you have added the tracking code. This first pageview calls the JavaScript on Google's servers, which may take slightly longer than a regular page load. Subsequent pageviews will use cached data and will not be affected.
请务必注意互联网上的许多网站使用同一个位于Google服务器上的相同的Javascript,所以很少有新用户来到您的网站,而没有将这个文件缓存在本地。
It's important to note that many websites on the internet use the same Javascript from the same location on Google's servers, so only rarely will a new user come to your site without already having that file cached locally.
这篇关于谷歌分析是否对下载静态网页有重大影响?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!