← Guides·Analytics Implementation

Analytics Implementation

Mixpanel, Amplitude and Segment tracking plan examples

An example tracking plan for Mixpanel, Amplitude and Segment, how each tool stores and checks the plan, and what none of them can see.

David PombarSwiss army knife at Trackingplan
7 min read · 1525 words

A tracking plan is the same document whatever tool reads the data: the events you expect, the properties each one carries, their types and allowed values. What changes from tool to tool is where the plan lives and what the tool does when an event does not match it.

This guide gives one example plan and shows how Mixpanel, Amplitude and Segment each store and check it. If you are writing your first plan, start with how to create a customer data tracking plan; for what a plan should contain in general, see our tracking plan template.

One example plan for all three

An ecommerce funnel, small enough to read in one table. The names follow Segment's ecommerce spec, which the other two tools accept as plain event names.

EventPropertiesTypeRequired
Product Viewedproduct_id, name, category, pricestring, string, string, numberproduct_id, price
Product Addedproduct_id, quantity, price, cart_idstring, integer, number, stringall
Checkout Startedorder_id, value, currency, productsstring, number, string, arrayall
Order Completedorder_id, total, revenue, currency, productsstring, number, number, string, arrayall

Two rules sit next to the table. Names are Title Case for events and snake_case for properties, and currency is a three-letter ISO code. Write them down: every tool below checks names and types, but a convention only holds if someone decided it.

Mixpanel tracking plan

Where the plan lives. Mixpanel recommends the plan as "a centralized document that should serve as the source of truth on your Mixpanel implementation", and its tracking plan guide links templates per vertical in Google Sheets. Mixpanel also has tracking plans inside the product: according to Mixpanel's tracking plans page, a tracking plan is "a named list of the events your team intends to send to a Mixpanel project", created and managed through the Mixpanel MCP Server and visible in Lexicon. Each event in it is Planned until Mixpanel receives it, then Live.

How Mixpanel checks it. Three features in Lexicon, Mixpanel's data dictionary:

Mixpanel Event Approval settings in Lexicon: a toggle to notify admins, owners or Slack channels of newly tracked events, a toggle for new property notifications, and fields for email recipients and Slack channels
Screenshot: Event Approval settings in Mixpanel's Lexicon. Image: Mixpanel, Mixpanel Docs

What it does not check. Data Standards looks at names and metadata, not at the values inside each event. A Product Added with price sent as "49,90" passes the naming rule. The Mixpanel integration page covers what Trackingplan checks on those values.

Diagram: your site or app sends track requests through the Mixpanel SDK to the Mixpanel project, where the tracking plan, Data Standards and Event Approval apply. GTM tags such as the Meta Pixel, Google Ads and GA4 sit outside the check, because their requests never reach Mixpanel.
Where Mixpanel checks the plan, and the requests it never sees.

Amplitude tracking plan

Where the plan lives. In Amplitude Data, under the Data tab. Each project has its own tracking plan. Amplitude's documentation describes building it before instrumenting code: create a source (iOS, Android, Web, Backend), then events with a description, category and status, then event properties with a type, rules and whether they are required. Amplitude suggests changes to an event name so it matches your naming convention. Branches let a team change the plan without touching the main version, and the Ampli CLI generates type-safe tracking code from it.

How Amplitude checks it. Amplitude's observe feature compares the live event stream with the plan and gives each event one of four statuses:

A required property that is missing generates a warning. According to Amplitude's documentation, observe is available on the Plus, Growth and Enterprise plans, and the data catalog on all plans.

Amplitude Data Events view of a tracking plan with events marked Live or Planned, and the detail panel of the Play Song event showing its status, sources android and ios, and 23 properties
Screenshot: the Events view of a tracking plan in Amplitude Data. Image: Amplitude, Amplitude docs

What it does not check. Observe only sees what reaches Amplitude. Amplitude says so: if you block, filter or transform data before it arrives, observe cannot see it. It also only surfaces events as they occur, so an event that fires rarely may never appear. The Amplitude integration page covers what Trackingplan adds on that traffic.

Diagram: events from your site or app reach Amplitude, where the tracking plan in Amplitude Data and observe apply. Requests to other platforms, and data blocked or transformed before Amplitude, sit outside the check.
Where Amplitude checks the plan, and what it cannot see.

Segment tracking plan

Where the plan lives. In Segment Protocols. Segment describes the tracking plan as "a data spec outlining the events and properties you intend to collect across your Segment Sources". It is stored in the workspace and connected to one or more sources, and it validates Track calls as well as Identify, Page and Group calls. Protocols is an add-on for Business plans only, and works on event stream sources (website, mobile and server) and Engage.

The example plan above maps straight onto it: Product Added, Checkout Started and Order Completed are events of Segment's ecommerce spec, with order_id, total, revenue, currency and products among their properties.

How Segment checks it. Every live event that does not match the plan generates a violation, which you review per event and can forward to another source. Per source, the Schema Configuration decides what happens to bad data: block unplanned events, omit unplanned properties and traits, or block events whose properties fail JSON schema validation. Segment warns that blocking is serious: blocked events that are not forwarded to a separate source are discarded and cannot be recovered.

Segment Protocols violations view for the past 24 hours, with tabs for Track, Identify, Group, Page and Screen, listing Checkout Started with 692 events and 100 percent with violations and Order Completed with 85,646 events and 32.925 percent with violations
Screenshot: violations per event in Segment Protocols. Image: Twilio Segment, Segment documentation
Segment Schema Configuration table listing the Track, Identify and Group call types with the options for unplanned events, unplanned properties and JSON schema violations
Screenshot: Schema Configuration options per call type in Segment Protocols. Image: Twilio Segment, Segment documentation

What it does not check. Protocols validates what enters Segment. What each destination does with the event afterwards, and every tag that fires outside Segment, is not part of the check. The Segment integration page covers what Trackingplan watches on both sides.

Diagram: events from your sources enter Segment, where Protocols checks them against the tracking plan and the schema configuration. Requests from destinations and from tags outside Segment sit outside the check.
Where Segment checks the plan, and what it never sees.

The three side by side

MixpanelAmplitudeSegment
Where the plan livesTracking plans (via MCP Server) and Lexicon, or a spreadsheetAmplitude Data, per projectProtocols, per workspace, linked to sources
What it checksNaming and metadata (Data Standards), new events (Event Approval)Name and schema of each event: Valid, Invalid, Unexpected, Out of DateEach call against the spec: violations
What it can blockEvents and properties, by hand in LexiconEvents and properties that are deleted from the planUnplanned events, unplanned properties, schema failures, per source
Plan neededData Standards and Event Approval: EnterpriseObserve: Plus, Growth, EnterpriseProtocols: Business add-on

What none of them sees

Each of these checks runs inside one tool, on the events that tool receives. Your site sends many more requests than that. The Meta Pixel, the Google Ads tag and GA4 usually fire from Google Tag Manager, read the same dataLayer, and never pass through Mixpanel, Amplitude or Segment. A purchase can be perfect in Segment and arrive at Meta without its value.

The other gap is the plan itself. All three tools compare traffic with a plan someone wrote and keeps up to date. An event nobody added stays Unexpected, Pending or a violation until someone looks.

Trackingplan works from the other end. It learns what normal looks like from real traffic, across every destination at once, Mixpanel, Amplitude and Segment included, along with the pixels, GA4 and the dataLayer, and flags what changes: a missing property, a value of the wrong type, an event that stops. No schema has to exist first. For the checks to run before each release, our guide to dataLayer validation lists them.

FAQ

Where do I keep a Mixpanel tracking plan?

In Mixpanel itself, next to Lexicon, or in a spreadsheet. Mixpanel's tracking plans are named lists of events with their expected properties, created through its MCP Server, and each event shows as Planned until Mixpanel receives it and Live after. Data Standards and Event Approval, which check names and hide new events, are Enterprise features.

Does Amplitude have a tracking plan feature?

Yes. Each Amplitude project has a tracking plan in Amplitude Data, where you define sources, events, properties and their rules. Its observe feature labels incoming events as Unexpected, Valid, Invalid or Out of Date against that plan, on the Plus, Growth and Enterprise plans.

What is a Segment tracking plan?

A data spec in Segment Protocols listing the events and properties you expect from your sources. Live events that do not match it generate violations, and per source you can block unplanned events or omit unplanned properties. Protocols is an add-on for Business plans.

Can a tracking plan in one tool check the others?

No. Each tool checks the events it receives. A purchase that reaches Segment correctly can still arrive wrong at the Meta Pixel or GA4 tags that fire from Google Tag Manager, and none of the three tools sees those requests.

David PombarSwiss army knife at Trackingplan

Read more from David, a Senior Product Strategist with 18+ years in digital product development and an atypical error detection knack.

Trackingplan

See everything. Miss nothing.

Your implementations audited around the clock with real-time, real-user data. Real-time alerts about errors or changes in your data, campaigns, pixels, privacy and consent. Let AI flag issues before they cost you.