Skip to main content

Data schema: Usage metrics

Daily product activity for each account and each user.

Usage metrics show how much each account and each user uses your product, day by day. They power engagement and health scores, and active and power user counts.

Choose a format

  • Daily (pre-aggregated): one row per account or user per day, with one column per metric. Every date must have a row, with no gaps.

  • Events: one row per metric per day on which something happened. Gaps are fine, and Hook handles the aggregation.

Metrics don't need Created or Updated dates, only the date the activity happened.

Account metrics

Daily format

One row per account per day. Each metric is its own column, and the column name becomes the metric name in Hook.

Field

Type

Required

Description

Example

Unique Identifier of Account

Text

Yes

0015c00003oGFiLAOW

CRM of Account

Text

Yes

Salesforce

Date

Date

Yes

The day the activity happened

2025-01-20

Product Identifier

Text

No

Only if you sell more than one product

product_1

daily_active_users

Number

No

Example metric: users active that day

45

total_logins

Number

No

Example metric: logins that day

128

reports_generated

Number

No

Example metric: reports created that day

12

feature_adoption_rate

Number

No

Example metric: share of features used, from 0 to 1

0.72

integration_enabled

1 or 0

No

Example metric: use 1 or 0 for yes/no metrics

1

Events format

One row per metric per day, only on days when something happened. The metric name goes in one column and its value in another.

Field

Type

Required

Description

Example

Unique Identifier of Account

Text

Yes

0015c00003oGFiLAOW

CRM of Account

Text

Yes

Salesforce

Date

Date

Yes

The day the activity happened

2025-01-20

Product Identifier

Text

No

Only if you sell more than one product

product_1

Metric Name

Text

Yes

What was measured

login

Metric Value

Number

Yes

How many times, or how much, that day

128

User metrics

Daily format

One row per user per day. activity_count and is_activated are required, and any other metric can be added as its own column.

Field

Type

Required

Description

Example

Unique Identifier of User

Text

Yes

user_001

Source of User

Text

Yes

product_db

Date

Date

Yes

The day the activity happened

2025-01-20

Product Identifier

Text

No

Only if you sell more than one product

product_1

activity_count

Number

Yes

How active the user was that day

47

is_activated

1 or 0

Yes

1 if the user is enabled on the product

1

logins

Number

No

Example metric: logins that day

5

reports_viewed

Number

No

Example metric: reports viewed that day

12

feature_x_usage

Number

No

Example metric: times feature X was used

30

Events format

One row per metric per user per day, only on days when something happened. You don't need to send is_activated in this format.

Field

Type

Required

Description

Example

Unique Identifier of User

Text

Yes

user_001

Source of User

Text

Yes

product_db

Date

Date

Yes

The day the activity happened

2025-01-20

Product Identifier

Text

No

Only if you sell more than one product

product_1

Metric Name

Text

Yes

What was measured

report_view

Metric Value

Number

Yes

How many times, or how much, that day

12

User metrics refer to users by their ID, so you'll also need to send Users.

Did this answer your question?