Mastering Product Analytics with Mixpanel & GA4Lesson 2 of 32
Lesson 2 of 32

Event-Driven Data Architecture: Users, Events, Properties & Timestamps

Overview & Learning Objectives

Unlike old web counters that just recorded "Page Views", modern product analytics tracks everything as an Event. An event is an atomic sentence describing what happened: WHO did WHAT, WHEN did they do it, and WHAT were the specific details? In this lesson, you will master the 3 building blocks of analytics tracking: Users (the actors), Events (the actions), and Properties (the descriptive adjectives).

  • Understand the 3 core pillars of event analytics: User Distinct ID, Event Name, and Event Properties.
  • Differentiate between Event Properties (describing one single action) and User Profile Properties (describing permanent user traits).
  • Learn why millisecond UTC timestamps are critical for tracking multi-step funnels.
Example

Real-World Example: Writing School Diary Sentences: Noun, Verb, and Adjective

PRACTICAL CONTEXT
  • Concept: Every user action is logged like a clean grammar sentence: Noun (User), Verb (Event), and Adjective (Property).
  • Event Structure: Who acted (User ID), What occurred (e.g. `Song Played`), and Details (`Genre: Lo-Fi`, `Platform: iOS`).
  • Analyst Value: Granular event properties let teams diagnose exactly why drop-offs happen rather than just seeing total counts.
Corporate / Tech Term Everyday / Practical Metaphor Operational Meaning
User (Distinct ID) Harry Potter (Student ID #402) The unique person tapping on the screen.
Event Name Casting a Magic Spell The specific action button pressed (e.g. `song_played`, `item_ordered`).
Event Property Wand color, spell loudness, room temperature Details about THAT specific action (e.g. `price: 499`, `item_name: "Milk"`).
User Profile Property Harry is in Gryffindor House & Birthday is July 31 Permanent information about the user (e.g. `account_type: "Premium"`).
Core Principle: Event properties describe the MOMENT (e.g. item price right now); User properties describe the PERSON (e.g. lifetime loyalty tier)!

Visual Infographic: The Anatomy of an Analytics Event Payload

ARCHITECTURE INFOGRAPHIC
Stage 1
1. User (Who)

distinct_id: "usr_99812_mumbai"

Stage 2
2. Event (What)

event_name: "order_placed"

Stage 3
3. Event Properties (Details)

cart_total: 649, items_count: 4, store_id: "darkstore_koramangala"

Stage 4
4. Timestamp (When)

timestamp: "2026-11-13T10:45:12.381Z" (UTC millisecond precision)

Industry Standard & Framework

Standard: Segment & Mixpanel Spec: Object-Action Event Data Specification Standard.

Real-World Business Application: Zepto Quick-Commerce Order Tracking Event Schema

Zepto tracks customer grocery checkouts to understand order velocity and basket composition across dark stores.

Data AttributeJSON Schema KeyData TypeReal-World Example Value
User Identifier`distinct_id`String (UUID)`usr_zepto_88319`
Action Name`event`String (Snake Case)`checkout_completed`
Order Value`properties.total_amount_inr`Numeric (Float)`582.50`
Item Count`properties.sku_count`Integer`5`
Payment Method`properties.payment_gateway`Enum String`"UPI_PHONEPE"`
Delivery Dark Store`properties.dark_store_id`String`"BLR_INDIRANAGAR_04"`

Step-by-Step UI Tutorial & Visual Workflow Guide

Below is the practical, non-technical walkthrough showing how Product Analysts design, review, and execute this capability inside real-world tools like Mixpanel, Google Analytics 4, BigQuery, and Google Tag Manager.

Step-by-Step Execution Workflow

EXECUTION PHASES
1 Product Analyst
Identify Business Question

Question: What percentage of grocery orders use instant UPI vs Cash on Delivery?

2 Product Analyst
Design Event Payload

Specify `order_placed` event with property `payment_method: [UPI, COD, CARD]`.

3 Frontend / Mobile Engineer
Developer Instrumentation

Call `mixpanel.track("order_placed", { payment_method: "UPI", amount: 450 })` on success callback.

4 Product Analyst & QA
QA Event Validation

Open Mixpanel Live Stream / GA4 DebugView to verify payload fires with zero missing keys.

5 Product Analyst
Dashboard Reporting

Create segmented breakdown bar chart for PM and Finance team.

Mixpanel Events Live View & Inspector

Step-by-Step UI Tutorial: Inspecting Live Event Payloads in Mixpanel

Step 1
Step 1: Open Events Stream

In Mixpanel left sidebar, click "Data Management" -> "Events".

Step 2
Step 2: Filter by Event Name

Click search bar and type `order_placed` to see incoming events firing from mobile devices.

Step 3
Step 3: Expand Single Event JSON

Click on any event timestamp to expand the side drawer showing all associated event properties.

Step 4
Step 4: Verify Required Keys

Confirm that `total_amount_inr`, `payment_gateway`, and `dark_store_id` contain valid values instead of `null` or `undefined`.

Event Property vs User Property Quick Reference Matrix

SCHEMA MATRIX
property Typewhere Savedexample Keyupdate Frequency
Event PropertyAttached to a single event row`song_genre: "Lofi Beats"`Fires every time action occurs
User Profile PropertyAttached to user account profile`subscription_plan: "Family Premium"`Updates only when user status changes
System Property (Default)Auto-collected by mobile SDK`$browser`, `$os`, `$city`, `$app_version`Captured automatically on every network call

Implementation Guidelines for Product Analysts

  • Always use lowercase snake_case for event names (e.g., `order_placed`, NOT `OrderPlaced` or `order Placed`).
  • Never send Personally Identifiable Information (PII) like unhashed passwords or credit card numbers inside event payloads.
  • Always include currency code when logging monetary values (`currency: "INR"`).

Practical Hands-On Exercises

  1. Write down 4 event properties you would attach to a `video_watched` event in Netflix.
  2. Explain why user age should be a User Property while search query text should be an Event Property.