Quick answer
Data instrumentation is the engineering work of adding code to a website, app or backend so it sends the events and properties a tracking plan specifies, then verifying that what arrives has the right names, counts and required properties before anyone reports on it.
Formula: Capture rate = events received ÷ actions recorded by the source of truth; property completeness = events with the property ÷ events received
What is data instrumentation?
Data instrumentation is the engineering work of adding code to a website, app or backend so that it emits the events and properties you want to analyze, and then checking that what arrives matches what was specified. In product analytics it sits between two other pieces of work: a tracking plan decides what to collect; instrumentation makes the product actually send it, correctly named, with the required properties, exactly once per action.
The term comes from engineering, where an instrument is a device that measures something. Observability uses it the same way: the OpenTelemetry project's documentation puts it plainly, "For a system to be observable, it must be instrumented", meaning code in the system has to emit traces, metrics and logs. Analytics instrumentation emits user events instead, but the logic is the same. Data that was never instrumented cannot be analyzed later, and data that was instrumented wrongly is worse than none, because it looks trustworthy.
That is why the useful definition includes verification. Instrumentation is not finished when the code is merged; it is finished when the events that arrive have the right counts and complete properties.
Where does instrumentation sit in the data workflow?
| Stage | Question it answers | Typical owner | Output |
|---|---|---|---|
| Tracking plan | What should we collect, and why? | Product manager or analyst | Event names, triggers, properties, owners |
| Event schema | What shape must each event have? | Analyst or data engineer | Property names, types, required flags, allowed values |
| Instrumentation | Does the product send it correctly? | Web, mobile and backend engineers | Tracking code in each codebase |
| Verification (QA) | Did the right events arrive, complete, once? | Engineer and analyst together | Arrival counts, completeness, sign-off |
| Monitoring | Is it still correct after later releases? | Analyst or data team | Alerts on volume drops, schema drift |
The weak point is usually the handover in the middle. A plan says sign_up with a required plan property; the iOS team ships signup without it; nobody notices for a month because the dashboards still show a line. The rest of this entry is about preventing exactly that. For how to choose and name events in the first place, see event tracking.
Worked example: one sign-up event, specified, instrumented and verified
Sample data: a product with a website and an iOS app wants to measure sign-ups by method and plan.
1. Specification (from the tracking plan)
| Field | Value |
|---|---|
| Event name | sign_up |
| Trigger | After the account is created and the server confirms it, not on button click |
| Required properties | method (email, google, apple), plan (free, pro) |
| Optional properties | referral_code |
| Platforms | web, ios |
2. Instrumentation
On the website, after the server returns success:
tapcub.track('sign_up', { method: 'email', plan: 'free' })
In the iOS app, in the same success handler:
TapCub.track("sign_up", props: ["method": "apple", "plan": "free"])
3. Verification after one day of real traffic
Compare the events that arrived with the backend's own count of accounts created, and check how often each required property is filled:
| Platform | Accounts created (backend) | sign_up events arrived | Capture rate | method filled | plan filled | Distinct users | Events per user |
|---|---|---|---|---|---|---|---|
| web | 1,268 | 1,240 | 97.8% | 100% | 96.5% (1,197) | 1,221 | 1.02 |
| ios | 455 | 410 | 90.1% | 100% | 71.2% (292) | 404 | 1.01 |
How to recompute: capture rate = events ÷ accounts (1,240 ÷ 1,268 = 97.8%); completeness = events with the property ÷ events (292 ÷ 410 = 71.2%); events per user = events ÷ distinct users (1,240 ÷ 1,221 = 1.02).
What the table says:
- iOS is missing
planon 118 of 410 events. Tracing it shows the "Sign in with Apple" path skips the plan picker, so the property is empty. That is a code fix, not an analysis problem. - iOS captures 90.1% of sign-ups against 97.8% on web. A capture gap of about 10% usually means a path where the event is never sent, here users who sign up and immediately background the app before the event is flushed.
- Duplicates are small but present. 1.02 events per user on web means 19 extra events, typically from a double-fired success handler. Decide whether that is acceptable or deduplicate by fixing the trigger.
Without step 3, both platforms would show a healthy sign-up chart, and every breakdown by plan would quietly undercount iOS users.
Manual, automatic and server-side instrumentation
| Method | How events are produced | Strength | Weakness | Best for |
|---|---|---|---|---|
| Manual (code-based) | Engineers call a tracking function at the right moment | Precise names, triggers and properties | Engineering time; easy to forget on new paths | Business events: sign-up, purchase, upgrade |
| Automatic (autocapture) | A script records clicks, pageviews or screens without per-event code | Fast coverage, captures history before anyone asked | Names and meaning must be defined afterwards; fragile when the UI changes | Exploration, UI interaction questions |
| Server-side | The backend sends the event when the business fact is committed | Not blocked by browsers, matches the source of truth | No client context unless you pass it | Payments, subscription changes, refunds |
OpenTelemetry draws the same line for software telemetry between code-based instrumentation, written against its APIs, and zero-code instrumentation, which captures activity at the edges of an application without code changes. Most analytics setups end up mixing all three: autocapture for breadth, manual events for the actions that matter, server-side events for anything involving money.
Pre-launch QA checklist for instrumentation
Run these checks before an event is marked live. Each has a pass rule so two people reach the same answer:
- Name matches the plan exactly.
sign_up, notsignuporSign Up. Pass: zero unplanned names for this action in the last 24 hours. - Fires once per action. Pass: events per user per action between 1.00 and about 1.02, investigated above that.
- Fires at the right moment. On confirmed success, not on click. Pass: event count does not exceed the backend's count of the same fact.
- Capture rate against a source of truth. Pass: within an agreed tolerance of backend counts, for example 95%, per platform.
- Required properties complete. Pass: 100% for properties used in reporting; anything lower is a bug with a known path.
- Property types and values valid. Numbers are numbers, enums use the agreed values (
pro, notPro). Pass: no out-of-list values. - Identity attached. Logged-in events carry the user ID so web and app sign-ups join one person. Pass: user ID present where the user is known.
- Same name on every platform. Pass: web, iOS, Android and server send one event name for one action.
- No personal data in properties. No email addresses or free-text input. Pass: a manual review of sample payloads.
Platform limits to check before shipping
Every analytics tool truncates or drops data that breaks its limits, often silently. Check the limits of the tool you send to before you finalize names and properties. As an example of how specific they are, Google's documentation for Google Analytics 4 lists event names up to 40 characters, up to 25 parameters per event, parameter values generally up to 100 characters, and 500 distinctly named events per app user for app streams. A plan written without these numbers in mind can be impossible to instrument as written. TapCub's own limits are in the next section.
Common instrumentation mistakes
- Tracking the click instead of the outcome. A "Sign up" button click counts failed and abandoned attempts.
- Renaming a live event. History splits into two names; reports drop to zero on the old one.
- Different names per platform.
sign_upon web andsignupon iOS cannot be added up without cleanup. - Optional properties that are actually required. If a dashboard breaks down by
plan,planis required. - No owner after launch. A release six months later removes the event and nobody notices; this is what monitoring is for.
How to instrument and verify in TapCub
The sign-up example above runs in TapCub like this:
- Add
sign_upin All-platform analytics › Data › Tracking plan with trigger, platforms (web,ios), properties marked required, owner and developer. Set the status to Developing while the code is written. Names must be snake_case, start with a letter and be at most 40 characters. - Ship the code:
tapcub.track(name, props)on the web andTapCub.trackin the iOS SDK. On the web,propskeeps at most 20 keys, keys are cut at 50 characters and string values at 200, and only strings, numbers and booleans are kept; over-long values are truncated silently, so check them in step 3. - Move the row to Accepting and turn on Live verification (24 h). The plan gains two columns: hits in the last 24 hours and completeness of required properties, which is where the 71.2%
plancompleteness on iOS would show up as a warning. - Check All-platform analytics › Data › Event inbox for unplanned names such as
signup; new events land there until someone claims them, so a misspelled event does not silently become a new definition. - When counts and completeness pass, set the row to Live. Afterwards, All-platform analytics › Data › Data quality shows collector rejects and blocked events or properties, and a monitor in All-platform analytics › Operations › Monitors on a saved
sign_upcount can notify you when a later release makes it drop.
TapCub does not write the tracking code or compare against your backend for you; the capture-rate check against accounts created is a query you run on your own database.
Sources
- OpenTelemetry: Instrumentation concepts (definition of instrumentation; code-based and zero-code approaches; checked 2026-11-28)
- Google Analytics Help: Event collection limits (40-character event names, 25 parameters per event, 100-character values, 500 named events per app user; checked 2026-11-28)
Was this explanation clear?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

Product Experience Specialist
Writes about product experience, practical workflows, and growth, turning complex processes into clear steps for everyday decisions.