SlideShare una empresa de Scribd logo
1 de 17
Descargar para leer sin conexión
digmato.com | @appeltauer
Start faster with

Google Analytics API
Roman Appeltauer

Web Analytics consultant
digmato.com
Prague September 12th 2015
digmato.com | @appeltauer
Automation
Wikipedia:
The biggest benefit of
automation is that it saves
labor, however, it is also used to
save energy and materials and to
improve quality, accuracy and
precision.
digmato.com | @appeltauer
Automation in web Analytics
• Save time on doing basic stuff again and again and again and...
• Analysts should do things that actually add value
• Make less errors (you would be surprised)
• Check more (facts|often|details) than you would manually
digmato.com | @appeltauer
Google Analytics API
https://youtu.be/V3d1rJacww4
digmato.com | @appeltauer
Choose development method
• Choose API method (https://developers.google.com/identity/protocols/OAuth2)
• JavaScript - great for simple dashboards (Embed API)
• Web Server app - more complex, may work while you are offline
• Or consider ready solutions
• GA Spreadsheet Add-on, or in library
• Find an open source app
digmato.com | @appeltauer
Register your Project
• Register and set up Project (https://console.developers.google.com/project)
• Each Project has it's own Credentials

Choose OAuth 2.0 client ID
• Activate Google Analytics API
digmato.com | @appeltauer
Download Google API library
• Choose your preferred technology
• Some libraries are in Beta, but work well ;-)
• The library contains all availale APIs, not just Google Analytics
• Start with bundled examples and make very simple app in minutes
• https://developers.google.com/discovery/libraries
digmato.com | @appeltauer
Hello Analytics API: First steps
• Start on Core Reporting API guides page
• Find your technology e.g. PHP Quickstarts
• You'll get guided through example code
• Don't forget to paste Project Credentials (as shown before)
digmato.com | @appeltauer
Check rich resources
• Very helpful Official documentation
• Reporting APIs
• Configuration APIs
• Check Demos and Tools (https://ga-dev-tools.appspot.com)
• Implementation guides
digmato.com | @appeltauer
Who is your app for?
• You'll save a lot of time if your app is for closed group of users
• 80% of DIGMATO.com code deals with specifics
• Account selectors - tailor made app may hardcode many custom settings
• Insufficient user permissions - you know what rights your app needs
• Visualization of results - smart tables, colors, progress bars
• Validation of finished user request - reality checks, finish on back-end
• Handling Google Analytics API error responses - retry, log, notify user if needed
digmato.com | @appeltauer
Limitations
• 50 000 calls a day - ok for most apps
• 500 management writes a day

- bad e.g. for Referral SPAM tools
• Rate limit up to 10 hits per second read
(1 hit/s write)
• Quota usage monitoring in Developers
Console
digmato.com | @appeltauer
Make sure you create the right thing
digmato.com | @appeltauer
Never automate what you can't do manually
• The app will break - you just don't know when

(API changes, server and browser updates)
• You might have no backup solution if the app breaks
• You need to be able to improvise when data breaks

(wrong UTM params, change in URLs, bug in tracking code)
• You'll need to drill down manually when numbers get interesting
• It will take too much time and you'll never be sure if it works.
digmato.com | @appeltauer
Don't reinvent the wheel
• Tailor made functionality saves most of the time
• Common features pay back when used very often (or by many people)
• Ready apps are great for most use-cases and first steps
• Don't duplicate Google Analytics features without adding value
digmato.com | @appeltauer
Don't create app you won't need
• App for one-time use is wasting of your time
• Prioritize features you'll use often enough
• Likely there's an app for that and costs much less than your time
digmato.com | @appeltauer
Create apps for others
• Give marketers the data they need - it's worth it!
• Easy-to-get data lead to more actionable insights
• It's more fun to make life easier for others
digmato.com | @appeltauer
Thank you!
Roman Appeltauer
https://digmato.com
roman@digmato.com
@appeltauer

Más contenido relacionado

Último

( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
nilamkumrai
 
💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
nirzagarg
 
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
ydyuyu
 
( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...
( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...
( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...
nilamkumrai
 

Último (20)

Al Barsha Night Partner +0567686026 Call Girls Dubai
Al Barsha Night Partner +0567686026 Call Girls  DubaiAl Barsha Night Partner +0567686026 Call Girls  Dubai
Al Barsha Night Partner +0567686026 Call Girls Dubai
 
Katraj ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For S...
Katraj ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For S...Katraj ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For S...
Katraj ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For S...
 
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
 
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
 
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
 
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
 
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
 
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
 
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
 
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
 
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
 
💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
 
APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53
 
Dubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls Dubai
Dubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls DubaiDubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls Dubai
Dubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls Dubai
 
Trump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts SweatshirtTrump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts Sweatshirt
 
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
 
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
 
( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...
( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...
( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...
 
Busty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort Service
Busty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort ServiceBusty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort Service
Busty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort Service
 
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
 

Destacado

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Destacado (20)

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

Start faster with Google Analytics API

  • 1. digmato.com | @appeltauer Start faster with
 Google Analytics API Roman Appeltauer
 Web Analytics consultant digmato.com Prague September 12th 2015
  • 2. digmato.com | @appeltauer Automation Wikipedia: The biggest benefit of automation is that it saves labor, however, it is also used to save energy and materials and to improve quality, accuracy and precision.
  • 3. digmato.com | @appeltauer Automation in web Analytics • Save time on doing basic stuff again and again and again and... • Analysts should do things that actually add value • Make less errors (you would be surprised) • Check more (facts|often|details) than you would manually
  • 4. digmato.com | @appeltauer Google Analytics API https://youtu.be/V3d1rJacww4
  • 5. digmato.com | @appeltauer Choose development method • Choose API method (https://developers.google.com/identity/protocols/OAuth2) • JavaScript - great for simple dashboards (Embed API) • Web Server app - more complex, may work while you are offline • Or consider ready solutions • GA Spreadsheet Add-on, or in library • Find an open source app
  • 6. digmato.com | @appeltauer Register your Project • Register and set up Project (https://console.developers.google.com/project) • Each Project has it's own Credentials
 Choose OAuth 2.0 client ID • Activate Google Analytics API
  • 7. digmato.com | @appeltauer Download Google API library • Choose your preferred technology • Some libraries are in Beta, but work well ;-) • The library contains all availale APIs, not just Google Analytics • Start with bundled examples and make very simple app in minutes • https://developers.google.com/discovery/libraries
  • 8. digmato.com | @appeltauer Hello Analytics API: First steps • Start on Core Reporting API guides page • Find your technology e.g. PHP Quickstarts • You'll get guided through example code • Don't forget to paste Project Credentials (as shown before)
  • 9. digmato.com | @appeltauer Check rich resources • Very helpful Official documentation • Reporting APIs • Configuration APIs • Check Demos and Tools (https://ga-dev-tools.appspot.com) • Implementation guides
  • 10. digmato.com | @appeltauer Who is your app for? • You'll save a lot of time if your app is for closed group of users • 80% of DIGMATO.com code deals with specifics • Account selectors - tailor made app may hardcode many custom settings • Insufficient user permissions - you know what rights your app needs • Visualization of results - smart tables, colors, progress bars • Validation of finished user request - reality checks, finish on back-end • Handling Google Analytics API error responses - retry, log, notify user if needed
  • 11. digmato.com | @appeltauer Limitations • 50 000 calls a day - ok for most apps • 500 management writes a day
 - bad e.g. for Referral SPAM tools • Rate limit up to 10 hits per second read (1 hit/s write) • Quota usage monitoring in Developers Console
  • 12. digmato.com | @appeltauer Make sure you create the right thing
  • 13. digmato.com | @appeltauer Never automate what you can't do manually • The app will break - you just don't know when
 (API changes, server and browser updates) • You might have no backup solution if the app breaks • You need to be able to improvise when data breaks
 (wrong UTM params, change in URLs, bug in tracking code) • You'll need to drill down manually when numbers get interesting • It will take too much time and you'll never be sure if it works.
  • 14. digmato.com | @appeltauer Don't reinvent the wheel • Tailor made functionality saves most of the time • Common features pay back when used very often (or by many people) • Ready apps are great for most use-cases and first steps • Don't duplicate Google Analytics features without adding value
  • 15. digmato.com | @appeltauer Don't create app you won't need • App for one-time use is wasting of your time • Prioritize features you'll use often enough • Likely there's an app for that and costs much less than your time
  • 16. digmato.com | @appeltauer Create apps for others • Give marketers the data they need - it's worth it! • Easy-to-get data lead to more actionable insights • It's more fun to make life easier for others
  • 17. digmato.com | @appeltauer Thank you! Roman Appeltauer https://digmato.com roman@digmato.com @appeltauer