Google Analytics API and Advanced Application

  • 3,917 views
Uploaded on

View the blog post and get the excel doc here: http://www.seo.com/blog/how-to-pull-custom-google-analytics-reports-into-google-spreadsheets/

View the blog post and get the excel doc here: http://www.seo.com/blog/how-to-pull-custom-google-analytics-reports-into-google-spreadsheets/

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
3,917
On Slideshare
0
From Embeds
0
Number of Embeds
4

Actions

Shares
Downloads
13
Comments
0
Likes
2

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • 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?

Transcript

  • 1. Claye Stokes Director of SEO twitter.com/claye linkedin.com/in/claye Google Plus: http://goo.gl/cEhGCGoogle 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 VariablesTweet @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) – RegistrationTweet @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
  • 5. Listen App
  • 6. 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
  • 7. 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
  • 8. 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
  • 9. 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
  • 10. 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 itTweet @claye questions, Report: http://goo.gl/QqlHZ
  • 11. GA Report Builder• Required fields – Start/End Dates – Dimensions (rows) – Metrics (columns)• Optional – Segments (default AND custom, advanced segments) – FiltersTweet @claye questions, Report: http://goo.gl/QqlHZ
  • 12. How it Works• First, we do some validationTweet @claye questions, Report: http://goo.gl/QqlHZ
  • 13. How it Works• Encode the passwordTweet @claye questions, Report: http://goo.gl/QqlHZ
  • 14. How it Works• AuthenticateTweet @claye questions, Report: http://goo.gl/QqlHZ
  • 15. How it Works• Take the response, handle errorsTweet @claye questions, Report: http://goo.gl/QqlHZ
  • 16. How it Works• Request data from the API• Request URL:• Then, stack the response in an Array and outputTweet @claye questions, Report: http://goo.gl/QqlHZ
  • 17. 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 toolsTweet @claye questions, Report: http://goo.gl/QqlHZ