how to use pertinently google analytics, by gilles barbier

53
[email protected] How to use Google Analytics

Upload: thefamily

Post on 16-Apr-2017

1.665 views

Category:

Small Business & Entrepreneurship


0 download

TRANSCRIPT

Page 1: How to use pertinently Google Analytics, by Gilles Barbier

[email protected]

How to use Google Analytics

Page 2: How to use pertinently Google Analytics, by Gilles Barbier

analytics.js ga.js

Page 3: How to use pertinently Google Analytics, by Gilles Barbier
Page 4: How to use pertinently Google Analytics, by Gilles Barbier

How does it work?

analytics.js

google-analytics.com

mywebsite.com

You

User

Page 5: How to use pertinently Google Analytics, by Gilles Barbier

This is a User!

692956160.1419847796

Page 6: How to use pertinently Google Analytics, by Gilles Barbier

Hits• A Hit is basically a call to Google Analytics,

triggered by the javascript embedded into your page: • ga('send', ‘pageview');• ga('send', 'event', 'button', ‘click’);

• During these hits, Google will also record information known by your browser, such as cookie_id, language, screen size, browser type, etc…

• Everything else is calculations! google-analytics.com

analytics.js

692956160.1419847796

Page 7: How to use pertinently Google Analytics, by Gilles Barbier

Check Your Implementation!• Use Real-Time view

• (Do not use privacy protecting tool!)

• Add Google Analytics Debugger Google Chrome extension

• Check GA is installed on every page (including 404!)

https://www.google.com/analytics/partners/search/apps?category=114

Page 8: How to use pertinently Google Analytics, by Gilles Barbier

Pageviews

Goals

Segments

Events

Sessions

Page 9: How to use pertinently Google Analytics, by Gilles Barbier

Pageviews

Goals

Segments

Events

Sessions

Page 10: How to use pertinently Google Analytics, by Gilles Barbier

Pageviews

• Hits :

• Triggered for each page a user sees

Page 11: How to use pertinently Google Analytics, by Gilles Barbier

Pageviews

Page 12: How to use pertinently Google Analytics, by Gilles Barbier

What a “Pageview” really is?• No magic: a pageview is recorded

when this script is executed:

ga('send', ‘pageview’);

• This is in default code provided by Googleto be implemented in all your pages

• A page can be virtual (useful if you manage afull js web-app)!

ga('send', ‘pageview’, ‘/myVirtualPage’);

Page 13: How to use pertinently Google Analytics, by Gilles Barbier

Pageviews

Page 14: How to use pertinently Google Analytics, by Gilles Barbier

Pageviews

Goals

Segments

Events

Sessions

Page 15: How to use pertinently Google Analytics, by Gilles Barbier

• Hits : triggered each time a user does something you want to track

• Play / Pause video

• Download a whitepaper

• Account creation

• Outgoing links

• Error tracking

• Duration tracking

Events

Page 16: How to use pertinently Google Analytics, by Gilles Barbier

Events

Page 17: How to use pertinently Google Analytics, by Gilles Barbier

What an event really is?• No magic: an event is recorded

when this script is executed: ga('send', 'event', category, action, label, Value, interaction );

• You are in charge of implementing them

‘Video’‘Play’‘Joe birthday’0true

Page 18: How to use pertinently Google Analytics, by Gilles Barbier

Events

Page 19: How to use pertinently Google Analytics, by Gilles Barbier

Pageviews

Goals

Segments

Events

Sessions

Page 20: How to use pertinently Google Analytics, by Gilles Barbier

Sessions

• Session :

• Triggered “each time” a user comes (back) to your site

Page 21: How to use pertinently Google Analytics, by Gilles Barbier

Sessions

Page 22: How to use pertinently Google Analytics, by Gilles Barbier

What a “Session” really is?692956160.141984779

264784636.326472677

198746378.377492784

159279389.427837882

• Interactions grouped because they took place on your website within a given time frame

• A session closes • after 30 min of

inactivity • after midnight • campaign_sour

ce changed

Page 23: How to use pertinently Google Analytics, by Gilles Barbier

Sessions

Page 24: How to use pertinently Google Analytics, by Gilles Barbier

Pageviews

Goals

Segments

Events

Sessions

Page 25: How to use pertinently Google Analytics, by Gilles Barbier

• Measure :

• Account creations

• Transactions

• Share on social networks

• Newsletter subscription

• Comments written

• Page duration

Goals

Page 26: How to use pertinently Google Analytics, by Gilles Barbier

Define a goal

Page 27: How to use pertinently Google Analytics, by Gilles Barbier

Define a goal

Page 28: How to use pertinently Google Analytics, by Gilles Barbier

Define a goal

Page 29: How to use pertinently Google Analytics, by Gilles Barbier

pas de domaine

= | début | regex

Define a goal

Bewarecase-sensitive

Page 30: How to use pertinently Google Analytics, by Gilles Barbier

Example: with regular expression ^/zone(\-fr$|\-es$)/, the objective is reached with user visits /zone-fr ou /zone-es

To test a regular expression:

https://support.google.com/analytics/answer/1034324?hl=fr

Define a goal

Page 31: How to use pertinently Google Analytics, by Gilles Barbier

Goals

Page 32: How to use pertinently Google Analytics, by Gilles Barbier

Pageviews

Goals

Segments

Events

Sessions

Page 33: How to use pertinently Google Analytics, by Gilles Barbier

Segments

• Analyze :

• behaviour of different groups of users/sessions

Page 34: How to use pertinently Google Analytics, by Gilles Barbier

Predefined Segments

Page 35: How to use pertinently Google Analytics, by Gilles Barbier

Example of recommended analyzes

Page 36: How to use pertinently Google Analytics, by Gilles Barbier

Cohorts (beta)

Page 37: How to use pertinently Google Analytics, by Gilles Barbier

Pageviews

Goals

Segments

Events

Sessions Configuration

Page 38: How to use pertinently Google Analytics, by Gilles Barbier

Company Product Analyses Account Configuration

Page 39: How to use pertinently Google Analytics, by Gilles Barbier

Account Configuration

Page 40: How to use pertinently Google Analytics, by Gilles Barbier

Property Configuration

Page 41: How to use pertinently Google Analytics, by Gilles Barbier

View ConfigurationCreate new views - do not modify the default one

exclude crawling robots, define your timezone

Exclude traffic from your IPs or from your dev website

Activate e-commerce option

Page 42: How to use pertinently Google Analytics, by Gilles Barbier

Others

Pageviews

Goals

Segments

Events

Sessions

Page 43: How to use pertinently Google Analytics, by Gilles Barbier

Time spent on a page

• Send events for outgoing links

• Send events every 10 seconds

<script> trackOutboundLink = function(url) { ga('send', 'event', 'outbound', 'click', url, {'hitCallback':function () {document.location = url;}});}; </script>

• Time spent on a page A = duration between pageview A and • next (different) pageview • last hit

• Time spent on session’s last page: 0s

<a href=“#" onclick=”trackOutboundLink(‘http://www.google.com’); return false;">google.com</a>

Page 44: How to use pertinently Google Analytics, by Gilles Barbier

Campaign tracking• As soon as you build external links to your website, use

• utm_source • utm_medium • um_campaign • utm_content

• example:

http://store.example.com/boots?utm_source=ad_facebook &utm_medium=display&utm_campaign=january_promo &utm_content=copy_variation1

https://support.google.com/analytics/answer/6205762?hl=en

Where does it come from?

How does it come from?

Which occasion?

Which variation?

Page 45: How to use pertinently Google Analytics, by Gilles Barbier

Funnels

• Discover at which step your users are leaving

Page 46: How to use pertinently Google Analytics, by Gilles Barbier

Data Alerts

http://cutroni.com/blog/2012/01/04/save-your-ass-with-google-analytics-data-alerts/

Page 47: How to use pertinently Google Analytics, by Gilles Barbier

Annotations

• Site modifications

• GA implementation modifications

• Technical difficulties

• PR

• External event (Google algo changes)

• Whatever can impact your data

Page 48: How to use pertinently Google Analytics, by Gilles Barbier

Demographics

• you need at least a minimal level of activities

• To be activated in your property settings

• javascript code need to be modified (ga('require', 'displayfeatures');)

Page 49: How to use pertinently Google Analytics, by Gilles Barbier

Interests

Page 50: How to use pertinently Google Analytics, by Gilles Barbier

Custom Values

To send to Google Analytics your own data

ga('send', 'pageview', { ‘dimension5': ‘<?=$user_id?>'});

Page 51: How to use pertinently Google Analytics, by Gilles Barbier

Traps

Page 52: How to use pertinently Google Analytics, by Gilles Barbier

Most common difficulties• Sub-domains : warning if you use old version of google

analytics

• Trafic source: 6 mois per default!

• Conversion : 1 / objective / session

• No easy way to see individual behavior

• Sampling

• Payment on third-parties platform

Page 53: How to use pertinently Google Analytics, by Gilles Barbier

[email protected]

Enjoy your flight!