谷歌分析如何收集数据

谷歌分析如何收集数据

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

问题描述

是的,我知道您必须将 google 分析 javascript 嵌入到您的页面中.

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?

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

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

也许有人已经看过令人困惑的 google javascript 代码?

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

推荐答案

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

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.

但是还是有些数据无法通过这种方式实现,所以GA脚本将图片放入带有附加参数的html中,看看这个例子:

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=2fl2&utmje=1;utmdt=Page title&utmhid=1805038256&utmr=0&utmp=/&utmac=cookie 值

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

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

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

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

09-05 16:53