谷歌分析对下载静态网页的时间有重大影响吗? [英] does Google analytics make a major effect on time to download a static web page?

查看:20
本文介绍了谷歌分析对下载静态网页的时间有重大影响吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道只需在 html 文档的 body 标签末尾添加一个脚本,就可以让 Google 分析对其进行处理.我的问题是,这是否可能对性能(下载时间和服务器负载)有很大影响?让我们假设一个静态页面,比如 100k 由 IIS 提供服务.谢谢.

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.

推荐答案

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屋!

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