"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.
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>
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