Академический Документы
Профессиональный Документы
Культура Документы
Guide
A step by step guide to a best practice
implementation of Google Analytics
August 2012
Contents
This document is an unofficial guide to a best practice standard implementation of Google Analytics.
Google Analytics is the most popular analytics package and is used by 87% of companies and agencies, either
exclusively or in conjunction with another tracking tool, to measure online performance (Econsultancy, Online
Measurement and Strategy Report 2012).
Often the performance and ability of analytics software to accurately record and provide data is affected by the
way in which the initial code is set up and administered on the website.
This document aims to guide users to a best practice implementation of their Google Analytics account so that
they can extract basic information and avoid incorrect or inaccurate recording of data. We will look at:
1.
2.
3.
Definitions ............................................................................................................................................. 21
Dashboards .......................................................................................................................................... 25
Advanced Segments ............................................................................................................................ 28
Please keep in mind that this guide is designed to fit a wide variety of websites. Further configuration of your
analytics account may be required to fit your particular needs.
For any questions concerning the content of this document or information on a more customised implementation,
please contact DBD Media at analytics@dbdmedia.co.uk or call our web analytics team on 020 7240 0100.
1. INTRODUCTION:
INTRODUCTION: What
What You
You Need
Need To
To Know
Know Before
Before You
You Start
Start
1.
1.2. Cookies
GA uses first-party tracking cookies only, which are considered minimally intrusive by the new EU Privacy
Directive. To be compliant with the Directive, you need to list these cookies in your privacy policy and request
users consent to use them.
Cookie Name
Purpose
Expiration
_utma
Visitor identifier
2 years
_utmb
Session identifier
_utmc
Session identifier
_utmz
6 months
_utmv (optional)
2 years
Account
My Site
Property
Profile
www.mysite.co.uk
secure.mysite.co.uk
offers.mysite.co.uk
www.mysite.fr
secure.mysite.fr
If you find the Google Analytics Tracking Code on your page, then you can be sure that Google Analytics has
been installed on your website. Repeat this process across any page you doubt is being tracked on your website
to make sure that your installation is complete.
1.4.3. GA Debugger
If you are using Google Chrome, you can install the Google Analytics Debugger (see Figure 6).
Once installed and enabled, open your website in a new window, right-click and select Inspect element. Go to
the Console tab: if your GATC is properly implemented, you should see Tracking beacon sent! at the top.
2.
2. SETUP:
SETUP:What
WhatTo
ToDo
DoBefore
BeforeYour
YourData
DataComes
ComesIn
In
Google Analytics provides three commonly used predefined filters. You will see them by selecting the Filters
tab on the Admin page.
1. Traffic from the domains Excludes all or includes only traffic from the domain you specify in the
domain field directly below the Filter Type dropdown.
e.g. isolate traffic coming from your sister companys website
2. Traffic from the IP addresses Excludes all or includes only traffic from an IP address or range of IP
addresses entered into the IP address field.
e.g. exclude your internal company traffic
3. Traffic from the subdirectories Excludes all or includes only traffic to a specified directory on your
website.
e.g. track www.mysite.com/blog/ separately
As a best practice we recommend you always:
Exclude your companys internal traffic as well as traffic from any development/media/PR agency you
are using which might skew your data.
Some visitors who click on your AdWords ads may have JavaScript, cookies, or images turned off. As a
result, Analytics wont report these visits, but AdWords will report the click.
Youll also see differences between Analytics and AdWords if the Google Analytics Tracking Code on
your landing page doesnt execute. In this case, AdWords will report the click but Analytics will not
record the visit.
Google AdWords automatically filters out invalid clicks (clicks on ads that Google considers to be
illegitimate, such as unintentional clicks or clicks resulting from malicious software) from its reports while
Google Analytics will still report the visits.
AdWords data is only uploaded once a day to Analytics so the results for each may be temporarily out of
sync.
If the landing pages dont contain the Google Analytics Tracking Code, campaign information will not be
passed to Analytics, but clicks will register in AdWords.
Make sure that you have autotagging enabled otherwise visits will be marked as Google Organic
instead of Google PPC.
If your website uses redirects, campaign data can be lost: Analytics wont show the visits as coming from
AdWords, but your AdWords report will still report the clicks.
Example 1
Example 2
Example 3
Analytics Guide
Analytics Guide
Analytics Guide
cpc
social
newsletter2
yahoo
n/a
analytics setup
n/a
n/a
n/a
yahoo
organic
cpc
cpc
Figure 8: Source drill-down
10
11
12
13
For example, if you search on analytics training on our website, you will see your search query preceded by
?s=. Therefore, our query parameter is s
In the example above, the query parameter is s, and the query is analytics training.
If you have a particularly large website, some sections of your website may use different query parameters. You
may provide up to five parameters, separating each parameter by a comma.
14
Naming Convention
It is important to use a clear and consistent naming convention when creating events so that the reports are
readable and provide actual insights.
The best approach is to determine in advance all of the kinds of events that youll want to track, so as to create a
hierarchy of Categories, Actions, and Labels that will grow with your needs. Work with everyone who uses GA
reports to make sure that the hierarchy makes sense.
For example, instead of just seeing how many times a video clip was played on your website, you can analyse
how people use your video player, and see how different events correlate with website usage and ecommerce
metrics.
Examples
15
Newsletter subscriptions
Video plays
Product customisation
Add to basket
You can track all of these conversion points in Google Analytics by setting up goal tracking.
To set up a goal, first go the Admin page, select the profile for which you want to configure a goal and select the
Goals tab. You can create up to 4 sets of 5 goals each.
16
Visit Duration triggers a conversion when a visitor spends more (or less) time on your website than the
threshold you specify.
Pages/Visit triggers a conversion when a visitor views more (or fewer) pages than the threshold youve set.
Event triggers a conversion when a visitor performs an event you are tracking on your website (e.g. play a
video, download a file...)
The use of goal value is not restricted to non-ecommerce websites though, as you might want to assign a value
to actions which are not ecommerce transactions, such as clicks on a partners advertisement.
By setting a goal value, you make it possible for Google Analytics to calculate metrics like average per-visitvalue, page value and ROI. These metrics are calculated based on a combination of goal value and transaction
value (revenue), so you need to be careful to only assign goal value to actions which arent already
recorded by ecommerce tracking.
17
So, the goal page signals the end of the activity such as a thank you or confirmation page and the funnel
steps are the pages that visitors encounter on their way to the goal.
Knowing the stage at which would-be customers abandon the process allows you to eliminate bottlenecks and
create a more efficient conversion path. For example, if you notice that many of your visitors never go further
than the Enter delivery information page, you might focus on redesigning that page so that its simpler for them
to use.
When you use Regular Expression Match (as set up under 2.6.2 URL Match Types), the value you enter as the
goal URL as well as each of the funnel steps will be read as a Regular Expression. Remember that regardless of
which option you choose, Google Analytics is only matching request URIs. In other words, the domain name is
ignored.
How visitors enter
the funnel
18
Purpose
Example
Match
Act.
Act10, Act21
U\.S\.
Holiday
U.S. Holiday
UfSd Holiday
[a-z]
A, aa, B, ab...
[abc]
a, b or c
d, e, f
colou?r
color, colour
ab+c
abc,abbc, abbbc,...
ab*c
(G|g)oogle
Google or google
Separate alternatives
gray|grey
gray or grey
^US Holiday
US Holiday 2012
2012 US Holiday
US Holiday$
2012 US Holiday
US Holiday 2012
[]
?
+
*
()
ac
19
To track on-site social interactions via social plugins however, you will need to use the _trackSocial() function.
Google+ is automatically integrated.
_gaq.push([_trackSocial, network, socialAction, opt_target, opt_pagePath]);
Network social network being tracked (Facebook, Twitter, LinkedIn...)
Social Action social action being tracked (like, share, tweet...)
Target (optional) URL or resource which receives the action (if undefined, page on which the action took
place)
Page Path (optional) page from which the action occurred (generally the source of the social action only
really necessary if you are using virtual pageviews)
20
3. EVERYDAY
How to
ToRead
Readyour
YourData
Data
3.
EVERYDAY ANALYTICS
ANALYTICS:: How
3.1. Definitions
Dimension A dimension is a descriptive attribute or characteristic of an object that can be given different
values. Dimensions appear in all of your reports, though you might see different ones depending on the specific
report. Use them to help organise, segment, and analyse your data. In some reports, you can add and remove
dimensions to see different aspects of your data.
Metrics Metrics are individual elements of a dimension that can be measured as a sum or a ratio.
Although dimensions and metrics can stand alone, they usually are used in conjunction with one another. The
values of dimensions and metrics and the relationships between those values is what gives meaning to your
data. For the greatest insights, dimensions are often associated with one or more metric.
3.1.1. Dimensions
Action action for the event being tracked (e.g. Play, Pause or Stop for video interactions)
st
21
22
Visits number of visits to your website, calculated by determining the number of visitor sessions (e.g. if a
visitor comes to your site, exits their browser, and returns 5 minutes later via the same browser, that is
calculated as 2 visits)
Visits to a Transaction number of visits made to your website before a user makes a purchase
3.1.2. Metrics
% Exit percentage of site exits that occurred from a page or set of pages
% New Visits percentage of visits from new visitors
Average Value average value of an ecommerce transaction
Avg. Visit Duration average time spent per visit on your website
Bounce Rate percentage of single-page visits (i.e. visits in which the person left your website from the
entrance page/landing page)
Bounces number of single-page visits to your site over the selected dimension (e.g. if you apply this metric to
the Campaign dimension, itll display the number of single-page visits to your site by users that reached your site
via a particular campaign)
Clicks number of clicks that your ads received
Cost campaign cost
CPC or cost per click average price you paid for each click on your search ads
CPM or cost per mille cost per thousand ad impressions
CTR or click through rate clicks to impressions ratio
Entrances number of entrances to your website or page
Exits number of exits from your site or page
Goal Conversion Rate the percentage of sessions on a website that include a conversion goal being reached
Goal Conversions number of overall goals completed by visitors
Goal1-20 Completions total number of visitors who have completed all elements defined for a particular goal
Goal1-20 Start total number of visitors who have completed the first goal step for a particular goal
Goal1-20 Value total cumulative value for a particular goal
Impressions number of times your ads were displayed
New Visits number of visits by people who have never been to the website before
Page Value average value for a page a user visited before converting (Revenue + Goal Value, divided by
Unique Pageviews for a page viewed before the conversion occurred) formerly known as $ Index
Pages/Visit number of pages viewed by users per visit
Pageviews total number of pageviews for your website when applied over the selected dimension
Per Visit Goal Value average value of a goal completion (calculated as Goal Value divided by Visits)
Per Visit Value average value of a visit to your website (calculated as Revenue divided by Visits)
Product Revenue revenue generated per item (calculated as Price multiplied by Quantity)
23
Quantity total number of items sold for the product (or group of products)
Revenue total revenue
RPC revenue per click
Search Depth average number of pages visitors viewed after performing a search
Search Exits number of searches a visitor made immediately before leaving the website
Search Refinements number of times a visitor searched again immediately after performing a search
Shipping cost of delivery for a transaction
Tax amount of tax included in the transaction price (e.g. VAT)
Time after Search starting from the first use of internal search, time spent on website until either the session
ended or until another search happened
Time on Page time a visitor spent on a particular page or set of pages. It is calculated by subtracting the initial
view time for a particular page from the initial view time for a subsequent page. Thus, this metric does not apply
to exit pages for your site
Time on Site time a visitor spends on your website
Total Unique Searches total number of times your Site Search was used, excluding multiple searches on the
same keyword during the same visit
Transactions total number of transactions
Unique Pageviews number of visits during which the specified page(s) was/were viewed at least once
Unique Purchases total number of times a product was included in a transaction
Unique Visitors number of users that visits your website
Visits number of times your visitors has been to your website (unique sessions initiated by all your visitors)
Visits with Search total number of visits where internal site search was used
24
3.2. Dashboards
Dashboards are a great way to get an overview of the key performance indicators (KPIs) for your website.
At DBD Media, we provide PPC, SEO, Social Media and CRO (Conversion Rate Optimisation) services, so we
like to have one dashboard for each of these services to quickly showcase their performance.
To install this dashboard on your Google Analytics account, log into GA and go to this link:
http://tinyurl.com/SEO-dashboard and select the profile you wish to implement the dashboard on.
You might need to edit the widget settings to fit your website, such as customising non-branded filters to your
own brand name or replacing transactions with goal completions, revenue with goal value and ecommerce
conversion rate with goal conversion rate for non-ecommerce websites.
DBD Media Search. Social. Analytics.
www.dbdmedia.co.uk
25
To install this dashboard on your Google Analytics account, log into GA and go to this link:
http://tinyurl.com/PPC-dashboard and select the profile you wish to implement the dashboard on.
You might need to edit the widget settings to fit your website, such as replacing transactions with goal
completions, revenue with goal value and ecommerce conversion rate with goal conversion rate for nonecommerce websites.
26
To install this dashboard on your Google Analytics account, log into GA and go to this link:
http://tinyurl.com/SMedia-dashboard and select the profile you wish to implement the dashboard on.
You might need to edit the widget settings to fit your website, such as replacing revenue with goal value and
ecommerce conversion rate with goal conversion rate for non-ecommerce websites.
27
To install this dashboard on your Google Analytics account, log into GA and go to this link:
http://tinyurl.com/CRO-dashboard and select the profile you wish to implement the dashboard on.
You might need to edit the widget settings to fit your website, such as replacing transactions with goal
completions, revenue with goal value and ecommerce conversion rate with goal conversion rate for nonecommerce websites.
28
You can examine historical (e.g. last months) data for an advanced segment, even if you only created
the segment today. In contrast, a filtered profile will only contain data starting from the date you created
it.
You can see and compare multiple advanced segments side by side in reports. In contrast, you can only
view data for one filtered profile at a time.
A filtered profile is usually the best choice if you want to always exclude a certain kind of traffic from your
analysis. For example, while you can create an advanced segment that only includes external traffic, it would be
better to create a profile that excludes internal traffic instead. That way, you wont have to remember to apply the
segment each time you look at reports. Also, you can always apply other advanced segments to the filtered
profile data.
If you want to limit some users access to only a subset of data, you should set up filtered profiles for this instead
of using advanced segments.
29
DBD Media
20 Bedford Street
Covent Garden
London
WC2E 9HP
www.dbdmedia.co.uk
www.dbdmedia.co.uk/analytics-implementation-training
30