Dealing with GA(I)
1. Introduction from GA
1.1 Overview
Tracking Code Overview
Send all the informations to the Analytics server via a list of parameters attached to a single-pixel image request.
How Does GA Collect Data
The HTTP request
Browser/system information
hostname, the browser type, referrer, language
First-party cookies
How the Tracking Code Works
How GIF Requests Are Classified
requestType
Page
Event
Transaction
Item
Var
1.2 Tracking Code
Tracking Site Activity
Ecommerce Tracking
Event Tracking
Cross-Domain Tracking
Traffic Source
Visitor Configuration
GA javascript is in mess http://www.google-analytics.com/ga.js
Urchin 7 vs GA
2. implementation
visit http://www.google.cn/intl/en/analytics/
click 'Access Analytics'
click 'Analytics Configuration' ------> 'create new configuration file'-----> type your domain name
The GA javascript code:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'xxxxxxxx']); // This is your GA number
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
Add these javascript block to my website. I changed my /var/www/index.html file from apache2.
references:
http://code.google.com/intl/zh-CN/apis/analytics/docs/
http://code.google.com/intl/en/apis/analytics/docs/
http://xiaolithinking.blogbus.com/logs/41170954.html
1. Introduction from GA
1.1 Overview
Tracking Code Overview
Send all the informations to the Analytics server via a list of parameters attached to a single-pixel image request.
How Does GA Collect Data
The HTTP request
Browser/system information
hostname, the browser type, referrer, language
First-party cookies
How the Tracking Code Works
How GIF Requests Are Classified
requestType
Page
Event
Transaction
Item
Var
1.2 Tracking Code
Tracking Site Activity
Ecommerce Tracking
Event Tracking
Cross-Domain Tracking
Traffic Source
Visitor Configuration
GA javascript is in mess http://www.google-analytics.com/ga.js
Urchin 7 vs GA
2. implementation
visit http://www.google.cn/intl/en/analytics/
click 'Access Analytics'
click 'Analytics Configuration' ------> 'create new configuration file'-----> type your domain name
The GA javascript code:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'xxxxxxxx']); // This is your GA number
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
Add these javascript block to my website. I changed my /var/www/index.html file from apache2.
references:
http://code.google.com/intl/zh-CN/apis/analytics/docs/
http://code.google.com/intl/en/apis/analytics/docs/
http://xiaolithinking.blogbus.com/logs/41170954.html