谷歌分析如何收集其数据? [英] How does google analytics collect its data?

查看:275
本文介绍了谷歌分析如何收集其数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是的,我知道您必须将Google Analytics(分析)JavaScript嵌入到您的网页中。



但收集到的信息是如何提交给Google分析服务器的?



例如,由于浏览器的安全设置(跨域脚本),AJAX请求将不可能实现。



已经看到令人困惑的谷歌JavaScript代码?

解决方案

当html页面请求ga.js文件时,http协议发送大量数据,关于IP,参考,浏览器,语言,系统。没有必要使用ajax。

但是仍然有一些数据不能用这种方式实现,所以GA脚本会将图像添加到带有附加参数的html中,请看这个示例:



http://www.google-analytics.com/__utm.gif?utmwv=4.3&utmn=1464271798&utmhn=www.example.com&utmcs=UTF-8&utmsr=1920x1200&utmsc=32-bit& ; utmul = zh-cn&utmje = 1& utmfl = 10.0%20r22& utmdt = Page title& utmhid = 1805038256& utmr = 0& utmp = /& utmac = cookie值

这是一张空白图片,有时称为跟踪像素,GA放入HTML中。


Yes, I know you have to embed the google analytics javascript into your page.

But how is the collected information submitted to the google analytics server?

For example an AJAX request will not be possible because of the browsers security settings (cross domain scripting).

Maybe someone had already a look at the confusing google javascript code?

解决方案

When html page makes a request for a ga.js file the http protocol sends big amount of data, about IP, refer, browers, language, system. There is no need to use ajax.

But still some data cant be achieved this way, so GA script puts image into html with additional parameters, take a look at this example:

http://www.google-analytics.com/__utm.gif?utmwv=4.3&utmn=1464271798&utmhn=www.example.com&utmcs=UTF-8&utmsr=1920x1200&utmsc=32-bit&utmul=en-us&utmje=1&utmfl=10.0%20r22&utmdt=Page title&utmhid=1805038256&utmr=0&utmp=/&utmac=cookie value

This is a blank image, sometimes called a tracking pixel, that GA puts into HTML.

这篇关于谷歌分析如何收集其数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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