M
Meza AI

📊 Product Activity Model

Track product usage events and user interactions.

💡 Note

Configure Accounts and optionally Users models first.

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

FieldTypeDescriptionRequired
activity_idStringUnique identifier for the activityYes
account_idStringAccount that performed the activityYes
user_idStringUser who performed the activityNo
activity_typeStringType/name of the activityYes
created_atTimestampWhen the activity occurredYes

Configuration Steps

1

Navigate to Data Models

Go to ConfigurationData Models.

2

Add New Model

Click Add new model and select Product Activity.

3

Select Data Source

Choose your database connection or an integration like Segment or Mixpanel.

4

Write Query

Write a SQL query to retrieve activity events.

5

Map Fields

Map columns to activity model fields.

6

Configure Activity Types

Specify which activity types are "Feature Activities" for adoption tracking.

7

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

Focus on tracking meaningful activities, not every click. Too much data makes it harder to identify important patterns.

What's Next?