SlideShare a Scribd company logo
1 of 31
Download to read offline
Google	
  Analy+cs	
  for	
  Developers	
  
2016,	
  Rubén	
  Mar=nez	
  
A	
  pla?orm	
  to	
  report	
  the	
  behaviour	
  of	
  online	
  and	
  offline	
  visitors	
  to:	
  
•  Websites	
  
•  Mobile	
  applica+ons	
  
•  Connected	
  devices	
  
•  Online	
  instances	
  (email,	
  github)	
  
•  Offline	
  ac+vity	
  –	
  Physical	
  analy+cs!	
  
Google	
  Analy+cs	
  is:	
  
A	
  funnel	
  of	
  conversion	
  
Source:	
  Google	
  Analy+cs	
  
Google	
  Analy+cs	
  reports	
  incoming	
  traffic	
  to	
  webs	
  (and	
  apps)	
  
Comparison	
  of	
  the	
  organic	
  traffic	
  of	
  a	
  website	
  in	
  two	
  periods	
  of	
  +me	
  
Source:	
  Google	
  Analy+cs	
  
Google	
  Analy+cs	
  helps	
  understand	
  the	
  conversions	
  of	
  visits	
  
Organiza+on	
  of	
  the	
  pla?orm	
  
Source:	
  Google	
  Developers	
  
How	
  to	
  start	
  collec+ng	
  data	
  
Same	
  process	
  for	
  websites,	
  mobile	
  apps	
  and	
  gaming	
  apps	
  
	
  
1.  Sign	
  up	
  to	
  Google	
  Analy+cs	
  with	
  your	
  Google	
  account	
  (or	
  get	
  authorisa+on	
  as	
  a	
  User	
  by	
  the	
  account	
  owner)	
  
2.  Setup	
  a	
  web	
  property	
  (URL)	
  or	
  a	
  mobile	
  property	
  at	
  the	
  admin	
  panel	
  
3.  Paste	
  the	
  code	
  provided	
  by	
  Google	
  on	
  all	
  the	
  pages	
  or	
  download	
  the	
  {iOS,	
  Android}	
  SDK	
  and	
  integrate	
  it	
  into	
  
your	
  app	
  
4.  (API:	
  create	
  an	
  OAuth	
  2.0	
  client	
  ID	
  /	
  service	
  account	
  and	
  key)	
  
Source:	
  Google	
  
Tracking	
  code	
  for	
  mobile	
  apps	
  
Very	
  similar	
  to	
  tracking	
  web	
  apps	
  except:	
  
	
  
•  The	
  ga_trackingId	
  UA-­‐XXXX-­‐Y	
  of	
  your	
  mobile	
  app	
  will	
  be	
  different	
  to	
  your	
  web	
  applica+on	
  
•  The	
  na+ve	
  hit	
  of	
  the	
  analy+cs	
  of	
  mobile	
  apps	
  is	
  Screens,	
  not	
  pageviews	
  
Steps	
  1	
  and	
  2.	
  Administra+on	
  panel	
  of	
  Google	
  Analy+cs	
  
Source:	
  Google	
  
Step	
  3.	
  Start	
  collec+ng	
  your	
  data	
  
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function()
{ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })
(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-2282690-1', 'paradigmadigital.com');
ga('send', 'pageview');
</script>
Paste	
  the	
  code	
  provided	
  by	
  Google	
  on	
  all	
  the	
  pages	
  
This	
  script	
  triggers	
  a	
  sequence	
  of	
  tos	
  and	
  fros	
  between	
  your	
  applica+on	
  and	
  Google	
  Analy+cs’	
  servers.	
  
Sequence of events Client browser <> Google Analytics’ server
(*)	
  http://www.google-analytics.com/collect?v=1&_v=j20&a=806449001&t=pageview&_s=1&dl=http%3A%2F%2Fwww.domain.com%2F&ul=en-
us&de=UTF-8&sd=24-bit&sr=1920x1080&vp=1920x199&je=1&fl=13.0%20r0&_u=MAC~&cid=416165610.1399537988&tid=UA-XXXXXXX-1&z=2140666386
Servers	
  analy+cs.js	
  
<img>	
  element	
  in	
  the	
  DOM	
  
Requests	
  analy+cs.js	
  
GET	
  with	
  a	
  URL	
  (*)	
  containing	
  appended	
  values	
  	
  
single-­‐pixel	
  gif	
  
stores	
  the	
  hit	
  	
  
Web	
  browser	
  
Google	
  server	
  
The	
  4	
  cri+cal	
  variables:	
  v,	
  t,	
  cid	
  and	
  +d	
  
They	
  must	
  be	
  present	
  on	
  EVERY	
  call	
  to	
  be	
  accepted	
  by	
  GA	
  servers.	
  
	
  	
  
o  t=pageview	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  pageview	
  hit	
  type	
  
o  cid=416165610.1399537988	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  anonymous	
  Client	
  ID	
  
o  +d=UA-­‐2282690-­‐1	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  tracking	
  property	
  ID	
  
o  v=1	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  protocol	
  Version	
  	
  
	
  
	
  
GET	
  variables	
  
Spot	
  the	
  4	
  cri+cal	
  variables:	
  
	
  
o  t	
  
o  cid	
  
o  +d	
  
o  v	
  
Visualiza+on	
  of	
  tags	
  and	
  scripts	
  
Sequence	
  of	
  scripts	
  of	
  Google	
  Tag	
  Manager	
  and	
  tags	
  of	
  Google	
  Analy+cs	
  firing	
  
Animated	
  sequence	
  elaborated	
  from	
  screenshots	
  of	
  the	
  analy+cs	
  tool	
  WASP	
  by	
  Cardinal	
  Path	
  
Timing	
  of	
  JS	
  scripts	
  with	
  Google	
  Tag	
  Manager	
  	
  
Metrics	
  and	
  dimensions	
  
Dimensions	
  
	
  
Atributes	
  of	
  	
  
•  Visitors	
  
•  Sessions	
  
•  Hits:	
  page,	
  event	
  
The	
  values	
  of	
  dimensions	
  are	
  strings.	
  	
  
	
  
Metrics	
  
	
  
Counts	
  (average	
  integer	
  or	
  currencies)	
  
The	
  values	
  of	
  metrics	
  are	
  numbers.	
  
Event	
  hits	
  
Some	
  user	
  ac+ons	
  do	
  not	
  generate	
  pageviews:	
  
	
  
-­‐  comple+on	
  of	
  individual	
  form	
  fields	
  (“Send”)	
  
-­‐  clicks	
  on	
  external,	
  pdf	
  and	
  mailto:	
  links	
  
-­‐  video	
  plays	
  or	
  completes	
  
-­‐  ac+va+on	
  of	
  AJAX,	
  Flash,	
  jQuery	
  or	
  HTML5	
  interac+ons	
  
In	
  other	
  to	
  measure	
  and	
  report	
  these	
  ac+ons	
  tag	
  some	
  HTML	
  elements	
  as	
  events	
  by	
  hardcoding	
  each	
  one:	
  
ga(‘send’, ‘event’, ‘category’ ‘action’, ‘label’); 	
  
Custom	
  metrics	
  and	
  dimensions	
  
ga('send', 'pageview', { 'dimension5': ‘stockist' }); 	
  
Google	
  Analy+cs	
  is	
  not	
  restricted	
  to	
  its	
  built-­‐in	
  variables.	
  
	
  
You	
  can	
  be	
  setup	
  and	
  passed	
  as	
  custom	
  dimensions	
  or	
  custom	
  metrics	
  of	
  your	
  specific	
  applica+on.	
  
	
  
You	
  can	
  tag	
  some	
  pageviews	
  by	
  hardcoding	
  for	
  instance	
  a	
  dimension	
  specific	
  to	
  them,	
  e.g.	
  “stockist”:	
  
	
  
Google	
  Tag	
  Manager	
  
Snippet	
  provided	
  by	
  Google	
  to	
  paste	
  on	
  	
  your	
  web	
  applica+on	
  immeditely	
  ayer	
  the	
  tag	
  <body>:	
  
	
  
	
  
! !<!-- Google Tag Manager -->"
"
! !<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-NJTFQC""
"
! !height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>"
"
! !<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':"
"
! !new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],"
"
! !j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src="
"
! !'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);"
"
! !})(window,document,'script','dataLayer','GTM-NJTFQC'); </noscript>"
"
! !<!-- End Google Tag Manager -->	
  
Google	
  Tag	
  Manager	
  
Data	
  Layers	
  for	
  Google	
  Tag	
  Manager	
  replace	
  the	
  hardcoding	
  of	
  Google	
  Analy+cs	
  
<body>"
<script>"
dataLayer = [{"
'pageCategory': 'signup’,"
'visitorType': 'high-value’"
}];"
</script>"
<!-- Google Tag Manager à"
!snippet"
<!-- End Google Tag Manager -->"
Mark	
  up	
  of	
  events	
  
ID page Category
type
element id Action Label dataLayer
nkPR-001_Dashboard upsell button messages-link-message-{n} click submit {data}-{model}-{atributte-00}-{attribute-01}-{attribute-02}
nkPR-001_Dashboard upsell button messages-button-close-message-{n} click hide {data}-{model}-{atributte-00}-{attribute-01}-{attribute-02}
Crea+ng	
  event	
  tags	
  directly	
  within	
  the	
  Google	
  Tag	
  Manager	
  interface	
  spares	
  you	
  from	
  hardcoding	
  them	
  as	
  
with	
  Google	
  Analy+cs.	
  
	
  
Events	
  are	
  fired	
  	
  
•  with	
  triggers	
  based	
  on	
  predefined	
  variables	
  
•  on	
  custom	
  variables	
  that	
  you	
  can	
  build	
  within	
  the	
  Google	
  Tag	
  Manager	
  UI	
  
Example	
  of	
  specifica+ons	
  sent	
  by	
  Analysts	
  to	
  Developers	
  with	
  data	
  Layers	
  of	
  events	
  by	
  HTML	
  id	
  
Paste	
  the	
  tracking	
  code	
  in	
  the	
  <head>	
  of	
  all	
  the	
  web	
  pages	
  of	
  your	
  applica+on	
  
	
  
Start	
  tracking	
  from	
  day	
  zero	
  of	
  a	
  project	
  as	
  soon	
  as	
  you	
  have	
  something	
  in	
  pre-­‐produc+on	
  
	
  
Track	
  also	
  private	
  areas	
  (protected	
  by	
  a	
  login	
  and/or	
  disallowed	
  to	
  crawling	
  bots)	
  
	
  
________________________	
  
	
  
Do	
  not	
  collect	
  data	
  with	
  Google	
  Analy+cs’	
  script	
  analy+cs.js	
  AND	
  with	
  Google	
  Tag	
  Manager’s	
  container	
  
simultaneously	
  
	
  
Do	
  not	
  place	
  the	
  data	
  layer	
  code	
  ayer	
  the	
  container	
  snippet	
  
Do’s	
  and	
  don’ts	
  
Most	
  frequent	
  errors	
  
•  Missing	
  HTTP	
  response,	
  tags	
  not	
  fired	
  
•  Pas+ng	
  the	
  Google	
  Analy+cs	
  tracking	
  code	
  outside	
  of	
  the	
  <head>	
  sec+on	
  
•  Pas+ng	
  the	
  Google	
  Tag	
  Manager	
  code	
  snippet	
  not	
  immediately	
  ayer	
  the	
  opening	
  <body>	
  tag	
  
•  Mul+ple	
  installa+ons	
  of	
  Google	
  Tag	
  Manager	
  and	
  Google	
  Analy+cs	
  
•  Declara+on	
  of	
  names	
  of	
  parameters	
  instead	
  of	
  names	
  of	
  variables	
  in	
  Google	
  Analy+cs	
  
•  Missing	
  quotes	
  in	
  data	
  layer	
  fields	
  dataLayer.push({new-­‐variable:	
  "value"});	
  	
  in	
  Google	
  Tag	
  Manager	
  
	
  
Diagnose	
  your	
  Google	
  Analy+cs	
  implementa+on	
  
Debugging	
  tools	
  
	
  
•  Tag	
  Assistant	
  htps://support.google.com/tagassistant#topic=6000196	
  
•  JavaScript	
  Console	
  htp://ge?irebug.com/	
  
•  Google	
  Analy+cs	
  console	
  –	
  Repor+ng	
  -­‐	
  Real-­‐Time	
  
•  Google	
  API	
  Query	
  Explorer	
  htps://ga-­‐dev-­‐tools.appspot.com/query-­‐explorer/	
  
	
  
Google	
  Analy+cs	
  Universal	
  is	
  user-­‐centric	
  
Cookies are not used by mobile apps and browsers such as Safari on iphones.
The identification of users and their sessions takes place now at server level, not browser/cookie level.
Cookies are still used but Google warns that their format might change without warning.
Developers should not directly access the cookie analytics.js sets as it could lead to script errors and
incorrect data.
Developers should use the get command to retrieve the clientId value when needed.
ga(function(tracker) { var clientId = tracker.get('clientId'); });	
  
clientId for cross-device attribution
You can use a custom visitor ID based on customer email or ID in your database to merge smartphone /
laptop / pc sessions into one cross-device session.
Example: you can associate the clientID to their email address:
ga('create', 'UA-XXXX-Y', {'clientId': ’md5($email)' });
GA uses cookie value + domain as a unique internal identifier. If two or more websites set up the same
client ID value based on customer email, the data won't be corrupted, because they are using different
domains (and different GA profile id).
Track	
  transac+ons	
  by	
  individual	
  user	
  
In	
  an	
  e-­‐commerce	
  scenario	
  unique	
  ids	
  of	
  users	
  are	
  generated	
  through	
  the	
  authen+ca+on	
  passed	
  to	
  an	
  account	
  at	
  sign-­‐in.	
  The	
  User	
  
ID	
  will	
  allow	
  you	
  to	
  track	
  transac+ons	
  and	
  ac+vity	
  on	
  per	
  individual	
  customer	
  basis	
  (anonymized	
  by	
  TOS	
  of	
  Google).	
  
	
  
Add	
  the	
  following	
  line	
  to	
  your	
  tracking	
  code	
  to	
  send	
  User-­‐ID	
  data	
  to	
  Google	
  Analy+cs.	
  
ga('set', '&userId', 'USER_ID');
where	
  USER_ID	
  is	
  a	
  string	
  and	
  represents	
  the	
  anonymized	
  	
  andunique	
  ID	
  retrieved	
  from	
  your	
  system.	
  
	
  
Do	
  declare	
  the	
  variable	
  "userId"	
  instead	
  of	
  the	
  parameter	
  "uid”.	
  
Split	
  tes+ng	
  of	
  content	
  -­‐	
  a	
  mul+-­‐armed	
  bandit	
  approach	
  
Source:	
  Wikimedia.org	
  
Bayesian with greedy algorithms
Screenshot	
  of	
  a	
  real	
  experiment	
  that	
  	
  
Physical	
  analy+cs?	
  
You	
  can	
  send	
  data	
  to	
  Google	
  Analy+cs	
  using	
  by	
  making	
  either	
  POST	
  or	
  GET	
  requests	
  to	
  
the	
  following	
  end	
  point:	
  htps://www.google-­‐analy+cs.com/collect	
  
	
  
For	
  instance	
  sensors	
  firing	
  events	
  in	
  the	
  physical	
  world	
  can	
  be	
  sent	
  as	
  hit	
  type	
  “event”	
  
on	
  Google	
  Analy+cs	
  by	
  opening	
  the	
  URL	
  
	
  
	
  
htp://www.google-­‐analy+cs.com/collect?v=1&+d=UA-­‐XXXXXX-­‐
Y&cid=XXXXX.XXXXX&t=event&ec=in-­‐store&ea=walkthrough&el=frontdoor	
  
	
  
where	
  
	
  
ec:	
  event	
  category	
  
ea:	
  event	
  ac+on	
  
el:	
  event	
  label	
  
	
  
	
  
Sensor	
  connected	
  to	
  a	
  Raspberry	
  Pi	
  
Source:	
  htp://nicomiceli.com/tracking-­‐your-­‐home-­‐with-­‐google-­‐analy+cs/	
  
	
  
Read	
  more:	
  htps://developers.google.com/analy+cs/devguides/collec+on/protocol/v1/reference	
  
Thank you!
@ruben_dot

More Related Content

What's hot

SEO Tools of the Trade - Barcelona Affiliate Conference 2014
SEO Tools of the Trade - Barcelona Affiliate Conference 2014SEO Tools of the Trade - Barcelona Affiliate Conference 2014
SEO Tools of the Trade - Barcelona Affiliate Conference 2014Bastian Grimm
 
SMX West Structured Data Practical and Advanced
SMX West Structured Data Practical and AdvancedSMX West Structured Data Practical and Advanced
SMX West Structured Data Practical and AdvancedAlexis Sanders
 
Google Webmaster Tool Guide
Google Webmaster Tool GuideGoogle Webmaster Tool Guide
Google Webmaster Tool Guideitsyousuf
 
How google search engine work
How google search engine workHow google search engine work
How google search engine workLạc Lạc
 
Microformats HTML to API
Microformats HTML to APIMicroformats HTML to API
Microformats HTML to APIelliando dias
 
Mobile-First Indexing and AMP - SMX Advanced 2018
Mobile-First Indexing and AMP - SMX Advanced 2018Mobile-First Indexing and AMP - SMX Advanced 2018
Mobile-First Indexing and AMP - SMX Advanced 2018Alexis Sanders
 
SEO 101 webinar 10 25-2012
SEO 101 webinar 10 25-2012SEO 101 webinar 10 25-2012
SEO 101 webinar 10 25-2012451 Marketing
 
.NET Foundation website suggestions for improvement
.NET Foundation website suggestions for improvement.NET Foundation website suggestions for improvement
.NET Foundation website suggestions for improvementLee Englestone
 
Technical SEO Audit Checklist
Technical SEO Audit ChecklistTechnical SEO Audit Checklist
Technical SEO Audit ChecklistErudite
 
ARTDM 171, Week 15: Search Engine Optimization (SEO)
ARTDM 171, Week 15: Search Engine Optimization (SEO)ARTDM 171, Week 15: Search Engine Optimization (SEO)
ARTDM 171, Week 15: Search Engine Optimization (SEO)Gilbert Guerrero
 
What's in my SEO Toolbox: Linkbuilding Edition - SMX Milan 2014
What's in my SEO Toolbox: Linkbuilding Edition - SMX Milan 2014What's in my SEO Toolbox: Linkbuilding Edition - SMX Milan 2014
What's in my SEO Toolbox: Linkbuilding Edition - SMX Milan 2014Bastian Grimm
 
Web crawler with seo analysis
Web crawler with seo analysis Web crawler with seo analysis
Web crawler with seo analysis Vikram Parmar
 
The A-Z Glossary of SEO Terms & Definitions - Equinet Academy
The A-Z Glossary of SEO Terms & Definitions - Equinet AcademyThe A-Z Glossary of SEO Terms & Definitions - Equinet Academy
The A-Z Glossary of SEO Terms & Definitions - Equinet AcademyEquinet Academy
 
Search engine optimization (seo)
Search engine optimization (seo)Search engine optimization (seo)
Search engine optimization (seo)jhon smith
 
SMX East - SEO Tools Panel
SMX East - SEO Tools PanelSMX East - SEO Tools Panel
SMX East - SEO Tools PanelAbby Hamilton
 
Scrape box presentation
Scrape box presentationScrape box presentation
Scrape box presentationElephate1
 
Increasing App Installs With App Indexation By Justin Briggs
Increasing App Installs With App Indexation By Justin BriggsIncreasing App Installs With App Indexation By Justin Briggs
Increasing App Installs With App Indexation By Justin BriggsSearch Marketing Expo - SMX
 

What's hot (20)

SEO Tools of the Trade - Barcelona Affiliate Conference 2014
SEO Tools of the Trade - Barcelona Affiliate Conference 2014SEO Tools of the Trade - Barcelona Affiliate Conference 2014
SEO Tools of the Trade - Barcelona Affiliate Conference 2014
 
Lvr ppt
Lvr pptLvr ppt
Lvr ppt
 
SMX West Structured Data Practical and Advanced
SMX West Structured Data Practical and AdvancedSMX West Structured Data Practical and Advanced
SMX West Structured Data Practical and Advanced
 
SEO for developers
SEO for developersSEO for developers
SEO for developers
 
Google Webmaster Tool Guide
Google Webmaster Tool GuideGoogle Webmaster Tool Guide
Google Webmaster Tool Guide
 
How google search engine work
How google search engine workHow google search engine work
How google search engine work
 
SEO Animals
SEO AnimalsSEO Animals
SEO Animals
 
Microformats HTML to API
Microformats HTML to APIMicroformats HTML to API
Microformats HTML to API
 
Mobile-First Indexing and AMP - SMX Advanced 2018
Mobile-First Indexing and AMP - SMX Advanced 2018Mobile-First Indexing and AMP - SMX Advanced 2018
Mobile-First Indexing and AMP - SMX Advanced 2018
 
SEO 101 webinar 10 25-2012
SEO 101 webinar 10 25-2012SEO 101 webinar 10 25-2012
SEO 101 webinar 10 25-2012
 
.NET Foundation website suggestions for improvement
.NET Foundation website suggestions for improvement.NET Foundation website suggestions for improvement
.NET Foundation website suggestions for improvement
 
Technical SEO Audit Checklist
Technical SEO Audit ChecklistTechnical SEO Audit Checklist
Technical SEO Audit Checklist
 
ARTDM 171, Week 15: Search Engine Optimization (SEO)
ARTDM 171, Week 15: Search Engine Optimization (SEO)ARTDM 171, Week 15: Search Engine Optimization (SEO)
ARTDM 171, Week 15: Search Engine Optimization (SEO)
 
What's in my SEO Toolbox: Linkbuilding Edition - SMX Milan 2014
What's in my SEO Toolbox: Linkbuilding Edition - SMX Milan 2014What's in my SEO Toolbox: Linkbuilding Edition - SMX Milan 2014
What's in my SEO Toolbox: Linkbuilding Edition - SMX Milan 2014
 
Web crawler with seo analysis
Web crawler with seo analysis Web crawler with seo analysis
Web crawler with seo analysis
 
The A-Z Glossary of SEO Terms & Definitions - Equinet Academy
The A-Z Glossary of SEO Terms & Definitions - Equinet AcademyThe A-Z Glossary of SEO Terms & Definitions - Equinet Academy
The A-Z Glossary of SEO Terms & Definitions - Equinet Academy
 
Search engine optimization (seo)
Search engine optimization (seo)Search engine optimization (seo)
Search engine optimization (seo)
 
SMX East - SEO Tools Panel
SMX East - SEO Tools PanelSMX East - SEO Tools Panel
SMX East - SEO Tools Panel
 
Scrape box presentation
Scrape box presentationScrape box presentation
Scrape box presentation
 
Increasing App Installs With App Indexation By Justin Briggs
Increasing App Installs With App Indexation By Justin BriggsIncreasing App Installs With App Indexation By Justin Briggs
Increasing App Installs With App Indexation By Justin Briggs
 

Similar to Google Analytics for Developers

DevFest Kuala Lumpur - Implementing Google Analytics - 2011-09-29.ppt
DevFest Kuala Lumpur - Implementing Google Analytics - 2011-09-29.pptDevFest Kuala Lumpur - Implementing Google Analytics - 2011-09-29.ppt
DevFest Kuala Lumpur - Implementing Google Analytics - 2011-09-29.pptVinoaj Vijeyakumaar
 
GTUG Philippines - Implementing Google Analytics - 2011-10-11
GTUG Philippines - Implementing Google Analytics - 2011-10-11GTUG Philippines - Implementing Google Analytics - 2011-10-11
GTUG Philippines - Implementing Google Analytics - 2011-10-11Vinoaj Vijeyakumaar
 
Usando metodologías ágiles en UX
Usando metodologías ágiles en UX Usando metodologías ágiles en UX
Usando metodologías ágiles en UX Paradigma Digital
 
DevFest Chiang Mai - Implementing Google Analytics - 2011-09-24.ppt
DevFest Chiang Mai - Implementing Google Analytics - 2011-09-24.pptDevFest Chiang Mai - Implementing Google Analytics - 2011-09-24.ppt
DevFest Chiang Mai - Implementing Google Analytics - 2011-09-24.pptVinoaj Vijeyakumaar
 
implemetning google analytics - 2011-09-24 Google Devfest Chiangmai
implemetning google analytics - 2011-09-24 Google Devfest Chiangmaiimplemetning google analytics - 2011-09-24 Google Devfest Chiangmai
implemetning google analytics - 2011-09-24 Google Devfest ChiangmaiPawoot (Pom) Pongvitayapanu
 
Google Analytics for Beginners - Training
Google Analytics for Beginners - TrainingGoogle Analytics for Beginners - Training
Google Analytics for Beginners - TrainingRuben Vezzoli
 
Google Analytics intro - Best practices for WCM
Google Analytics intro - Best practices for WCMGoogle Analytics intro - Best practices for WCM
Google Analytics intro - Best practices for WCMAmplexor
 
Microsoft Graph: Connect to essential data every app needs
Microsoft Graph: Connect to essential data every app needsMicrosoft Graph: Connect to essential data every app needs
Microsoft Graph: Connect to essential data every app needsMicrosoft Tech Community
 
Microsoft Graph: Connect to essential data every app needs
Microsoft Graph: Connect to essential data every app needsMicrosoft Graph: Connect to essential data every app needs
Microsoft Graph: Connect to essential data every app needsMicrosoft Tech Community
 
Image archive, analysis & report generation with Google Cloud
Image archive, analysis & report generation with Google CloudImage archive, analysis & report generation with Google Cloud
Image archive, analysis & report generation with Google Cloudwesley chun
 
Google Optimize for testing and personalization
Google Optimize for testing and personalizationGoogle Optimize for testing and personalization
Google Optimize for testing and personalizationOWOX BI
 
Google Apps Script: Accessing G Suite & other Google services with JavaScript
Google Apps Script: Accessing G Suite & other Google services with JavaScriptGoogle Apps Script: Accessing G Suite & other Google services with JavaScript
Google Apps Script: Accessing G Suite & other Google services with JavaScriptwesley chun
 
Using Google (Cloud) APIs
Using Google (Cloud) APIsUsing Google (Cloud) APIs
Using Google (Cloud) APIswesley chun
 
Power your apps with Gmail, Google Drive, Calendar, Sheets, Slides & more
Power your apps with Gmail, Google Drive, Calendar, Sheets, Slides & morePower your apps with Gmail, Google Drive, Calendar, Sheets, Slides & more
Power your apps with Gmail, Google Drive, Calendar, Sheets, Slides & morewesley chun
 
Designerfair 2011
Designerfair 2011Designerfair 2011
Designerfair 2011douglee650
 
Introducing Hangout Apps
Introducing Hangout AppsIntroducing Hangout Apps
Introducing Hangout AppsJonathan Beri
 
Google Analytics Report Automation (Magic Script)
Google Analytics Report Automation (Magic Script)Google Analytics Report Automation (Magic Script)
Google Analytics Report Automation (Magic Script)Keshav Kashyap
 
Google Analytics Report Automation (Magic Script)
Google Analytics Report Automation (Magic Script)Google Analytics Report Automation (Magic Script)
Google Analytics Report Automation (Magic Script)Keshav Kashyap
 
Google Analytics Report Automation (Magic)
Google Analytics Report Automation (Magic) Google Analytics Report Automation (Magic)
Google Analytics Report Automation (Magic) Keshav Kashyap
 

Similar to Google Analytics for Developers (20)

Cómo usar google analytics
Cómo usar google analyticsCómo usar google analytics
Cómo usar google analytics
 
DevFest Kuala Lumpur - Implementing Google Analytics - 2011-09-29.ppt
DevFest Kuala Lumpur - Implementing Google Analytics - 2011-09-29.pptDevFest Kuala Lumpur - Implementing Google Analytics - 2011-09-29.ppt
DevFest Kuala Lumpur - Implementing Google Analytics - 2011-09-29.ppt
 
GTUG Philippines - Implementing Google Analytics - 2011-10-11
GTUG Philippines - Implementing Google Analytics - 2011-10-11GTUG Philippines - Implementing Google Analytics - 2011-10-11
GTUG Philippines - Implementing Google Analytics - 2011-10-11
 
Usando metodologías ágiles en UX
Usando metodologías ágiles en UX Usando metodologías ágiles en UX
Usando metodologías ágiles en UX
 
DevFest Chiang Mai - Implementing Google Analytics - 2011-09-24.ppt
DevFest Chiang Mai - Implementing Google Analytics - 2011-09-24.pptDevFest Chiang Mai - Implementing Google Analytics - 2011-09-24.ppt
DevFest Chiang Mai - Implementing Google Analytics - 2011-09-24.ppt
 
implemetning google analytics - 2011-09-24 Google Devfest Chiangmai
implemetning google analytics - 2011-09-24 Google Devfest Chiangmaiimplemetning google analytics - 2011-09-24 Google Devfest Chiangmai
implemetning google analytics - 2011-09-24 Google Devfest Chiangmai
 
Google Analytics for Beginners - Training
Google Analytics for Beginners - TrainingGoogle Analytics for Beginners - Training
Google Analytics for Beginners - Training
 
Google Analytics intro - Best practices for WCM
Google Analytics intro - Best practices for WCMGoogle Analytics intro - Best practices for WCM
Google Analytics intro - Best practices for WCM
 
Microsoft Graph: Connect to essential data every app needs
Microsoft Graph: Connect to essential data every app needsMicrosoft Graph: Connect to essential data every app needs
Microsoft Graph: Connect to essential data every app needs
 
Microsoft Graph: Connect to essential data every app needs
Microsoft Graph: Connect to essential data every app needsMicrosoft Graph: Connect to essential data every app needs
Microsoft Graph: Connect to essential data every app needs
 
Image archive, analysis & report generation with Google Cloud
Image archive, analysis & report generation with Google CloudImage archive, analysis & report generation with Google Cloud
Image archive, analysis & report generation with Google Cloud
 
Google Optimize for testing and personalization
Google Optimize for testing and personalizationGoogle Optimize for testing and personalization
Google Optimize for testing and personalization
 
Google Apps Script: Accessing G Suite & other Google services with JavaScript
Google Apps Script: Accessing G Suite & other Google services with JavaScriptGoogle Apps Script: Accessing G Suite & other Google services with JavaScript
Google Apps Script: Accessing G Suite & other Google services with JavaScript
 
Using Google (Cloud) APIs
Using Google (Cloud) APIsUsing Google (Cloud) APIs
Using Google (Cloud) APIs
 
Power your apps with Gmail, Google Drive, Calendar, Sheets, Slides & more
Power your apps with Gmail, Google Drive, Calendar, Sheets, Slides & morePower your apps with Gmail, Google Drive, Calendar, Sheets, Slides & more
Power your apps with Gmail, Google Drive, Calendar, Sheets, Slides & more
 
Designerfair 2011
Designerfair 2011Designerfair 2011
Designerfair 2011
 
Introducing Hangout Apps
Introducing Hangout AppsIntroducing Hangout Apps
Introducing Hangout Apps
 
Google Analytics Report Automation (Magic Script)
Google Analytics Report Automation (Magic Script)Google Analytics Report Automation (Magic Script)
Google Analytics Report Automation (Magic Script)
 
Google Analytics Report Automation (Magic Script)
Google Analytics Report Automation (Magic Script)Google Analytics Report Automation (Magic Script)
Google Analytics Report Automation (Magic Script)
 
Google Analytics Report Automation (Magic)
Google Analytics Report Automation (Magic) Google Analytics Report Automation (Magic)
Google Analytics Report Automation (Magic)
 

Recently uploaded

办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一fhwihughh
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptSonatrach
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
Top 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In QueensTop 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In Queensdataanalyticsqueen03
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...soniya singh
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxStephen266013
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Sapana Sha
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort servicejennyeacort
 
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理e4aez8ss
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDRafezzaman
 
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改yuu sss
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degreeyuu sss
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 

Recently uploaded (20)

办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
 
Call Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort ServiceCall Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort Service
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
Top 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In QueensTop 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In Queens
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docx
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
 
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 

Google Analytics for Developers

  • 1. Google  Analy+cs  for  Developers   2016,  Rubén  Mar=nez  
  • 2. A  pla?orm  to  report  the  behaviour  of  online  and  offline  visitors  to:   •  Websites   •  Mobile  applica+ons   •  Connected  devices   •  Online  instances  (email,  github)   •  Offline  ac+vity  –  Physical  analy+cs!   Google  Analy+cs  is:   A  funnel  of  conversion   Source:  Google  Analy+cs  
  • 3. Google  Analy+cs  reports  incoming  traffic  to  webs  (and  apps)   Comparison  of  the  organic  traffic  of  a  website  in  two  periods  of  +me   Source:  Google  Analy+cs  
  • 4. Google  Analy+cs  helps  understand  the  conversions  of  visits  
  • 5. Organiza+on  of  the  pla?orm   Source:  Google  Developers  
  • 6. How  to  start  collec+ng  data   Same  process  for  websites,  mobile  apps  and  gaming  apps     1.  Sign  up  to  Google  Analy+cs  with  your  Google  account  (or  get  authorisa+on  as  a  User  by  the  account  owner)   2.  Setup  a  web  property  (URL)  or  a  mobile  property  at  the  admin  panel   3.  Paste  the  code  provided  by  Google  on  all  the  pages  or  download  the  {iOS,  Android}  SDK  and  integrate  it  into   your  app   4.  (API:  create  an  OAuth  2.0  client  ID  /  service  account  and  key)   Source:  Google  
  • 7. Tracking  code  for  mobile  apps   Very  similar  to  tracking  web  apps  except:     •  The  ga_trackingId  UA-­‐XXXX-­‐Y  of  your  mobile  app  will  be  different  to  your  web  applica+on   •  The  na+ve  hit  of  the  analy+cs  of  mobile  apps  is  Screens,  not  pageviews  
  • 8. Steps  1  and  2.  Administra+on  panel  of  Google  Analy+cs   Source:  Google  
  • 9. Step  3.  Start  collec+ng  your  data   <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function() { (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) }) (window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-2282690-1', 'paradigmadigital.com'); ga('send', 'pageview'); </script> Paste  the  code  provided  by  Google  on  all  the  pages   This  script  triggers  a  sequence  of  tos  and  fros  between  your  applica+on  and  Google  Analy+cs’  servers.  
  • 10. Sequence of events Client browser <> Google Analytics’ server (*)  http://www.google-analytics.com/collect?v=1&_v=j20&a=806449001&t=pageview&_s=1&dl=http%3A%2F%2Fwww.domain.com%2F&ul=en- us&de=UTF-8&sd=24-bit&sr=1920x1080&vp=1920x199&je=1&fl=13.0%20r0&_u=MAC~&cid=416165610.1399537988&tid=UA-XXXXXXX-1&z=2140666386 Servers  analy+cs.js   <img>  element  in  the  DOM   Requests  analy+cs.js   GET  with  a  URL  (*)  containing  appended  values     single-­‐pixel  gif   stores  the  hit     Web  browser   Google  server  
  • 11. The  4  cri+cal  variables:  v,  t,  cid  and  +d   They  must  be  present  on  EVERY  call  to  be  accepted  by  GA  servers.       o  t=pageview                                                                                          pageview  hit  type   o  cid=416165610.1399537988                              anonymous  Client  ID   o  +d=UA-­‐2282690-­‐1                                                                  tracking  property  ID   o  v=1                                                                                                                        protocol  Version        
  • 12. GET  variables   Spot  the  4  cri+cal  variables:     o  t   o  cid   o  +d   o  v  
  • 13. Visualiza+on  of  tags  and  scripts   Sequence  of  scripts  of  Google  Tag  Manager  and  tags  of  Google  Analy+cs  firing   Animated  sequence  elaborated  from  screenshots  of  the  analy+cs  tool  WASP  by  Cardinal  Path  
  • 14. Timing  of  JS  scripts  with  Google  Tag  Manager    
  • 15. Metrics  and  dimensions   Dimensions     Atributes  of     •  Visitors   •  Sessions   •  Hits:  page,  event   The  values  of  dimensions  are  strings.       Metrics     Counts  (average  integer  or  currencies)   The  values  of  metrics  are  numbers.  
  • 16. Event  hits   Some  user  ac+ons  do  not  generate  pageviews:     -­‐  comple+on  of  individual  form  fields  (“Send”)   -­‐  clicks  on  external,  pdf  and  mailto:  links   -­‐  video  plays  or  completes   -­‐  ac+va+on  of  AJAX,  Flash,  jQuery  or  HTML5  interac+ons   In  other  to  measure  and  report  these  ac+ons  tag  some  HTML  elements  as  events  by  hardcoding  each  one:   ga(‘send’, ‘event’, ‘category’ ‘action’, ‘label’);  
  • 17. Custom  metrics  and  dimensions   ga('send', 'pageview', { 'dimension5': ‘stockist' });   Google  Analy+cs  is  not  restricted  to  its  built-­‐in  variables.     You  can  be  setup  and  passed  as  custom  dimensions  or  custom  metrics  of  your  specific  applica+on.     You  can  tag  some  pageviews  by  hardcoding  for  instance  a  dimension  specific  to  them,  e.g.  “stockist”:    
  • 18. Google  Tag  Manager   Snippet  provided  by  Google  to  paste  on    your  web  applica+on  immeditely  ayer  the  tag  <body>:       ! !<!-- Google Tag Manager -->" " ! !<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-NJTFQC"" " ! !height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>" " ! !<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':" " ! !new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0]," " ! !j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=" " ! !'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);" " ! !})(window,document,'script','dataLayer','GTM-NJTFQC'); </noscript>" " ! !<!-- End Google Tag Manager -->  
  • 19. Google  Tag  Manager   Data  Layers  for  Google  Tag  Manager  replace  the  hardcoding  of  Google  Analy+cs   <body>" <script>" dataLayer = [{" 'pageCategory': 'signup’," 'visitorType': 'high-value’" }];" </script>" <!-- Google Tag Manager à" !snippet" <!-- End Google Tag Manager -->"
  • 20. Mark  up  of  events   ID page Category type element id Action Label dataLayer nkPR-001_Dashboard upsell button messages-link-message-{n} click submit {data}-{model}-{atributte-00}-{attribute-01}-{attribute-02} nkPR-001_Dashboard upsell button messages-button-close-message-{n} click hide {data}-{model}-{atributte-00}-{attribute-01}-{attribute-02} Crea+ng  event  tags  directly  within  the  Google  Tag  Manager  interface  spares  you  from  hardcoding  them  as   with  Google  Analy+cs.     Events  are  fired     •  with  triggers  based  on  predefined  variables   •  on  custom  variables  that  you  can  build  within  the  Google  Tag  Manager  UI   Example  of  specifica+ons  sent  by  Analysts  to  Developers  with  data  Layers  of  events  by  HTML  id  
  • 21. Paste  the  tracking  code  in  the  <head>  of  all  the  web  pages  of  your  applica+on     Start  tracking  from  day  zero  of  a  project  as  soon  as  you  have  something  in  pre-­‐produc+on     Track  also  private  areas  (protected  by  a  login  and/or  disallowed  to  crawling  bots)     ________________________     Do  not  collect  data  with  Google  Analy+cs’  script  analy+cs.js  AND  with  Google  Tag  Manager’s  container   simultaneously     Do  not  place  the  data  layer  code  ayer  the  container  snippet   Do’s  and  don’ts  
  • 22. Most  frequent  errors   •  Missing  HTTP  response,  tags  not  fired   •  Pas+ng  the  Google  Analy+cs  tracking  code  outside  of  the  <head>  sec+on   •  Pas+ng  the  Google  Tag  Manager  code  snippet  not  immediately  ayer  the  opening  <body>  tag   •  Mul+ple  installa+ons  of  Google  Tag  Manager  and  Google  Analy+cs   •  Declara+on  of  names  of  parameters  instead  of  names  of  variables  in  Google  Analy+cs   •  Missing  quotes  in  data  layer  fields  dataLayer.push({new-­‐variable:  "value"});    in  Google  Tag  Manager    
  • 23. Diagnose  your  Google  Analy+cs  implementa+on  
  • 24. Debugging  tools     •  Tag  Assistant  htps://support.google.com/tagassistant#topic=6000196   •  JavaScript  Console  htp://ge?irebug.com/   •  Google  Analy+cs  console  –  Repor+ng  -­‐  Real-­‐Time   •  Google  API  Query  Explorer  htps://ga-­‐dev-­‐tools.appspot.com/query-­‐explorer/    
  • 25. Google  Analy+cs  Universal  is  user-­‐centric   Cookies are not used by mobile apps and browsers such as Safari on iphones. The identification of users and their sessions takes place now at server level, not browser/cookie level. Cookies are still used but Google warns that their format might change without warning. Developers should not directly access the cookie analytics.js sets as it could lead to script errors and incorrect data. Developers should use the get command to retrieve the clientId value when needed. ga(function(tracker) { var clientId = tracker.get('clientId'); });  
  • 26. clientId for cross-device attribution You can use a custom visitor ID based on customer email or ID in your database to merge smartphone / laptop / pc sessions into one cross-device session. Example: you can associate the clientID to their email address: ga('create', 'UA-XXXX-Y', {'clientId': ’md5($email)' }); GA uses cookie value + domain as a unique internal identifier. If two or more websites set up the same client ID value based on customer email, the data won't be corrupted, because they are using different domains (and different GA profile id).
  • 27. Track  transac+ons  by  individual  user   In  an  e-­‐commerce  scenario  unique  ids  of  users  are  generated  through  the  authen+ca+on  passed  to  an  account  at  sign-­‐in.  The  User   ID  will  allow  you  to  track  transac+ons  and  ac+vity  on  per  individual  customer  basis  (anonymized  by  TOS  of  Google).     Add  the  following  line  to  your  tracking  code  to  send  User-­‐ID  data  to  Google  Analy+cs.   ga('set', '&userId', 'USER_ID'); where  USER_ID  is  a  string  and  represents  the  anonymized    andunique  ID  retrieved  from  your  system.     Do  declare  the  variable  "userId"  instead  of  the  parameter  "uid”.  
  • 28. Split  tes+ng  of  content  -­‐  a  mul+-­‐armed  bandit  approach   Source:  Wikimedia.org  
  • 29. Bayesian with greedy algorithms Screenshot  of  a  real  experiment  that    
  • 30. Physical  analy+cs?   You  can  send  data  to  Google  Analy+cs  using  by  making  either  POST  or  GET  requests  to   the  following  end  point:  htps://www.google-­‐analy+cs.com/collect     For  instance  sensors  firing  events  in  the  physical  world  can  be  sent  as  hit  type  “event”   on  Google  Analy+cs  by  opening  the  URL       htp://www.google-­‐analy+cs.com/collect?v=1&+d=UA-­‐XXXXXX-­‐ Y&cid=XXXXX.XXXXX&t=event&ec=in-­‐store&ea=walkthrough&el=frontdoor     where     ec:  event  category   ea:  event  ac+on   el:  event  label       Sensor  connected  to  a  Raspberry  Pi   Source:  htp://nicomiceli.com/tracking-­‐your-­‐home-­‐with-­‐google-­‐analy+cs/     Read  more:  htps://developers.google.com/analy+cs/devguides/collec+on/protocol/v1/reference