# Event Tracking and Tracking Plans

> How apps and websites record user behaviour as events with properties, and how to design a tracking plan analysts can trust. Free notes, key concepts,...

Canonical: https://www.internhack.in/roadmaps/tracks/data-analyst/event-tracking
Last updated: 2026-11-28

How apps and websites record user behaviour as events with properties, and how to design a tracking plan analysts can trust.

Intermediate · about 3 hours · difficulty 2/5

Learn first: [Funnel Analysis](https://www.internhack.in/roadmaps/tracks/data-analyst/funnel-analysis)

Product and web analytics start with **events**: records that something happened, such as `signup_completed` or `checkout_started`, each with a timestamp, a user or device ID, and properties.

### Anatomy of an event

```
{ "event": "order_completed", "user_id": "u_123", "timestamp": "2026-03-04T10:12:00Z",
  "properties": { "order_value": 42.5, "currency": "USD", "items": 3, "platform": "ios" } }
```

**User properties** (plan, country, signup date) describe the person; **event properties** describe the moment.

### Tracking plans

A tracking plan is a shared spec listing each event, when exactly it fires, its properties with types and allowed values, and the owner. It prevents the classic mess of `Signup`, `sign_up` and `user_registered` all meaning the same thing.

### Naming conventions

Pick one style (object_action in snake_case is common: `cart_viewed`, `item_added`) and stick to it.

### Identity

Users browse anonymously, then log in. Tools stitch **anonymous IDs** to **user IDs** so funnels are not broken at login. Understand how your tool handles this before counting users.

### Client vs server tracking

Client-side events (browser, app) capture interactions but get blocked by ad blockers and can be lost. Server-side events (payments, signups) are more reliable for money metrics.

### Privacy

Get consent where required, avoid collecting personal data you do not need, and never put emails or names in event properties.

**Pitfall:** analysing events without knowing when they fire. "Purchase" on button click is not "purchase" on payment success. You are ready to move on when you can write a tracking plan for a signup and checkout flow.

## Key concepts

- **Events, properties and user properties**
- **Tracking plans**
- **Event naming conventions**
- **Identity resolution**
- **Client-side vs server-side tracking**
- **Consent and privacy**
- **Customer data platforms (Segment, RudderStack)**

## Mini project

Write a tracking plan spreadsheet for an online course platform covering eight events from landing page to course completion, with properties, types and firing rules.

## Check yourself

Why might a purchase event fired on the client disagree with the payments table, and which would you trust for revenue?

## Free resources

- [Mixpanel docs: tracking plan and data model](https://docs.mixpanel.com/docs/data-structure/concepts) (Mixpanel)
- [Segment docs: tracking plans](https://segment.com/docs/protocols/tracking-plan/create/) (Twilio Segment)

Previous: [Reproducible Analysis Projects](https://www.internhack.in/roadmaps/tracks/data-analyst/reproducible-projects) · Next: [Google Analytics 4](https://www.internhack.in/roadmaps/tracks/data-analyst/google-analytics)

## More in Product and Web Analytics

- [Event Tracking and Tracking Plans](https://www.internhack.in/roadmaps/tracks/data-analyst/event-tracking)
- [Google Analytics 4](https://www.internhack.in/roadmaps/tracks/data-analyst/google-analytics)
- [Product Analytics Tools: Mixpanel and Amplitude](https://www.internhack.in/roadmaps/tracks/data-analyst/product-analytics-tools)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [Data Analyst Roadmap](https://www.internhack.in/roadmaps/tracks/data-analyst)
