📊 Product Activity Model
Track product usage events and user interactions.
Overview
The Product Activity Model tracks events and actions within your product. Activities can include feature usage, button clicks, page views, API calls, and any other meaningful interactions users have with your product.
This data powers engagement metrics, journey funnel progression, and helps identify usage patterns that correlate with success or churn.
Activity Types
Meza AI supports two types of product activities:
📊 Product Activity (PA)
General product interactions and events. Used for engagement tracking and activity counts.
Examples: page_view, button_click, search
⭐ Feature Activity (PFA)
Key feature interactions that contribute to feature adoption metrics.
Examples: report_created, integration_connected
Key Fields
| Field | Type | Description | Required |
|---|---|---|---|
activity_id | String | Unique identifier for the activity | Yes |
account_id | String | Account that performed the activity | Yes |
user_id | String | User who performed the activity | No |
activity_type | String | Type/name of the activity | Yes |
created_at | Timestamp | When the activity occurred | Yes |
Configuration Steps
Navigate to Data Models
Go to Configuration → Data Models.
Add New Model
Click Add new model and select Product Activity.
Select Data Source
Choose your database connection or an integration like Segment or Mixpanel.
Write Query
Write a SQL query to retrieve activity events.
Map Fields
Map columns to activity model fields.
Configure Activity Types
Specify which activity types are "Feature Activities" for adoption tracking.
Save Model
Test and save the model.
Example SQL Query
SELECT id AS activity_id, account_id, user_id, event_name AS activity_type, created_at, -- Optional properties event_properties, page_url FROM events WHERE created_at >= NOW() - INTERVAL '90 days' ORDER BY created_at DESC
Data Sources
Product activity data can come from multiple sources:
🗄️ Direct Database
Query your events table directly
📦 Segment
Receive events via webhook
📊 Mixpanel
Sync from Mixpanel API
📈 Amplitude
Import from data warehouse export
Activity Metrics
Once configured, Meza AI calculates these metrics automatically:
- Activity Count — Total activities per account/user
- Daily/Weekly/Monthly Active — DAU, WAU, MAU at account level
- Feature Adoption — Which features accounts are using
- Engagement Trend — Activity trend over time
✅ Tip