SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.
SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.
Successfully reported this slideshow.
Activate your 14 day free trial to unlock unlimited reading.
QA Fest 2018. Slavik Pashanin. Analytics Data Driven Testing
"Without data, you are just another person with an opinion". How can we use data to help us test our product better and be more efficient? In this lecture, we'll discuss the use of BI in testing, implementing BI using Google Analytics or an internal company BI system, TPAs (Anodot, Grafana, TrackJS), and making smart decisions using data.
"Without data, you are just another person with an opinion". How can we use data to help us test our product better and be more efficient? In this lecture, we'll discuss the use of BI in testing, implementing BI using Google Analytics or an internal company BI system, TPAs (Anodot, Grafana, TrackJS), and making smart decisions using data.
20.
In productionFeature Release
Feature
development
21.
In production
Feature
Release
Feature development
22.
In productionFeature development Feature Release
23.
3 ways to get BI into your testing
1. Google Analytics
2. Internal tools
3. TPAs
24.
Google Analytics
SETUP
Get the tracking number e.g., UA-XXXXX-Y and add the
code
<!-- Google Analytics -->
<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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXX-Y', 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->
downloads
analytics.js
allows you to
schedule commands
to be run
25.
Google Analytics
ADD EVENTS
Event hits are sent by using the Send command and specifying a hitType
<button id="addButton"> Click me </button>
<script type="text/javascript">
const button = document.getElementById('addButton')
button.addEventListener('click',function (e) {
ga('send', {
hitType: 'event',
eventCategory: 'buttonClick',
eventAction: 'mainButtonClick',
eventLabel: 'nameOfThePage'
});
});
</script>
26.
Google
Analytics
▪ Page tracking
▪ Event tracking (user interactions)
▪ Social interactions
▪ User timing
▪ Error tracking
41.
1. Drop in success rate
2. Automatic message
sent to Slack channel
3. Dev teams looking for
new GA’s open experiments
4. Rollback/ closing new
experiments
5. Fix issue and GA
6. Back to normal