google analytics for developers: gtug kl edition

75
Google Confidential and Proprietary 1 Google Analytics for Developers GTUG KL Edition Moving Towards Actionable Insights Vinoaj Vijeyakumaar Senior Conversion Specialist Google Southeast Asia http://twitter.com/vinoaj http://conversionroom-japac.blogspot.com

Upload: vinoaj-vijeyakumaar

Post on 20-Aug-2015

2.844 views

Category:

News & Politics


1 download

TRANSCRIPT

Page 1: Google Analytics for Developers: GTUG KL Edition

Google Confidential and Proprietary 1

Google Analytics for Developers GTUG KL Edition Moving Towards Actionable Insights

Vinoaj Vijeyakumaar Senior Conversion Specialist Google Southeast Asia

http://twitter.com/vinoaj

http://conversionroom-japac.blogspot.com

Page 2: Google Analytics for Developers: GTUG KL Edition

Client Engagement Cycle

Measure

Analyse

Hypothesise Experiment

Optimise

2

Enable Measurement

Implement measurement platforms and conversion goals

Define KPI Framework

Monitor reports

Identify and segment data

Analyse data – glean insights, recommend actions

Usability analysis

Recommend usability and marketing experiments

Execute A/B and multivariate tests

Usability improvements for desktop & mobile sites

Optimise online marketing strategy

Optimise for speed and loading performance

Optimise landing page and site design

Google Analytics

Google Website Optimiser

Brainpower

User Experience

Google Page Speed

Google AdWords

Maximise

Page 3: Google Analytics for Developers: GTUG KL Edition

Today: Measure. Take Action. Succeed.

3

Why Google Analytics How Google Analytics Works Measuring Your Apps Data Export API Resources

1

2

4

3

5

3

TUE

Page 4: Google Analytics for Developers: GTUG KL Edition

Google Confidential and Proprietary

Why Google Analytics

4

Page 5: Google Analytics for Developers: GTUG KL Edition

Track Behaviour

5

Entry Exit

Behaviour

Engagement

Page 6: Google Analytics for Developers: GTUG KL Edition

The Role of the Web Analyst

6 http://www.flickr.com/photos/kire/797533507/sizes/o/in/photostream/

Reporting Actionable Insights

Page 7: Google Analytics for Developers: GTUG KL Edition

What does “Action” mean?

7

Discovering new opportunities (eg. New markets, hot trends, customer segments)

Improving marketing strategies (eg. New placements, optimise creatives)

Enhancing the user experience (eg. More compelling landing pages)

Optimisation Making every

marketing dollar work harder

Page 8: Google Analytics for Developers: GTUG KL Edition

6 + 1 Report Categories

8

Page 9: Google Analytics for Developers: GTUG KL Edition

6 + 1 Report Categories

9

Who are my visitors?

Page 10: Google Analytics for Developers: GTUG KL Edition

Who are my Visitors?

10

Page 11: Google Analytics for Developers: GTUG KL Edition

6 + 1 Report Categories

11

How are they finding and coming to my site?

Page 12: Google Analytics for Developers: GTUG KL Edition

How are Visitors Finding My Site?

12

Page 13: Google Analytics for Developers: GTUG KL Edition

6 + 1 Report Categories

13

What did they do on my site?

Page 14: Google Analytics for Developers: GTUG KL Edition

What did they do on my site?

14

Page 15: Google Analytics for Developers: GTUG KL Edition

6 + 1 Report Categories

15

Why does my site exist and did my visitors meet those objectives?

Page 16: Google Analytics for Developers: GTUG KL Edition

16

Page 17: Google Analytics for Developers: GTUG KL Edition

6 + 1 Report Categories

17

What actions should I be taking on my site?

Page 18: Google Analytics for Developers: GTUG KL Edition

Daily Intelligence Alerts

18

Page 19: Google Analytics for Developers: GTUG KL Edition

Google Confidential and Proprietary

How Google Analytics Works

19

Page 20: Google Analytics for Developers: GTUG KL Edition

The GA Async Tracking Code

20

Dynamically load the ga.js tracking library

HTML5: Execute script asynchronously

Look for _gaq stack and execute queued commands

Page 21: Google Analytics for Developers: GTUG KL Edition

How Google Analytics works

Secure Google Servers

Website Server

5. Call trackPageview() function

6. Read & write cookies

7. Send gif request. Request contains data.

2. Serve page

1. Request--"Show me this webpage"

3. Request: ga.js

4. Serve ga.js

8. Serve gif

User

<html> <head>

...

...

</head>

<html>

...

...

__utm.gif?utmwv=6.3&utmn=101027544&utmsr=1280x854&utmsc=32-bit&utmul=en&utmje=1&utmjv=1.5&utmfl=7.0 r24&utmdt=My%20Website&utmhn=www.site.com&utmp=/index.html&utmac=UA-51244-4&utmcc=__utma%3D117945243.823564440.1131054947.1131080858.1133834608.4%3B+__utmb%3D117945243%3B+__utmc%3D117945243%3B+__utmz%3D117945243.1131054947.3.2.utmccn%3D%28Spring%20Sale%29%7Cutmcsr%3D%28google%29%7Cutmcmd%3D%28ppc%29% %7Cutmtm%3D%28shoes%29%3B

Page 22: Google Analytics for Developers: GTUG KL Edition

The __utm.gif hit

__utm.gif?utmwv=6.3&utmn=101027544&utmsr=1280x854&utmsc=32-bit&utmul=en&utmje=1&utmjv=1.5&utmfl=7.0 r24&utmdt=My%20Website&utmhn=www.site.com&utmp=/index.html&utmac=UA-51244-4&utmcc=__utma%3D117945243.823564440.1131054947.1131080858.1133834608.4%3B+__utmb%3D117945243%3B+__utmc%3D117945243%3B+__utmz%3D117945243.1131054947.3.2.utmccn%3D%28Spring%20Sale%29%7Cutmcsr%3D%28google%29%7Cutmcmd%3D%28ppc%29% %7Cutmtm%3D%28shoes%29%3B

Screen Resolution: 1280x854

Screen Colors: 32-bit

Browser Language: English(en)

Java Enabled? Yes (1)

Java Version: 1.5

Flash Version: 7.0r24

Page Title: My Website

Hostname: www.site.com

Filename: /index.html

Google Analytics Account: UA-51244-4

Visits: 4

Campaign: Spring Sale | Google(PPC) | shoes

Page 23: Google Analytics for Developers: GTUG KL Edition

Raw Data to Reports

23

Page 24: Google Analytics for Developers: GTUG KL Edition

Management

Tracking

1. Logs

Collection Processing Export

4. Functions

5. Tables

2. Goals, Filters, Profile Settings

3. Data Structure

Web Interface Data Export Feed

6. Query Engine

Web Interface Account Feed

Taking a Closer Look

Page 25: Google Analytics for Developers: GTUG KL Edition

Mobile Tracking

25

HTML & Applications WAP

iPho

ne

Win

dow

s

Mob

ile

And

roid

Bla

ckbe

rry

Pear

l & C

urve

http://code.google.com/apis/analytics/docs/tracking/mobileAppsTracking.html

Page 26: Google Analytics for Developers: GTUG KL Edition

26

Track Activity to Mobile Websites [link]

Mobile Websites

ü Server-side tracking

ü Track all web-enabled devices (not just JS & cookie capable)

ü Four languages supported: PHP, Perl, JSP, ASP

ü Works just like Analytics on desktop web pages

[Ad] Car Sale – Low car prices – cars.com – Call: 800-123-2431

Page 27: Google Analytics for Developers: GTUG KL Edition

Tracking Your Mobile Site

•  Provided with server-side code to generate the calls to Google Analytics

•  Will track all web-enabled devices, not just JS- and cookie-capable devices

•  Currently provide code snippets for PHP, Perl, JSP, and ASPX platforms

27

Page 28: Google Analytics for Developers: GTUG KL Edition

Copy & Paste Snippets

28

Page 29: Google Analytics for Developers: GTUG KL Edition

A Quick Look at the PHP Code Snippet

29

Page rendering script

Insert a pixel for tracking

Generate the pixel URL

ga.php

Send the request to GA

Page 30: Google Analytics for Developers: GTUG KL Edition

Server-to-Server Communications

30

Secure Google Servers Website Server

Request pixel: /ga.php?....

Send request to GA servers

Page 31: Google Analytics for Developers: GTUG KL Edition

Google Confidential and Proprietary

Measuring Your Apps

31

Page 32: Google Analytics for Developers: GTUG KL Edition

Event Tracking

“Traditional” Google Analytics is pageview based

32

Page 33: Google Analytics for Developers: GTUG KL Edition

What about the 1-page App/Site?

Single URL, no page refreshes

33

Page 34: Google Analytics for Developers: GTUG KL Edition

Enter Event Tracking

Track events on your site

Detect events and trigger tracking call

34

_gaq.push(['_trackEvent',

category,

action,

opt_label,

opt_value]);

Purpose Example

Group of objects being tracked

'Markers'

Type of user interaction with the object

'Click'

Additional info about the event

'Google Singapore'

Numerical data about the event

1

Page 35: Google Analytics for Developers: GTUG KL Edition

Example: Tracking Outbound Social Media Links

35

Page 36: Google Analytics for Developers: GTUG KL Edition

Example: Tracking Outbound Links

36

Page 37: Google Analytics for Developers: GTUG KL Edition

Tracking Rich Media Sites and Apps

37

Page 38: Google Analytics for Developers: GTUG KL Edition

Mobile Tracking

38

HTML & Applications WAP

iPho

ne

Win

dow

s

Mob

ile

And

roid

Bla

ckbe

rry

Pear

l & C

urve

http://code.google.com/apis/analytics/docs/tracking/mobileAppsTracking.html

Page 39: Google Analytics for Developers: GTUG KL Edition

iPhone and Android Tracking

•  Track pageviews

•  Track events

•  Tip: batch hits to save on connection and battery overhead

•  Tip: bundle tracker dispatches with other HTTP requests made by your app

•  Android: Track referrals leading to download and activations of your apps

39

Page 40: Google Analytics for Developers: GTUG KL Edition

Example – ‘Earthquake’ Application for Android

Page 41: Google Analytics for Developers: GTUG KL Edition

Track ‘virtual’ pageviews

Page 42: Google Analytics for Developers: GTUG KL Edition

Track Events

Page 43: Google Analytics for Developers: GTUG KL Edition

Tracking Campaigns Through Android Market

Set up your Android application using the code examples at: §  http://code.google.com/mobile/analytics

All future pageviews and events from your app will contain information on the original referrer

Easy URL builder for apps available at same site (above)

Page 44: Google Analytics for Developers: GTUG KL Edition

Chrome Extensions

Load GA within Chrome extension page

44

Call _trackPageView to measure extension activation

Call _trackEvent to track interactions

Page 45: Google Analytics for Developers: GTUG KL Edition

Flash / Flex

45

Track “Pageviews”

Track Events

Page 46: Google Analytics for Developers: GTUG KL Edition

Silverlight

46

Page 47: Google Analytics for Developers: GTUG KL Edition

Silverlight

47

Page 48: Google Analytics for Developers: GTUG KL Edition

Google Confidential and Proprietary

Data Export API

48

Page 49: Google Analytics for Developers: GTUG KL Edition

Dimensions and Metrics

Google Confidential

Dimensions Metrics

Page 50: Google Analytics for Developers: GTUG KL Edition

Interactive Examples

http://code.google.com/apis/analytics/docs/gdata/gdataInteractiveSamples.html

50

1. Authenticate user. App can only access accounts & profiles the user can

2. Run interactive samples

Page 51: Google Analytics for Developers: GTUG KL Edition

Start Developing Today

51

Page 52: Google Analytics for Developers: GTUG KL Edition

Contribute to the App Gallery

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

Page 53: Google Analytics for Developers: GTUG KL Edition

Analytics Canvas

53

Page 54: Google Analytics for Developers: GTUG KL Edition

54

Page 55: Google Analytics for Developers: GTUG KL Edition

55

Page 56: Google Analytics for Developers: GTUG KL Edition

56

Page 57: Google Analytics for Developers: GTUG KL Edition

Example: Optimise User Experience

57

Page 58: Google Analytics for Developers: GTUG KL Edition

Order Links Using Data

58 Google Confidential

Page 59: Google Analytics for Developers: GTUG KL Edition

Design Overview

59

Google Analytics

3. Order links by # of clicks

Content Management Webpage Database

Display links on page

1. Track clicks on links Send IDs to GA

2. Export clicks on links export data by ID

Page 60: Google Analytics for Developers: GTUG KL Edition

Design Overview

60

Content Management Webpage Database

Display links on page

Page 61: Google Analytics for Developers: GTUG KL Edition

CMS Displays Links On Page

61

html_links

linkId

linkUrl

linkText

SELECT A.linkId, A.linkUrl, A.linkTextFROM html_links AS A

<ul> <li> <a name=“linkId” href=“linkUrl”> linkText</a> </li> ...</ul>

Database Content Management

SQL Website

HTML

Page 62: Google Analytics for Developers: GTUG KL Edition

Design Overview

62

Google Analytics

Content Management Webpage Database

Display links on page

1. Track clicks on links Send IDs to GA

Page 63: Google Analytics for Developers: GTUG KL Edition

Track Clicks On Links With Google Analytics

63

<ul> <li> <a name=“linkId” href=“linkUrl”> linkText</a> </li> ...</ul>

HTML

1.  Implement Tracking Code

2.  Set linkId in Custom Variable3. Send Data with Event Tracking

JavaScript

Page 64: Google Analytics for Developers: GTUG KL Edition

Design Overview

64

Google Analytics

Content Management Webpage Database

Display links on page

2. Export clicks on links export data by ID

Page 65: Google Analytics for Developers: GTUG KL Edition

2-Step Scheduled Data Export

65

DB App GA

1. Scheduled Process

Server Client

2. Served On Demand

DB

Page 66: Google Analytics for Developers: GTUG KL Edition

Query The Right Data

66

query.setFilters("ga:customVarName1==top-links");query.setDimensions("ga:customVarValue1");query.setMetrics("ga:totalEvents");

_gaq.push(['_setCustomVar', 1, ‘top-links’, linkId, 3]);_gaq.push(['_trackEvent', enclosingId, linkText]);

Tracking Code

Data Export API Query

Page 67: Google Analytics for Developers: GTUG KL Edition

Design Overview

67

Google Analytics

3. Order links by # of clicks

Content Management Webpage Database

Display links on page

Page 68: Google Analytics for Developers: GTUG KL Edition

Order Links By Number Of Clicks

68

html_links

linkId

linkUrl

linkText

Data Base Content Management

link_order

linkId

totalEvents

, link_order AS BWHERE A.linkId=B.linkIdORDER BY B.totalEvents

SELECT A.linkName, A.linkUrl, A.linkTextFROM html_links AS A

Page 69: Google Analytics for Developers: GTUG KL Edition

69

Page 70: Google Analytics for Developers: GTUG KL Edition

Google Confidential and Proprietary

Resources

70

Page 71: Google Analytics for Developers: GTUG KL Edition

ConversionUniversity.com

Page 72: Google Analytics for Developers: GTUG KL Edition

Your Name Here

Page 73: Google Analytics for Developers: GTUG KL Edition

Documentation

Help Centre: http://www.google.com/support/analytics/

Google Code: http://code.google.com/apis/analytics/

73

Page 74: Google Analytics for Developers: GTUG KL Edition

Subscribe for the Latest News

74

conversionroom-japac.blogspot.com

Subscribe to receive latest articles in your inbox

Page 75: Google Analytics for Developers: GTUG KL Edition

Google Confidential and Proprietary

Thank You! Q&A

75

http://twitter.com/vinoaj

http://conversionroom-japac.blogspot.com