SlideShare a Scribd company logo
1 of 19
Claye Stokes
                       Director of SEO

                    twitter.com/claye
               linkedin.com/in/claye
     Google Plus: http://goo.gl/cEhGC




Google Analytics API and
  Advanced Application
High Level First, Then Drilling Down
• GA (Google Analytics) is NOT just for websites!
      – Google Analytics Android SDK
• Can’t track what we’re not measuring!
• SDK Tracks:
      –   Events
      –   Ecommerce
      –   Market Referrals
      –   Pageviews
      –   Unique Users
      –   Custom Variables

Tweet @claye questions
Track Everything
      – All actions
      – Form submissions (lead generation, newsletters, etc.)
      – Errors
      – Downloads
      – Game modes (single vs multiplayer)
      – Times (time it takes to complete a level, build a doc)
      – Step completion (in multi-step forms and checkout
        processes)
      – Registration


Tweet @claye questions
How to Track
• Use Pageviews when content changes
• Use Event Tracking for actions
      – Example:
        tracker.trackPageView(“/” +
        this.getLocalClassName());
      – Documentation:
        https://developers.google.com/analytics/devguid
        es/collection/android/



Tweet @claye questions
Listen App
More Events
• Why not track errors with Google Analytics?
  – Category: Error
  – Action: [action that triggered the exception]
• Time can be tracked, for example:
  – Category: Podcast
  – Action: Play
  – Label: [Title of Podcast]
  – Value: 15:23
Using the Reports
• Segment!
      – How does your app perform on various devices?
      – How does that affect user behavior?
      – Screen resolution?
      – Landscape vs Portrait?




Tweet @claye questions
Google Analytics API
• Get the good stuff! (Reports that are
  impossible to get by logging in)
      – Example: goal completions (conversions) by
        keyword
• Documentation:
    https://developers.google.com/analytics/devguides/




Tweet @claye questions
Google Spreadsheets + GA API
• Using Apps Script, we can access the Google
  Analytics API to pull anything we want (up to
  10,000 rows!)
• Credit where it’s due: thanks to Mikael
  Thuneberg for making his code public:
  http://www.automateanalytics.com/




Tweet @claye questions
Example Spreadsheet: GA Report Builder

• http://goo.gl/QqlHZ
• Go create a copy for yourself and start playing with
  it!
       – Click File -> Make a Copy…
       – On the Settings tab, enter your Google Analytics
         username/password
       – Find your profile number by logging into your report at
         www.google.com/analytics, find the number with a ‘p’
         preceding it



Tweet @claye questions, Report: http://goo.gl/QqlHZ
GA Report Builder
• Required fields
       – Start/End Dates
       – Dimensions (rows)
       – Metrics (columns)
• Optional
       – Segments (default AND custom, advanced
         segments)
       – Filters


Tweet @claye questions, Report: http://goo.gl/QqlHZ
How it Works
• First, we do some validation




Tweet @claye questions, Report: http://goo.gl/QqlHZ
How it Works
• Encode the password




Tweet @claye questions, Report: http://goo.gl/QqlHZ
How it Works
• Authenticate




Tweet @claye questions, Report: http://goo.gl/QqlHZ
How it Works
• Take the response, handle errors




Tweet @claye questions, Report: http://goo.gl/QqlHZ
How it Works
• Request data from the API



• Request URL:



• Then, stack the response in an Array and
  output
Tweet @claye questions, Report: http://goo.gl/QqlHZ
Resources:
• Google Analytics Reporting API:
  http://code.google.com/apis/analytics/docs/gdata/home.html
       – V3: http://code.google.com/apis/analytics/docs/gdata/home.html
• Google Data Feed Query Explorer:
  http://code.google.com/apis/analytics/docs/gdata/gdataExplorer.ht
  ml
• Google Apps Script Documentation:
  http://code.google.com/googleapps/appsscript/

• http://www.peakconversion.com/2012/01/using-the-google-
  analytics-data-api-with-google-docs-spreadsheet/
• http://www.automateanalytics.com/
• Watch for my posts on the SEO.com blog (www.seo.com/blog) for
  updates and new Google Analytics tools


Tweet @claye questions, Report: http://goo.gl/QqlHZ

More Related Content

More from SEO.com

SEO.com Webinar: The Science Of Local Search Made Simple
SEO.com Webinar: The Science Of Local Search Made SimpleSEO.com Webinar: The Science Of Local Search Made Simple
SEO.com Webinar: The Science Of Local Search Made SimpleSEO.com
 
6 Step Blueprint to Local Search Success - SEO.com SLCSEM Presentation
6 Step Blueprint to Local Search Success - SEO.com SLCSEM Presentation6 Step Blueprint to Local Search Success - SEO.com SLCSEM Presentation
6 Step Blueprint to Local Search Success - SEO.com SLCSEM PresentationSEO.com
 
Webinar: How To Use Web Analytics To Improve Website Conversions
Webinar: How To Use Web Analytics To Improve Website ConversionsWebinar: How To Use Web Analytics To Improve Website Conversions
Webinar: How To Use Web Analytics To Improve Website ConversionsSEO.com
 
Keyword Research In A (Not Provided) World
Keyword Research In A (Not Provided) WorldKeyword Research In A (Not Provided) World
Keyword Research In A (Not Provided) WorldSEO.com
 
Implement These 10 SEO Tips, You Must Part 2 - 5 Link Building Strategy Essen...
Implement These 10 SEO Tips, You Must Part 2 - 5 Link Building Strategy Essen...Implement These 10 SEO Tips, You Must Part 2 - 5 Link Building Strategy Essen...
Implement These 10 SEO Tips, You Must Part 2 - 5 Link Building Strategy Essen...SEO.com
 
Implement These 10 SEO Tips, You Must Part 1 | SEO.com Webinar
Implement These 10 SEO Tips, You Must Part 1 | SEO.com WebinarImplement These 10 SEO Tips, You Must Part 1 | SEO.com Webinar
Implement These 10 SEO Tips, You Must Part 1 | SEO.com WebinarSEO.com
 
Impact of Google’s Panda Update on Content | SEO.com webinar 4-19-12
Impact of Google’s Panda Update on Content | SEO.com webinar 4-19-12Impact of Google’s Panda Update on Content | SEO.com webinar 4-19-12
Impact of Google’s Panda Update on Content | SEO.com webinar 4-19-12SEO.com
 
Proving the Value of SEO
Proving the Value of SEOProving the Value of SEO
Proving the Value of SEOSEO.com
 

More from SEO.com (8)

SEO.com Webinar: The Science Of Local Search Made Simple
SEO.com Webinar: The Science Of Local Search Made SimpleSEO.com Webinar: The Science Of Local Search Made Simple
SEO.com Webinar: The Science Of Local Search Made Simple
 
6 Step Blueprint to Local Search Success - SEO.com SLCSEM Presentation
6 Step Blueprint to Local Search Success - SEO.com SLCSEM Presentation6 Step Blueprint to Local Search Success - SEO.com SLCSEM Presentation
6 Step Blueprint to Local Search Success - SEO.com SLCSEM Presentation
 
Webinar: How To Use Web Analytics To Improve Website Conversions
Webinar: How To Use Web Analytics To Improve Website ConversionsWebinar: How To Use Web Analytics To Improve Website Conversions
Webinar: How To Use Web Analytics To Improve Website Conversions
 
Keyword Research In A (Not Provided) World
Keyword Research In A (Not Provided) WorldKeyword Research In A (Not Provided) World
Keyword Research In A (Not Provided) World
 
Implement These 10 SEO Tips, You Must Part 2 - 5 Link Building Strategy Essen...
Implement These 10 SEO Tips, You Must Part 2 - 5 Link Building Strategy Essen...Implement These 10 SEO Tips, You Must Part 2 - 5 Link Building Strategy Essen...
Implement These 10 SEO Tips, You Must Part 2 - 5 Link Building Strategy Essen...
 
Implement These 10 SEO Tips, You Must Part 1 | SEO.com Webinar
Implement These 10 SEO Tips, You Must Part 1 | SEO.com WebinarImplement These 10 SEO Tips, You Must Part 1 | SEO.com Webinar
Implement These 10 SEO Tips, You Must Part 1 | SEO.com Webinar
 
Impact of Google’s Panda Update on Content | SEO.com webinar 4-19-12
Impact of Google’s Panda Update on Content | SEO.com webinar 4-19-12Impact of Google’s Panda Update on Content | SEO.com webinar 4-19-12
Impact of Google’s Panda Update on Content | SEO.com webinar 4-19-12
 
Proving the Value of SEO
Proving the Value of SEOProving the Value of SEO
Proving the Value of SEO
 

Recently uploaded

AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxPoojaSen20
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 

Recently uploaded (20)

AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 

Google Analytics API and Advanced Application

  • 1. Claye Stokes Director of SEO twitter.com/claye linkedin.com/in/claye Google Plus: http://goo.gl/cEhGC Google Analytics API and Advanced Application
  • 2. High Level First, Then Drilling Down • GA (Google Analytics) is NOT just for websites! – Google Analytics Android SDK • Can’t track what we’re not measuring! • SDK Tracks: – Events – Ecommerce – Market Referrals – Pageviews – Unique Users – Custom Variables Tweet @claye questions
  • 3. Track Everything – All actions – Form submissions (lead generation, newsletters, etc.) – Errors – Downloads – Game modes (single vs multiplayer) – Times (time it takes to complete a level, build a doc) – Step completion (in multi-step forms and checkout processes) – Registration Tweet @claye questions
  • 4. How to Track • Use Pageviews when content changes • Use Event Tracking for actions – Example: tracker.trackPageView(“/” + this.getLocalClassName()); – Documentation: https://developers.google.com/analytics/devguid es/collection/android/ Tweet @claye questions
  • 6.
  • 7.
  • 8. More Events • Why not track errors with Google Analytics? – Category: Error – Action: [action that triggered the exception] • Time can be tracked, for example: – Category: Podcast – Action: Play – Label: [Title of Podcast] – Value: 15:23
  • 9. Using the Reports • Segment! – How does your app perform on various devices? – How does that affect user behavior? – Screen resolution? – Landscape vs Portrait? Tweet @claye questions
  • 10. Google Analytics API • Get the good stuff! (Reports that are impossible to get by logging in) – Example: goal completions (conversions) by keyword • Documentation: https://developers.google.com/analytics/devguides/ Tweet @claye questions
  • 11. Google Spreadsheets + GA API • Using Apps Script, we can access the Google Analytics API to pull anything we want (up to 10,000 rows!) • Credit where it’s due: thanks to Mikael Thuneberg for making his code public: http://www.automateanalytics.com/ Tweet @claye questions
  • 12. Example Spreadsheet: GA Report Builder • http://goo.gl/QqlHZ • Go create a copy for yourself and start playing with it! – Click File -> Make a Copy… – On the Settings tab, enter your Google Analytics username/password – Find your profile number by logging into your report at www.google.com/analytics, find the number with a ‘p’ preceding it Tweet @claye questions, Report: http://goo.gl/QqlHZ
  • 13. GA Report Builder • Required fields – Start/End Dates – Dimensions (rows) – Metrics (columns) • Optional – Segments (default AND custom, advanced segments) – Filters Tweet @claye questions, Report: http://goo.gl/QqlHZ
  • 14. How it Works • First, we do some validation Tweet @claye questions, Report: http://goo.gl/QqlHZ
  • 15. How it Works • Encode the password Tweet @claye questions, Report: http://goo.gl/QqlHZ
  • 16. How it Works • Authenticate Tweet @claye questions, Report: http://goo.gl/QqlHZ
  • 17. How it Works • Take the response, handle errors Tweet @claye questions, Report: http://goo.gl/QqlHZ
  • 18. How it Works • Request data from the API • Request URL: • Then, stack the response in an Array and output Tweet @claye questions, Report: http://goo.gl/QqlHZ
  • 19. Resources: • Google Analytics Reporting API: http://code.google.com/apis/analytics/docs/gdata/home.html – V3: http://code.google.com/apis/analytics/docs/gdata/home.html • Google Data Feed Query Explorer: http://code.google.com/apis/analytics/docs/gdata/gdataExplorer.ht ml • Google Apps Script Documentation: http://code.google.com/googleapps/appsscript/ • http://www.peakconversion.com/2012/01/using-the-google- analytics-data-api-with-google-docs-spreadsheet/ • http://www.automateanalytics.com/ • Watch for my posts on the SEO.com blog (www.seo.com/blog) for updates and new Google Analytics tools Tweet @claye questions, Report: http://goo.gl/QqlHZ

Editor's Notes

  1. Questions: How many use GA on a daily/weekly/monthly basis? How many use it for your Android apps? Websites?- How many unique users are using each specific feature on your app, every single day?- What would it mean to you to know that? How would that affect your next development cycle?