SlideShare a Scribd company logo
1 of 47
Download to read offline
The Google Analytics
of Things
+Martin Hawksey
@mhawksey
Slides http://go.alt.ac.uk/IWMW16-P9#IWMW16 #P9
+Martin Hawksey
hawksey.info
@mhawksey Slides http://go.alt.ac.uk/IWMW16-P9#IWMW16 #P9
Overview
Beyond page views...
Tim Berners-Lee in his office at the MIT, 1998.
Photograph: Elise Amendola/AP
Tracking used to be easy
Slide Credit: Nico Miceli nicomiceli.com
But the current web is a lot better… and cooler!
Image Credit: Unknown http://imgur.
com/8b8uYz6
Slide Credit: Nico Miceli nicomiceli.com
Pageviews just don’t cut it anymore
1 page view 1 page view 1 page view
Slide Credit: Nico Miceli nicomiceli.com
But tracking got more advanced
CC-BY David Bleasdale
https://flic.kr/p/mGimv
Understanding Engagement
Event Tracking - the James Bond of tracking
Clean, elegant, easy to use
Customizable to handle anything
Photo Credit: © 20th Century
Fox Home Video/MGM/UA
Slide Credit: Nico Miceli nicomiceli.com
Event Tracking
Event tracking is a piece of code with custom values that
you fire off when you want to track something
ga('send',
'event', // Required: type of tracking
'category', // Required: Category of event
'action', // Required: Action of event
'label', //optional value
value); //optional number
ga('send','event','category','action','label',value);
Slide Credit: Nico Miceli nicomiceli.com
<button id="b1">Hello World</button>
<script type="text/javascript">
$('#b1').click(function(event) {
ga('send','event','button','click','hello world',1);
});
</script>
Event Tracking
Track clicks on the button
HTML/jQuery
Slide Credit: Nico Miceli nicomiceli.com
Warning: “Google Analytics does not allow
Personally Identifiable Information (PII) (such
as names, email addresses) stored in the
Application. Your Analytics account could be
terminated if you use any of this information”
NO PERSONALLY IDENTIFIABLE INFORMATION
Slide Credit: Nico Miceli nicomiceli.com
“If your site has its own authentication system, you
can use the User ID feature, in addition to the
client ID, to more accurately identify a user across
all the devices they use to access your site.”
… BUT
// At a later time, once the `userId` value is known,
// sets the value on the tracker.
ga('set', 'userId', USER_ID);
JavaScript
ga('send','event','EMD101_Mod1_BSN101_1.1_Q3',
'multichoice-selection','21',5); Slide Credit: Nico Miceli nicomiceli.com
Google Analytics Event Tracking MCQs
… NOT USING GOOGLE TAGS MANAGER
Track clicks on the button with
Google Tag Manager
<button id="b1">Hello World</button>
Measurement Protocol
Lets interface … {API}
Image credit: CC-BY-NC nikki
The measurement protocol lets you send event/hits data to
Google Analytics via HTTP Requests:
https://www.google-analytics.com/collect
Name Parameter Example Description
Protocol Version v v=1 The protocol version.
The value should be 1.
Tracking ID tid tid=UA-123456-1 The ID that
distinguishes to which
Google Analytics
property to send data.
Client ID cid cid=xxxxx An ID unique to a
particular user.
Hit Type t t=pageview The type of interaction
collected for a particular
user.
Slide Credit: Nico Miceli nicomiceli.com
Kiosks
Smart TV
Apps
Point
of Sale
Devices
Web
Connected
Devices
Backend
Applications
Slide Credit: Nico Miceli nicomiceli.com
No tracking, no problem...
VLE
Script
Google
Analytics
Web View
• Runs every 15 min
• Identity stripped
• Text processing producing counts
Interacting with 3rd party APIs
https://mashe.hawksey.info/?p=17088
Parameter Value Type Default Value Max Length Supported Hit Types
qt integer None None all
Image Credit: CC-BY-SA per Corell
https://flic.kr/p/7BYwFa
Queue Time
Used to collect offline / latent hits
Image Credit: CC-BY Mikael Leppä
https://flic.kr/p/pdkyS3
Batch
Send multiple hits in a single request
● A maximum of 20 hits can be specified per request.
● The total size of all hit payloads cannot be greater than 16K bytes.
● No single hit payload can be greater than 8K bytes.
Instrumentation...
INSTRUMENTATION WITH ANALYTICS
Presented by Bruce Mcpherson at DevFest London 2014
https://goo.gl/lG5oC0
The Analytics of Things...
Track anything...Slide Credit: Nico Miceli nicomiceli.com
Google Analytics Sleep TrackerSlide Credit: Nico Miceli nicomiceli.com
Other Google Analytics APIs
Google Analytics Add-on for Google Sheets
Google Analytics superProxy and Google Analytics Data Bridge
https://developers.google.com/analytics/solutions/google-analytics-super-proxy
Summary
Experiment
CC-BY-ND https://flic.kr/p/dtZF7K
Slide Credit: Nico Miceli nicomiceli.com
Hopefully, you now know
a little more what is
possible
Image credit: CC-BY-NC-ND
Joe Foley https://flic.kr/p/Drgv6
Slide Credit: Nico Miceli nicomiceli.com
Image credit: timmacpherson.com
Now it’s time to get
creative!
Rethink the interactions
and engagement
Ask questions
Slide Credit: Nico Miceli nicomiceli.com
Questions?
+Martin Hawksey
@mhawksey
Thank you!
+Nico Miceli
@NicoMiceli
For slides and inspiration...

More Related Content

More from Martin Hawksey

More from Martin Hawksey (20)

Extracting and analyzing discussion data with google sheets and google analytics
Extracting and analyzing discussion data with google sheets and google analyticsExtracting and analyzing discussion data with google sheets and google analytics
Extracting and analyzing discussion data with google sheets and google analytics
 
Using WordPress as a badge platform #openbadgesHE
Using WordPress as a badge platform #openbadgesHEUsing WordPress as a badge platform #openbadgesHE
Using WordPress as a badge platform #openbadgesHE
 
Looking at creativity and culture in computer science to inspire better educa...
Looking at creativity and culture in computer science to inspire better educa...Looking at creativity and culture in computer science to inspire better educa...
Looking at creativity and culture in computer science to inspire better educa...
 
Google Apps Script: The authentic{ated} playground [2015 Ed.]
Google Apps Script: The authentic{ated} playground [2015 Ed.]Google Apps Script: The authentic{ated} playground [2015 Ed.]
Google Apps Script: The authentic{ated} playground [2015 Ed.]
 
Creating personal tutoring environments with Google Apps Script
Creating personal tutoring environments with Google Apps ScriptCreating personal tutoring environments with Google Apps Script
Creating personal tutoring environments with Google Apps Script
 
Learning analytics gaining good actionable insight
Learning analytics   gaining good actionable insightLearning analytics   gaining good actionable insight
Learning analytics gaining good actionable insight
 
Custom reporting from CiviCRM with Google Sheets
Custom reporting from CiviCRM with Google SheetsCustom reporting from CiviCRM with Google Sheets
Custom reporting from CiviCRM with Google Sheets
 
Learning analytics: Threats and opportunities
Learning analytics: Threats and opportunitiesLearning analytics: Threats and opportunities
Learning analytics: Threats and opportunities
 
Google Apps Script: The Authentic{ated} Playground
Google Apps Script: The Authentic{ated} PlaygroundGoogle Apps Script: The Authentic{ated} Playground
Google Apps Script: The Authentic{ated} Playground
 
Breaking the Cell #WebExpo
Breaking the Cell #WebExpo  Breaking the Cell #WebExpo
Breaking the Cell #WebExpo
 
Open Badges in Open Education – Do They Count? #eas14
Open Badges in Open Education – Do They Count? #eas14Open Badges in Open Education – Do They Count? #eas14
Open Badges in Open Education – Do They Count? #eas14
 
ocTEL and Open Badges #altc
ocTEL and Open Badges #altcocTEL and Open Badges #altc
ocTEL and Open Badges #altc
 
IWMW14: Hyper-connectED (ocTEL, Open Badges and the Personal Knowledge Graph)
IWMW14: Hyper-connectED (ocTEL, Open Badges and the Personal Knowledge Graph)IWMW14: Hyper-connectED (ocTEL, Open Badges and the Personal Knowledge Graph)
IWMW14: Hyper-connectED (ocTEL, Open Badges and the Personal Knowledge Graph)
 
Google {Learning} Analytics GEUG14
Google {Learning} Analytics GEUG14 Google {Learning} Analytics GEUG14
Google {Learning} Analytics GEUG14
 
Customising Google Apps for Education with Google Apps Script GEUG14
Customising Google Apps for Education with Google Apps Script GEUG14Customising Google Apps for Education with Google Apps Script GEUG14
Customising Google Apps for Education with Google Apps Script GEUG14
 
Detecting and Analyzing Subpopulations within Connectivist MOOCs: Initial work
Detecting and Analyzing Subpopulations within Connectivist MOOCs: Initial workDetecting and Analyzing Subpopulations within Connectivist MOOCs: Initial work
Detecting and Analyzing Subpopulations within Connectivist MOOCs: Initial work
 
The Open Course in Technology Enhanced Learning (ocTEL): Your time, your place
The Open Course in Technology Enhanced Learning (ocTEL): Your time, your placeThe Open Course in Technology Enhanced Learning (ocTEL): Your time, your place
The Open Course in Technology Enhanced Learning (ocTEL): Your time, your place
 
Taking on the dogmatic approach to education with a bit of ‘reclaim open digi...
Taking on the dogmatic approach to education with a bit of ‘reclaim open digi...Taking on the dogmatic approach to education with a bit of ‘reclaim open digi...
Taking on the dogmatic approach to education with a bit of ‘reclaim open digi...
 
What the little birdy tells me: Twitter in education
What the little birdy tells me: Twitter in educationWhat the little birdy tells me: Twitter in education
What the little birdy tells me: Twitter in education
 
Show me the data! Actionable insight from open courses
Show me the data! Actionable insight from open coursesShow me the data! Actionable insight from open courses
Show me the data! Actionable insight from open courses
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 

Recently uploaded (20)

Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 

The Google Analytics of Things (#iwmw16)