An Introduction To Google Analytics 1198701588721690 4
An Introduction To Google Analytics 1198701588721690 4
An Introduction To Google Analytics 1198701588721690 4
www.queromedia.com
1. Introduction
2007
What is Google Analytics?
2005
2004
GA.js
urchin.js
Conventions
• GA = Google Analytics
• GATC = Google Analytics Tracking Code
Google Analytics advantages
• Free
• Sufficiant possibilities for most companies
• Easy to implement
• Easy to use
• Easy to understand
Google Analytics disadvantages
• Dashboard
• Add / remove
elements
• Personalized
Calendar
Reporting
• XML
• PDF
• CSV
• TSV
• Send now
• Schedule
3. Setup Google Analytics
• Create GA account on
customername@yourname.com
• Add info@yourname.com as administrator
• Add email@customername.com as
reviewer
• Advantage: structure
Sign up
• Login
• Create GA account
Get the GATC
• Old code
• Can still be used
<script src="http://www.google-analytics.com/urchin.js"
type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-123456-1";
urchinTracker();
</script>
</body>
</html>
GA.js
• New code
• New features not yet available
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." :
"http://www.");document.write("\<script src='" + gaJsHost + "google-analytics.com/ga.js'
type='text/javascript'>\<\/script>" );
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-123456-
1");pageTracker._initData();pageTracker._trackPaginaweergave();</script>
</body>
</html>
Host your own GATC
• Possible
• Not advised
• www.google.com/adwords as Administrator
Step 3: Tab Analytics
• Website URL
• Profile Name
• Time Zone
• Default Page
• Exclude parameters
• E-commerce website
• Search
GATC for different profiles
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-123456-1";
urchinTracker();
</script>
• Applied to profile
• Change data (forever!)
• Segmentation
• Business rules
• 2 sorts: predefined and
custom
• Test profile
How do filters work?
3 components
• Filter Type
• Filter Fields
• Filter Pattern
Filter data before
submitting it to GA DB
Multiple filters
• No problem
• Multiple filters applied to data
• Data output filter 1 is input filter 2
• Be careful !!!
• Wrong conclusions
Filterfields
• 37 fields
• Field = pageview attribute
• Regular fields and user defined fields
• Regular: request URI, hostname, referral,
page title, browser, IP address,...
• User defined: campaign name, source,
campaign term, e-commerce variables,...
Possible values for Filterfields
• 10 different types
• 3 predefined
• 7 custom
5.1 Exclude all traffic from a domain
5.2 Exclude all traffic from an IP address
• No RegEx !!!
• Changes data !!!
5.6 Uppercase / Lowercase filter
5.7 Lookup table filter
• Not available in GA
• Only old Urchin customers
• ~Search and replace filter
• Text file
5.8 Advanced filters
• Segment data
• _utmv cookie
• JavaScript function _utmSetVar()
• On pages tagged with GATC
• Applied to HTML attributes as onLoad(),
onChange(), onSubmit()
• Only 1 cookie per visitor (website)
Custom segmentation example
Custom segmentation code
<body onLoad=”javascript:_utmSetVar(‘member’);”>
<body onLoad=”javascript:_utmSetVar(‘customer’);”>
User Defined Values
RegEx
Regular expressions are used to match or capture portions of a field using
wildcards and metacharacters. They are often used for text manipulation tasks.
Most of the filters included in Google Analytics use these expressions to match the
data and perform an action when a match is achieved. For instance, an exclude
filter is designed to exclude the hit if the regular expression in the filter matches the
data contained in the field specified by the filter.
Regular expressions are text strings that contain characters, numbers, and
wildcards. Note that these wildcard characters can be used literally by escaping
them with a backslash '\'. For example, when entering www.google.com, escape
the periods with a backslash: www\.google\.com
RegEx
More: http://en.wikipedia.org/wiki/Regex
7. Goals
• Conversions ?
• Conversion rate
• Reports
• Success of site
• “Thank you” page
• Max. 4 per profile
• Contact – buy – download - register
Setting up goals
Goals howto
• Match type
• Goal value
• Choose good name
• Unique “thank you” page per conversion
• Keep track of filters
Goals visualisation (1)
Goals visualisation (2)
Funnels
• Extension of goals
• Predefined steps
• Track conversion process
• Required steps ?
Funnel visualisation
8. E-commerce tracking
• Not accounting
• Use it to find trends
• No absolute figures !!!
Implementing E-commerce tracking
• Change GATC
<script src="http://www.google-analytics.com/urchin.js"
type="text/javascript">
</script>
<script type="text/javascript">
_uacct="UA-xxxx-x";
_udn="none";
_ulink=1;
urchinTracker();
</script>
Multi-domain tracking urchin.js (2)
<script type="text/javascript">
document.write('<a href="javascript:__utmLinker(\'
https://www.secondsite.com/?login=parameters\');">Log in
Now</a>');
</script>
<noscript>
<a href=" https://www.secondsite.com/?
login=parameters ">Log in Now</a>
</noscript>
Multi-domain tracking GA.js (1)
• Change GATC
• Creating pageviews
• Using UrchinTracker()
• Pageviews in reports
• Naming !
<a href="http://www.otherdomain.com"
onClick="javascript:urchinTracker('/outbound/otherdomain');">
Tips & Tricks: Tagging inbound links
http://www.website.com/pagina.html
http://www.website.com/pagina.html?utm_source=partner&utm_medium=banner&
utm_campaign=nl&utm_term=zoekwoord
• Adjust cookies
• ~Google AdWords auto-tagging
• Not all parameters are required
10. Conclusion
11. Roundup