Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
GA Test Automation
Marc Lihan
3/7/2017
About me
Hometown
Manila
福岡
東京
LINE TODAY
Under development
Timeline Digest
2016.3
News Tab
2016.12
Product Features
Comments / Likes News / music videos WebtoonSocial Media Share
Measure Effectiveness
Problem Statement - Why care about
GA?
 Measure KPI
 Effectiveness of contents & features
Features are User Statistics a...
Checking GA Manually
 Chrome’s
Developer Tools
 GA Debugger
Web Tools for Mobile Web
Safari’s Web Inspector
Chrome’s Remote Debugging
Charles Web Debugging Proxy
Problem Statement 2 – Why GA Test
Automation?
New feature -> side effects
Avoid human error
Limited time
Simulate LINE ...
Methodology
 Robotframework
 Appium
 GA Reporting API
Get credentials
Initialize analytics reporting
Get GA report
GA Report API
 Go to Google Developers Console
(https://console.developers.google.com)
 Create Project or select a proje...
GA Report API - continued
 Install client library
GA Report API - continued
Initialize analytics reporting (using P12)
• Reference: https://developers.google.com/identity/p...
GA Report API - continued
• View ID - https://analytics.google.com, top left corner > select Accounts, Properties > View
•...
GA Report API - continued
A more complete report
request
• Basics use cases
• Advanced use cases
Dimensions,
dimension fil...
Demo
Conclusion
 User statistics
 Use GA or similar tools
 Remember to check GA
 GA Reporting API
We’re hiring!
 Front End Engineer
 Test Engineer (open to new graduates)
 QA Automation Engineer
 Service QA
 Server-...
Reference
 Reporting API v4
 Quick Start in Python
Upcoming SlideShare
Loading in …5
×

GA Test Automation

364 views

Published on

From LINE Taiwan QA join test corner community meetup

Published in: Technology
  • Be the first to comment

  • Be the first to like this

GA Test Automation

  1. 1. GA Test Automation Marc Lihan 3/7/2017
  2. 2. About me Hometown Manila 福岡 東京
  3. 3. LINE TODAY Under development Timeline Digest 2016.3 News Tab 2016.12
  4. 4. Product Features Comments / Likes News / music videos WebtoonSocial Media Share
  5. 5. Measure Effectiveness
  6. 6. Problem Statement - Why care about GA?  Measure KPI  Effectiveness of contents & features Features are User Statistics are
  7. 7. Checking GA Manually  Chrome’s Developer Tools  GA Debugger
  8. 8. Web Tools for Mobile Web Safari’s Web Inspector Chrome’s Remote Debugging Charles Web Debugging Proxy
  9. 9. Problem Statement 2 – Why GA Test Automation? New feature -> side effects Avoid human error Limited time Simulate LINE TODAY user in LINE app and confirm GA events are included in GA reports.
  10. 10. Methodology  Robotframework  Appium  GA Reporting API Get credentials Initialize analytics reporting Get GA report
  11. 11. GA Report API  Go to Google Developers Console (https://console.developers.google.com)  Create Project or select a project  Go to API Manager > Credentials  In Service Account keys > press Manage service accounts > press Create Service Accounts  In Create Service account input a Service account name, check Furnish a new private key then select preferred key type. Initialize analytics reporting (using P12)
  12. 12. GA Report API - continued  Install client library
  13. 13. GA Report API - continued Initialize analytics reporting (using P12) • Reference: https://developers.google.com/identity/protocols/OAuth2ServiceAccount
  14. 14. GA Report API - continued • View ID - https://analytics.google.com, top left corner > select Accounts, Properties > View • Dimensions and metrics Getting GA report Get session report for this week
  15. 15. GA Report API - continued A more complete report request • Basics use cases • Advanced use cases Dimensions, dimension filter metrics
  16. 16. Demo
  17. 17. Conclusion  User statistics  Use GA or similar tools  Remember to check GA  GA Reporting API
  18. 18. We’re hiring!  Front End Engineer  Test Engineer (open to new graduates)  QA Automation Engineer  Service QA  Server-side Developer
  19. 19. Reference  Reporting API v4  Quick Start in Python

×