# Instrumentation Plans by [kirupa](https://www.kirupa.com/me/index.htm) | filed under [Product Thinking](https://www.kirupa.com/product_thinking/index.htm) **TL;DR:** An instrumentation plan (aka a tracking plan) is a written list of what your product will record before it ships: each event, when it fires, its properties, and the question it answers. Start from the questions, name events object first and action second, leave out personal details nobody needs, and test every event before launch. - Recording every click leaves confusing names, extra cost, and private details piling up where they don't belong. - Write down the questions you want answered first, then record only the events and properties they need. - Name events with the object first and a past-tense action second, like Cake Order Started, and stick to that rule. - Collect only what's necessary, like has_dietary_note: true instead of the allergy itself, and never the message text. Our team at Crumb & Co. is about to let customers order custom birthday cakes through Biscuit, the help desk bot on the bakery's website. It is a big deal for the bakery, and all of us want to know how it is going the moment it launches. How many people will order a cake, and where will the rest give up? The answers depend on a decision we have to make before the feature ships: what exactly should our code write down while people use it? If we record too little, our questions won't have answers. If we record everything, we end up with a mess, plus private details we never should have kept. In this article, we'll decide what to record ahead of time, so our data answers real questions without spying on anybody. Onwards! ## What Happens When We Track Everything? The tempting approach is to record every click and sort it all out later. The last time we did that, here is what ended up in the bin: [![A big bin full of event names that were recorded without a plan: btn_click, cakeFlowStep2, Click Button, order-start, clicked_btn2, page_view, size_chosen_v2, ORDER_DONE?, scroll_50, hover_menu, cake_flow_3, and btn_click_new. One more chip holds the full text of a customer's message: Maya turns 7 and has a walnut allergy. Nobody can tell which events mean an order was placed, and the message text is private information the bakery never needed.](https://www.kirupa.com/product_thinking/images/instrumentation_plans_firehose.png)](https://www.kirupa.com/product_thinking/images/instrumentation_plans_firehose.png?v=697fcd26ba93) There are four different names for clicking a button, an order-start that may or may not mean a cake order, and an ORDER_DONE? with a question mark in its name. Nothing clearly says that an order finished. Worse, somebody recorded the full text of every chat message, which means our bakery now has a customer's daughter's name and her walnut allergy sitting in an analytics tool. Nobody on our team needed that information, and the customer never agreed to hand it over. Recording everything feels safe, but it costs us in a few ways: - Nobody can tell which events mean what, so every question turns into an archaeology project. - Many analytics tools charge by how much data we send them, so the noise costs real money. - Private details pile up in places that were never designed to protect them. ## Start With the Questions The better approach flips the order around. Before we record anything, we write down the questions we want answered after launch. We came up with three, and next to each one, we noted what the data would need to show: [![Three questions the Crumb & Co. team wants answered, each with what the data has to show. How many people who start a cake order finish it? Every order's start and finish. Where do people give up on a cake order? Every step a person reaches. Which cake sizes sell, week by week? The size on every order.](https://www.kirupa.com/product_thinking/images/instrumentation_plans_questions.png)](https://www.kirupa.com/product_thinking/images/instrumentation_plans_questions.png?v=b44cd1e8c868) Take a look at what sits next to each of our questions. The first one needs the start and the finish of every order. The second needs every step a customer reaches. The third needs one detail, the cake size, attached to each order. Anything that doesn't help answer one of these questions doesn't get recorded, and we can always add more later when a new question shows up. ## Events and Properties With our questions in hand, we can decide what to record. Each time a person does something we care about, like picking a cake size, our code will write down a small record that says what happened and when. Here is where those records come from in our cake order: [![The five steps of ordering a custom cake through Biscuit, top to bottom: start, size, flavor, pickup date, and deposit. Next to each step is the event our code records when a person finishes that step: Cake Order Started, Cake Size Selected, Cake Flavor Selected, Pickup Date Selected, and Cake Order Completed.](https://www.kirupa.com/product_thinking/images/instrumentation_plans_flow_events.png)](https://www.kirupa.com/product_thinking/images/instrumentation_plans_flow_events.png?v=4e1d1cbaf666) Each one of those records is called an **event**. We have five of them, one for each step a customer finishes. Some of our events also need a few details attached, like which size of cake was picked: [![One recorded event, Cake Size Selected, shown as a card. Under the name are the details attached to it: order_id "co_8812", cake_size "8 inch", servings 12, step 2, source "biscuit_chat", and time "2026-11-14 10:42". The name says what happened, and the details say which order, which size, and when.](https://www.kirupa.com/product_thinking/images/instrumentation_plans_event_card.png)](https://www.kirupa.com/product_thinking/images/instrumentation_plans_event_card.png?v=919d6c9f399d) These details are called **properties**. The name of the event says what happened, and the properties say which order, which size, and when. Because every one of our five events carries the same `order_id`, we can line up all five events for one order and see exactly how far that customer got. ## Writing It All Down Now we put all of this in one place. We list every event, describe the moment it fires, and note which of our questions it helps answer: [![A table with three columns: the event's name, when it fires, and which of the team's three questions it answers. Cake Order Started fires when the customer picks Order a cake and answers question 1. Cake Size Selected fires when the customer confirms a size and answers questions 2 and 3. Cake Flavor Selected and Pickup Date Selected fire when the customer confirms a flavor or a date and answer question 2. Cake Order Completed fires when the deposit payment succeeds and answers questions 1 and 2.](https://www.kirupa.com/product_thinking/images/instrumentation_plans_plan_table.png)](https://www.kirupa.com/product_thinking/images/instrumentation_plans_plan_table.png?v=45fa51b1d297) This document is called an **instrumentation plan** (aka a **tracking plan**). Most analytics tools call it a tracking plan, so that is the name we will use from here on. Ours fits in a spreadsheet. Because it is so small, everyone on our team, and every agent writing code for us, can read it and know exactly what should be recorded. The part I like most is the Answers column, because it is how we catch events nobody needs. If a row doesn't answer a question, we delete it. ## Names Everyone Can Read Event names deserve a rule of their own. Here is the difference a naming rule makes: [![On the left, five event names with no shared pattern: btn_click, cakeFlowStep2, Click Button, order-start, and size_chosen_v2. On the right, the same flow named object first, then a past-tense action: Cake Order Started, Cake Size Selected, Cake Flavor Selected, Pickup Date Selected, and Cake Order Completed.](https://www.kirupa.com/product_thinking/images/instrumentation_plans_names.png)](https://www.kirupa.com/product_thinking/images/instrumentation_plans_names.png?v=ab1ba9fde884) Our rule is the one Twilio Segment calls the [object-action framework](https://www.twilio.com/en-us/resource-center/naming-conventions-for-clean-data): the thing first, then what happened to it, in the past tense. That gives us names like Cake Order Started and Cake Size Selected. Which rule we pick matters a lot less than picking one and sticking to it. Six months from now, somebody will want every event about cake orders, and they'll find all of them by searching for the word Cake. ## Tracking Without Spying The most important question to ask about every property is whether we actually need it. Here are a few properties someone suggested for our cake order, and what our tracking plan records instead: [![Five properties someone might attach to a cake order, and what the tracking plan records instead. The message text, email address, and phone number are dropped. A dietary note that names a walnut allergy becomes has_dietary_note: true. A home address becomes the pickup store, Main St.](https://www.kirupa.com/product_thinking/images/instrumentation_plans_privacy.png)](https://www.kirupa.com/product_thinking/images/instrumentation_plans_privacy.png?v=95222ad02024) The message text, the email address, and the phone number don't answer any of our three questions, so we don't record them. The dietary note is trickier. The kitchen needs to know about the walnut allergy, and it gets that from the order itself. Our analytics only needs to know that an order had a dietary note, so it records true or false and nothing else. The same goes for the address. We only care which store the cake gets picked up from. Privacy law has a name for this habit. The EU's GDPR calls it **data minimisation**, and it says personal data should be [adequate, relevant and limited to what is necessary](https://gdpr-info.eu/art-5-gdpr/) for the reason it was collected. Even if our bakery is nowhere near Europe, it is a good habit to have. (This isn't legal advice, just good manners with other people's information.) If we never collect a customer's allergy, it can't leak out of our analytics tool. We also never have to hunt it down when that customer asks us to delete their data. ## Testing the Plan Before We Ship Because our plan lists every event, testing it is simple. We place a cake order ourselves on a test version of the site, and we compare what arrived with what the plan says should arrive: [![A test run of the cake order compares the tracking plan with what actually arrived. Cake Order Started, Cake Size Selected, and Cake Flavor Selected arrived as planned. Pickup Date Selected arrived with the wrong name, pickup_date_selected. Cake Order Completed never fired at all.](https://www.kirupa.com/product_thinking/images/instrumentation_plans_qa.png)](https://www.kirupa.com/product_thinking/images/instrumentation_plans_qa.png?v=5612414bebc5) Two problems showed up. Pickup Date Selected arrived under a different name, which would have silently split our data into two piles. Cake Order Completed never fired at all, because it was attached to a button the new payment screen no longer uses. Without this test, our most important question (how many people finish an order?) would have had no answer on launch day. This is also where AI agents fit in nicely. When we ask an agent to add tracking, we hand it the tracking plan as its spec, and we ask it to write a test that places an order and checks for every event. The plan becomes the definition of done, and the agent can check its own work against it. ## Reading the First Week With the plan in place and the bugs fixed, cake orders went live. Here is the first week, built straight from our five events: [![A bar chart of the first week of custom cake orders, built from the five events. 400 people started an order, 344 picked a size, 311 picked a flavor, 152 picked a pickup date, and 139 paid the deposit. The biggest drop is at the pickup date, where 159 people gave up.](https://www.kirupa.com/product_thinking/images/instrumentation_plans_funnel.png)](https://www.kirupa.com/product_thinking/images/instrumentation_plans_funnel.png?v=51f5c4b3b453) **400** people started a cake order, and **139** of them finished one. The biggest drop is at the pickup date, where **159** people gave up. When we looked closer, our calendar only offered dates at least a week out, and a lot of people wanted a cake for this weekend. That is exactly the kind of answer our plan was designed to give us, and it took about thirty seconds to find...which beats a week of digging through btn_click_new by a mile. ## Try It This Week Pick a flow in your own product and write a small tracking plan for it: 1. Choose one flow, like signing up or checking out. 2. Write down two or three questions you want answered about it after launch. 3. List the events that answer those questions, named object first and action second. 4. For each event, list the properties you need, and cross out anything personal that doesn't answer a question. 5. Before you ship, walk through the flow yourself and check that every event arrives with the right name. ## Conclusion Phew! We started with a bin full of confusing event names and one very private chat message. What we did instead was start from the questions we wanted answered, turn them into a short list of events and properties, give those events names everyone can read, and leave out everything personal that our questions didn't need. That list is our tracking plan, and testing against it caught two bugs before a single customer saw the feature. The nice thing about a tracking plan is that it stays small. When a new question comes up, we add the events it needs. When an event stops answering anything, we delete it. Our data ends up being something we can actually read, and our customers' private details never end up in our analytics tool in the first place. Before you go, here are a few things you can do: 1. Test your knowledge by taking the quiz below. 2. Read the next article in the series, [Activation and the Aha Moment](https://www.kirupa.com/product_thinking/activation.htm), or check out some related content: - [North Star and Input Metrics](https://www.kirupa.com/product_thinking/north_star_metrics.htm). Picking the one number your tracking should feed. - [Retention Curves and Cohorts](https://www.kirupa.com/product_thinking/retention_curves.htm). Turning recorded events into cohort charts. - [PII Redaction](https://www.kirupa.com/ai_fundamentals/pii_redaction.htm). Keeping personal details out of what an AI app stores. 3. Stuck on something, or curious about a detail we skipped? [Ask on the forums](https://forum.kirupa.com/), and we’ll help you out. ## Test your knowledge! [Take the Instrumentation Plans Quiz](https://www.kirupa.com/quizzes/instrumentation_plans.htm). Practice with 6 multiple-choice questions and an explanation after every answer.