You can create Custom Metrics using the custom events you ingest by filtering or aggregating events based on event metadata. You must include metadata along with the custom events when you log these events with Statsig. For example, in addition to tracking overall event_count and event_dau for all events of type purchase_event, you may want to filter these metrics only for events where your users purchase a specific product category.
Statsig supports four types of custom metrics:
|Event Count||Total count of events filtered by the value and metadata properties of an event type||Add to Cart event filtered by category type|
|User Count||Number of unique users that trigger events filtered by the value and metadata of an event type||Active Users based on their views of a product category|
|Aggregation||Sum or Average of the value or metadata property of an event type||Total Revenue|
|Ratio||Rates (e.g. cart conversion rate, purchase rate), Normalized Values (e.g. sessions per user, items per cart)||Cart Conversion Rate, Sessions per User|
See Metrics 201 topic, Creating Custom Metrics, to learn how to create custom metrics for your product.