# KPIs and Experimentation: Setting up and Analysing Experiments Day 1 Lab

> Observe how data is collected in this process, gaining hands-on experience in defining KPIs and conducting experiments for measurement and improvement.

- Web page: https://www.dataexpert.io/lesson/kpis-and-experimentation-day-1-lab-yt-p736-l695
- Access: Free — no enrollment needed
- Length: 36 min video
- Skills: Python, Statistics, APIs
- Academy: DataExpert.io Academy

## About this lesson

Observe how data is collected in this process, gaining hands-on experience in defining KPIs and conducting experiments for measurement and improvement.

## Transcript excerpt

Lecture, if you're taking this class for credit, make sure to switch to the other tab so that you get credit for it because if you check out the lab. What I want you to do is make sure you're on the latest version of the codebase, uh, pull, pull from Maine. If you're not, you're gonna need to uh set this, uh, statsig API key environment variable if you have not done that. Uh, I can show you all how to do that if you, um, uh, like. Later on, like, uh, hopefully, hopefully I'll have some experience of setting an environment variable, but, so Flask is a way of building out a web server. So, what I wanna uh do is first I wanna show y'all how to set this up, so let me um open terminal real quick. Oh OK. OK, so I wanna be in uh here, and the whole idea here is, I, if, if you do um Python, and then you use sourceserver.ie. This is going to set up, you see how it's running on this uh domain. If you go to that uh domain, you'll see like, hello, this is a flask API. So that's essentially, uh this is like the Hello world sort of web server, and what you can do is, what I want to show you though, is if I go to tasks, right, you'll see that I'm like, OK, it's saying experiment group green, and then it's saying odd tasks for blue and green, even for red and orange. So, that's probably wild, right? And you'll see, like, I have a a user identifier here.
