Analytics PPT For Traffic Source

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 67

Locating Google Analytics Acquisition Reports

There are 10 separate reporting sections under


Acquisition in your website’s Google Analytics
profile.
The Acquisition section tells you where your
visitors originated from, such as search engines,
social networks or website referrals. This is a key
section when determining which online
marketing tactics are bringing the most visitors
to your website
#1: Overview
The Acquisition Overview gives you a quick view of the top channels sending
visitors to your website, as well as the associated acquisition, behavior and
conversions details for each channel.
Traffic Sources overview report

If you have Google Analytics goals set up, the Acquisitions Overview report will show
you how well each channel drives conversions

Below is a list and short descriptions of the top channels Google Analytics uses to track
your traffic sources.
Organic Search—Visitors who come to your website after searching Google.com and other
search engines

Paid Search—Visitors who come to your website from an AdWords or other paid search ad

Direct—Visitors who come to your website without a traceable referral source, such as typing
your URL into their address bar or using a bookmark on their browser

Referral—Visitors who come to your website from another website by clicking on a link

Social—Visitors who come to your website from a social network

Other—If you use UTM parameters for custom campaign tracking, the traffic linked to those
campaigns is listed here
#2: Channels

The Channels section is similar to the Acquisition Overview, except it gives you a
graph to go along with the acquisition, behavior and conversions details.

You can click any of the channel links to see related standard reports with
more details.
Organic
. Search takes you to the Keywords report; Direct takes you to the top
landing pages for direct visitors; Referral takes you to your top referring
websites and Social takes you to your top-referring social networks.
#3: All Traffic

All Traffic lists your top traffic sources from all channels combined. Instead of
separating search engines from social networks from referral websites, they are all
listed based on the number of visitors they sent to your website.
Getting the most from your Google Analytics

Traffic Sources referrals report

The All Traffic section lets you


quickly analyze where most of your
traffic comes from—it may be a
particular search engine, a
publication you contribute to or even
a directory you advertise with.
Content reports
• Overview reports gives an at-a-glance view of pageview
metrics—designed to help you improve content
• Site Content—how frequently each page is viewed
observe how visitors view pages e.g. in Landing page report identify those with high bounce
rates, may need rewritten to be more effective

• Site Speed—page load times


observe how any page that is excessively slow when being downloaded

• Site Search—metrics if Analytics tracking internal searches


observe search terms visitors are using and relevance

• In-Page Analytics—visualise how users interact with your


web pages
Content In-Page Analytics report
Getting the most from your Google Analytics

Reference material
• Overview on wikipedia:
http://en.wikipedia.org/wiki/Google_analytics

• Official Google site:


http://www.google.com/analytics/

• Google support:
http://support.google.com/analytics/

• Google analytics blog—official blog for Google Analytics


tips, tricks and news:
http://analytics.blogspot.co.uk/

• Google analytics youtube channel:


http://www.youtube.com/user/googleanalytics/videos
Getting the most from your Google Analytics

Getting the most out of Google Analytics

• What do you want visitors to achieve on your site


• Set your goals
• Once set, they enable GA to track all traffic data into
information you can quickly monitor and take action
Getting the most from your Google Analytics

Set your goals

• Request for admissions information


• How engaged visitors are around feature stories and other
areas that require significant investment to create and
maintain
• Visits to information pages about an event promotion
• Registrations to advertised events
• Alumni engagement via an online giving form
• Students signing up for a text alert service or paying a
deposit online
Getting the most from your Google Analytics

Admin—Goals

• Set up a goal within Admin, choose the Profile you want to


add the goal, select Goals, select +Goals
• Within each profile, can create 4 sets of goals, each
containing up to 5 goals
if more goals required, an additional profile will need to be created

• Specify a name for the goal and choose to make that goal
active or inactive
• Four different types of goals

http://support.google.com/analytics/bin/answer.py?hl=en&answer=1032415
Getting the most from your Google Analytics

Admin—Goals

• URL destination—see how frequently visitors abandon their


way and where they go to
specify the goal page—could be a thank you page when a donation received
match type menu—Exact Match, Head Match, Regular Expression Match
optional—set up a Goal funnel that represents a path (a series of pages) you expect a visitor
to take on their way to a goal
note: within a goal set, it is possible to set up multiple paths to same destination—see which
path is the most successful or highest bounce rate

http://support.google.com/analytics/bin/answer.py?hl=en&answer=1116091
Getting the most from your Google Analytics

Admin—Goals

• Visit duration
specify hours, minutes, seconds that occurs for a time lapsed on a visit

• Pages/Visit
specify a number of pages visited

• Event
used with Event tracking to track activity such as a file download
configure a combination of one or more event conditions (category, action, label, value)

http://support.google.com/analytics/bin/answer.py?hl=en&answer=1033068
Getting the most from your Google Analytics

Admin—Goals

depending on goal
type selected, different goal details
to be supplied
Getting the most from your Google Analytics

Reporting—Conversions
When goal is reached, GA calls this a
conversion
Monitor your goals—view path to each
goal, visualise funnel conversion rate,
goal flow
Ability to optimise value of ecommerce
activity
View impact of all online marketing
activities including search, social, email
in multi-channel funnels reports

http://www.google.com/analytics/features/conversion-suite.html
Getting the most from your Google Analytics

Conversions > Goals

• Overview—default report, shows number of goals and value


• Goal URLs
view graph of all completed goals and table displays URL when goal completed

• Reverse goal path


shows URLs of three previous steps that visitors used before conversion

• Funnel Visualisation
funnel showing the route of all traffic to conversion—displays URLs visitors took when
abandoning route to goal and percentage of those who progressed to conversion

• Goal flow
flow visualises the path from where visitors came from, through different pages towards the
conversion and table displays percentage from source
Getting the most from your Google Analytics

Reporting—Conversions

• Added benefit—Google measures what has brought traffic


to your site from other sources during last 30 days
• Detects channels that send traffic to your site
all search engines
referrals (like from social media sources)
visits that people have previously bookmarked
direct—types site’s URL into the browser
social media traffic
custom campaigns you’ve previously setup

http://support.google.com/analytics/bin/answer.py?hl=en&answer=1033867
https://support.google.com/analytics/bin/answer.py?hl=en&answer=1191180&topic=1191164
Getting the most from your Google Analytics

Suggested actions

• Identity what you want visitors to achieve


• Set up corresponding goals
• If you’ve set up paths, check effectiveness of the pages
visitors took through goal funnel
• View channels visitors are taking to make a conversion
Getting the most from your Google Analytics

Getting the most out of Google Analytics

• Analyse and refine your reports


make use of advanced segments
visualise data differently
add annotations to remind you of key reasons for traffic changes or changes made to the site
use profiles to filter data e.g. remove your internal network traffic from the rest of the data
check up on change history
Getting the most from your Google Analytics

Analyse your traffic—advanced segments

• Analyse specific kinds of traffic as you go through reports


view data only for a particular segment or compare data side-by-side with data from other
segments e.g. ‘New Visitors’ with ‘Returning Visitors’

• Create a custom segment for you to analyse your traffic


identify the dimensions and metrics you want to select e.g. only traffic for a certain region

• Select up to four segments to compare


displays results within graph, examine historical data (even if segment just created)

• Adjust sample size tool—controls the subset of data to be


used when building a report
slider used to select less for faster processing or more for higher precision

http://www.google.com/analytics/features/advanced-segments.html
Getting the most from your Google Analytics

Analyse your traffic—advanced segments


Getting the most from your Google Analytics

Analyse your traffic—advanced segments


Getting the most from your Google Analytics

Visualise data
• Within tables of data—select other dimensions, add second
dimension to compare with same metrics
search the table for a particular word and continue with more advanced search

• Use different selectors


Percentage—displays data in percentage and in a pie chart
Performance—displays data in bar chart against a different metric
Comparison—shows an at-a-glance view of what outperform/underperforms site average
e.g. in Audience > Location, select City, select comparison and compare visits with bounce rate
(with site average)
Pivot—rearrange data in a table to compare groups of data against each other e.g. to find
out the bounce rate and pageviews for each keyword in Traffic > Search > Organic, select Pivot
selector, pivot by source, from Pivot metrics menus select Bounce rate and Pages/Visit
Term cloud—only available in some reports showing a keyword cloud

https://support.google.com/analytics/bin/answer.py?hl=en&answer=1010052&topic=1009682
Getting the most from your Google Analytics

Visualise data

filter search results


view other dimensions
search data
select view from
different selectors
add second dimension to
compare with other metrics

select heading to sort


Getting the most from your Google Analytics

Annotations

• easily add personalised notes to record anything of interest


against a specified date
reason for an increase in traffic
when a new section added
a specific blog item published
when marketing campaign was started
Getting the most from your Google Analytics

Profiles—filtering data

Set up new profiles to filter data for a


web property (e.g. for a set of pages)
Manage profiles from within Admin

http://support.google.com/analytics/bin/topic.py?hl=en&topic=1032939&parent=1726911
Getting the most from your Google Analytics

Profiles—filtering data

• Always keep one unfiltered profile so that all data is


available for a web property
• Create a new profile for the property
• Set up a new filter—using pre-defined or your own custom
pre-defined—allows you to exclude (or include only)
traffic from the domain
traffic from the IP addresses
traffic to the subdirectories
traffic to the hostname
custom—select your own filter field

http://support.google.com/analytics/bin/answer.py?hl=en&answer=1033162
Getting the most from your Google Analytics

Suggested actions

• Use advanced (or set up your own) segments to compare


data side-by-side
• Make use of selectors to visualise data better
• Add annotations to remind you of variations of activity or
site enhancements
• Use profiles to filter traffic (esp. for administrators, so that
academics can see their own pages)
Getting the most from your Google Analytics

Getting the most out of Google Analytics

• Minimise effort
Use the dashboards to group together relevant reports
Schedule emails to key staff
Create your own reports
Use shortcuts
Consider using Share Assets
Getting the most from your Google Analytics

Dashboards

• Lets you display various statistics on a single page


allowing you to monitor a number of different areas at once

• Default dashboard consists of seven widgets


displays dimensions and metrics e.g. Daily visits, Average time on site, Total goal conversion
rate, Traffic types, Time on site by country, Conversion rate by source, Mobile visits

• Add/edit/delete a widget in a format and data of your choice


Metric—select individual metric
Pie chart—select metric, dimension and number of slices
Timeline—select primary metric and optional comparative metric
Table—select dimensions, up to two metric & number of rows

https://support.google.com/analytics/bin/answer.py?hl=en&answer=1068216&topic=1068215&rd=1
Getting the most from your Google Analytics

Dashboards

• Use ‘ADD TO DASHBOARD’ at the top of any report to add it


to a specific report
• When dashboard is created, only visible in the user account
in which it was created
• Can email dashboard configuration with others—to be used
on data for other web properties
social media dashboard
site performance

http://www.google.com/analytics/learn/solutions-gallery.html
Getting the most from your Google Analytics

select title to go to

Dashboards report, hover over title to see


icons to edit or delete

create and
customise
a dashboard
Getting the most from your Google Analytics

Schedule emails

• Schedule emails containing attachments of reports to go to


key staff once, daily, weekly, monthly, quarterly
• Different formats—CSV, TSV, Excel, PDF
• Select the day for report delivery
• Maintain scheduled emails in Admin

http://support.google.com/analytics/bin/answer.py?hl=en&answer=1038573
Getting the most from your Google Analytics

Create users

http://support.google.com/analytics/bin/answer.py?hl=en&answer=1699665&topic=1009690&ctx=topic
Getting the most from your Google Analytics

Customisation—creating your own reports

• Ability to create your own custom


reports and categorise
• Select appropriate metrics and
dimensions to display report

https://support.google.com/analytics/bin/answer.py?hl=en-GB&topic=1012046&answer=1033013&rd=1
Getting the most from your Google Analytics

Customisation—creating your own reports

• General information
enter a name for the custom report

• Report content
name report tab of either type Explorer or Flat table
Explorer—contains a hierarchy of data tables linked by clickable rows (name and select
Metric group and Dimension drilldowns)
Flat table—a single table showing all the data (add up to 5 dimensions and 25 metrics)
• Filters—optional, to limit report to subset of data
• Profiles—optional, add other profiles that this report is also
available

https://support.google.com/analytics/bin/answer.py?hl=en-GB&answer=1151300&topic=1012046
Getting the most from your Google Analytics

Suggested actions

• Make a start with dashboards—import a relevant


dashboard configuration and customise
• Set up scheduled emails to to deliver reports to key staff
• Create your own reports
Getting the most from your Google Analytics

Summary

• Plan—set your goals to see what visitors achieve (or not)


• Analyse—filter traffic, refine your reports
• Minimise effort—dashboards, email reports, use shortcuts
• Monitor traffic—real time, intelligence events, social media
Getting the most from your Google Analytics

Getting more out of Google Analytics

There is a wealth of information that can be extracted about a


web site (or app) use from a Google Analytics account interface
and often the issue will be deciding what subset of the possible
is most useful and forming the discipline to routinely utilise and
act on that quintessential report data.
Getting the most from your Google Analytics

Using Google Analytics effectively

5 ways you can effectively use web


analytics to your advantage
ManageWP, Tom Ewer, May 2012
1. Set goals—conversions matter more than anything else
2. Check for problem pages—check exit rates on key pages and try to
determine reasons for unusually high values
3. Consider your target audience—ensure compatibility across multiple
platforms etc.
4. Leverage top traffic sources—80% of the effects come from 20% of the
causes, so identify your top traffic sources and ensure that you are
leveraging them to their maximum capacity
5. Curb your addiction—checking your analytics regularly is a bad habit,
plain and simple: there is no apparent benefit, in my opinion, to checking
your analytics on a daily basis

http://managewp.com/effectively-use-web-analytics-to-your-advantage
Getting the most from your Google Analytics

Using Google Analytics effectively


Five awesome tips to extract valuable
SEO secrets from Google Analytics data
SocialMediaToday, David Mercer, May 2012
1. Segment analytics data for today—you can derive deeper SEO insights
by splitting data into segments: day, week, month, year, historical
2. Exclude erroneous traffic spikes from analytical data—exceptional
traffic spikes, if they're large enough, can warp your data and skew your
SEO strategy as a result
3. Use content navigation to analyse traffic patterns—it helps to
understand exactly how people are navigating your site in order to make
intelligent decisions about how to improve the conversion rate
4. Use secondary dimensions—the secondary dimension can help provide
drill-down information about the primary dimension's data
5. Segmented visitor flow view—looking at lists of statistical SEO data is
one thing, but being able to actually visualise the flow of traffic into and
around your website is a very powerful feature

http://socialmediatoday.com/siteprebuilder/501747/five-awesome-tips-extract-valuable-seo-secrets-google-analytics-data
Getting the most from your Google Analytics

A range of APIs and options


• Collection API relates to web tracking using the ga.js set of
JavaScript functions for tracking user interaction with
websites or web applications and Android or iOS apps
• The Management API allows access to Google Analytics
configuration data for accounts, properties, profiles, goals,
segments, for use in other applications
• The Core reporting or data export API allows querying of data
stored in a Google Analytics account to produce special
reports
• The Social data hub allows social networks and other social
platforms to integrate social data with Google Analytics

https://developers.google.com/analytics/devguides/
Getting the most from your Google Analytics

Application programmers interface (API)

There are occasions when it is desirable to monitor, measure,


or analyse, something quite specific to a particular web site—
something that cannot be accomplished using the Google
Analytics default interface.
On such occasions the Google Analytics data collection API can
be used to programme additional data collection which can
then be used in standard or custom reports.

https://developers.google.com/analytics/devguides/collection/
Getting the most from your Google Analytics

Implementing the collection API

var _gaq = _gaq || [];


_gaq.push (['_setAccount', 'UA-11066040-24']);
_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);
}) ();

https://developers.google.com/analytics/devguides/collection/gajs/
Getting the most from your Google Analytics

What’s in the ga.js file?


• The ga.js file contains JavaScript that:
• Defines JavaScript objects
• Provides the code of method scripts associated with the defined objects

• Two primary objects are defined:


1. _gat is used to create and retrieve tracker objects, from which other tracking related
methods are invoked
2. _gaq is used directly for asynchronous page tracking, acting as a queue, a first-in, first-
out data structure that collects instructions until ga.js is ready to execute them—the
_gaq.push () method adds something to the queue

• A wide range of method scripts included in ga.js enable


cookie management and updating, detection or setting of
system variables... and, most importantly, tracking

https://developers.google.com/analytics/devguides/collection/gajs/methods/
Getting the most from your Google Analytics

Calling Google Analytics method scripts


• A default tracker object is always defined and implied in calls
of methods that don’t specify an alternative tracker
• A method may be called by pushing an array of the method
name and parameters (to the Google Analytics queue object
that allows efficient asynchronous JavaScript execution):
_gaq.push (['_setAccount', 'UA-XXXXX-X']);

• Or call method by pushing a function that calls the method:


_gaq.push (function () {
var pageTracker = _gat._getTrackerByName
();
var accountId = pageTracker._getAccount ();

• The approach used depends on whether or not a return


});

value is required from the call to the method

https://developers.google.com/analytics/devguides/collection/gajs/methods/
Getting the most from your Google Analytics

Google Analytics cookies

• Google Analytics cookies act as local data collectors on the


visitors device as the visitor interacts with a web page
• They uniquely define the visitor and gather information
from page to page during a visitor's session
• Data about the browser being used, computer type, network
location etc. are also stored in these cookies
• Google Analytics cookies do not collect personal data about
a web page visitor
• At critical points of a visit cookie information is dumped to
Google Analytics servers

https://developers.google.com/analytics/resources/concepts/gaConceptsCookies
Getting the most from your Google Analytics

Google Analytics cookies


• Each cookie in a set of 6 has a specific data collection
purpose and its data are always ready for transfer to Google
• Determining visitor session, cookies:
_utmb, _utmc

• Identifying unique visitors, cookie:


_utma

• Tracking traffic sources and navigation, cookie:


_utmz

• Custom variables, cookies:


_utmv, _utmx

• These cookies can be seen on the visitor browser device and


have different expiry periods depending on their purpose

https://developers.google.com/analytics/resources/concepts/gaConceptsCookies
Getting the most from your Google Analytics

Review of how data collection works


• JavaScript file ga.js loaded in any page being tracked
• This contains definitions of Google Analytics objects with
associated methods (specific scripts)
• Some of these are called by the standard install code insert,
or other JavaScript in a page, and these update Google
Analytics cookies with information about the page visit or
initiate transfer of cookie information to Google
• Information stored in Google Analytics cookies, including
relevant information determined from the environment, is
transferred to Google servers using the _utm.gif method
• This information is then processed at Google and stored in
the Google Analytics account identified in the tracking code

https://developers.google.com/analytics/resources/concepts/gaConceptsTrackingOverview#trackingCodeExecution
Getting the most from your Google Analytics

The _utm.gif technique

• This is a simple HTTP request from the visitor’s browsing


device to the Google Analytics servers for a one pixel gif file
• The requested URL contains a long series of query
parameters (query string) that together specify all of the
data (from Google Analytics cookies) to be tracked at the
corresponding Google Analytics account
• The exact data transferred on the query string is defined by
the particular request type made (initiated by the specific
tracking method that was called)

https://developers.google.com/analytics/resources/concepts/gaConceptsTrackingOverview#gifParameters
Getting the most from your Google Analytics

When is cookie information transferred to Google?


• When tracking occurs—i.e. one of 5 request types is made:
1. A web page is requested—using trackPageView method
Page request type
2. An event is triggered—using trackEvent method
Event request type
3. A purchase transaction occurs—using trackTrans method
Transaction request type
4. An item in a purchase transaction is recorded—using addItem method preceding a
trackTrans call which sends both transaction and item data to Google
Item request type
5. A custom user variable is set and triggered by a visitor—using setCustomVar method
Var request type
• To get required data recorded one of above methods must
be called at an appropriate point when web page visited

https://developers.google.com/analytics/resources/concepts/gaConceptsTrackingOverview#trackingCodeExecution
Getting the most from your Google Analytics

Tracking a page visit using _trackPageview

• The most basic tracking of a web page visit is enabled using


an initial call to _trackPageview with an optional page URL
parameter, e.g.
_gaq.push (['_trackPageview']);
or
_gaq.push (['_trackPageview', ‘/home/startPage’]);

https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiBasicConfiguration
Getting the most from your Google Analytics

Tracking a page visit using _trackPageview


Getting the most from your Google Analytics

Tracking a file downloads using _trackPageview

• File downloads from a web page are not automatically


tracked by Google Analytics—it is normally necessary to
code tracking in each link, e.g.
<a href="http://www.example.com/files/myfile01.pdf"
onClick="_gaq.push (['_trackPageview', '/download/file01']);">
myfile01
</a>

https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiBasicConfiguration
Getting the most from your Google Analytics

Tracking all file downloads using entourage.js

• Avoiding the tedium of adding JavaScript code to every file


link by using another piece of JavaScript to do it for you!
• By loading the entourage.js JavaScript code at the start of
the page, all document links will have necessary tracking
JavaScript code added automatically so that the downloads
appear in the usual Content reports

http://techoctave.com/c7/posts/58-entourage-js-automatic-download-tracking-for-asynchronous-google-analytics
Getting the most from your Google Analytics

Tracking all file downloads using entourage.js


Getting the most from your Google Analytics

Event tracking

• Particular visitor activity on a web page is recorded and


displayed as an event in the Analytics reporting interface
using the _trackEvent method:
_trackEvent (category, action, opt_label, opt_value, opt_noninteraction)
category—(required) the name you supply for the group of objects you want to track
action—(required) a string that is uniquely paired with each category, and commonly used to define the type of
user interaction for the web object
label—(optional) an optional string to provide additional dimensions to the event data
value—(optional) an integer used to provide numerical data about the user event
non-interaction—(optional) a boolean that when set to true, indicates that the event hit will not be used in
bounce-rate calculation

https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide
Getting the most from your Google Analytics

Event tracking example

• Track visitor expressed preference in a simple poll form

http://googleanalytics.netskills.biz/cgi-bin/generic?instanceID=1
Getting the most from your Google Analytics

Event tracking example


<input type="submit" class="submit" style="float: none;"
value="Submit" onclick="
var vVote = document.getElementById ('vV1').checked ?
document.getElementById ('vV1').value :
(document.getElementById ('vV0').checked ?
document.getElementById ('vV0').value : 0);
var vValue = (vVote == 'positive') ? 1 : 0;
if (vVote) {
alert ('thanks for the useful ' + vVote +
' feedback!');
_gaq.push (['_trackEvent', 'feedback',
'indication of page interest given', vVote,
vValue, 0]);
}
">

http://googleanalytics.netskills.biz/cgi-bin/generic?instanceID=1
Getting the most from your Google Analytics

Event tracking report


Getting the most from your Google Analytics

Custom variables

• You can set up a variety of custom variables to track user


activity for your site, managed by your own JavaScript using:
_setCustomVar (index, name, value, opt_scope)
index—the slot for the custom variable (required), this is a number whose value can range from 1 - 5, inclusive—
a custom variable should be placed in one slot only and not be re-used across different slots
name—the name for the custom variable (required), this is a string that identifies the custom variable and
appears in the top-level Custom Variables report
value—the value for the custom variable (required), this is a string that is paired with the name, you can pair a
number of values with a custom variable name—typically, you will have two or more values for a given name, for
example, you might define a custom variable name gender and supply male and female as two possible values
opt_scope—the scope for the custom variable (optional), the scope defines the level of user engagement with
your site—it is a number whose possible values are 1 (visitor-level), 2 (session-level), or 3 (page-level) and when
left undefined, the custom variable scope defaults to page-level interaction

https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingCustomVariables
Getting the most from your Google Analytics

Custom variables example

• Record logged in user ID, if a visitor has logged in, and


review logins over a period of time
! <script type="text/JavaScript">
! var _gaq = _gaq || [];
! _gaq.push (['_setAccount', 'UA-11066040-24']);
! _gaq.push (['_setCustomVar', 5, 'visitorUserID', 5, 1]);
! _gaq.push (['_trackPageview']);
! </script>

http://googleanalytics.netskills.biz/
Getting the most from your Google Analytics

Custom variables example


Getting the most from your Google Analytics

Summary
• Google Analytics collection API
• ga.js JavaScript file
• Objects and script methods
• Google Analytics cookies
• The _utm.gif data transfer technique
• Different script methods related to tracking
• Examples using _trackPageview, _trackEvent and
_setCustomVar
• Custom embedding of Google Analytics JavaScript methods
in a web page to provide rich tailored collection of data
available for analysis

You might also like