You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/statsig-warehouse-native/configuration/metric-examples.md
+31
Original file line number
Diff line number
Diff line change
@@ -126,3 +126,34 @@ Then, at the group level, the stepwise mean is calculated as the units for the n
126
126
127
127
Statsig provides a description of this in-product for any user who wants to learn more:
128
128

129
+
130
+
131
+
132
+
## User Retention Rate
133
+
134
+
A retention metric is a great way to measure changes in user stickiness and product growth with the new feature you've built.
135
+
136
+
To create a retention metric in Statsig, you'll need an event table that captures the key activities indicating user retention. The setup for your metric source follows the same process as described earlier.
137
+
138
+
When you navigate to the metric catalog, select 'Retention' as your metric type. Configure the retention period and look back window. For example, if you set your 'Retention Period End' to be 14 and retention lookback window to be 7, retention is measured as whether the user has triggered the retention event between day 8 and day 14.
139
+

140
+
141
+
You also have the option to "Use a different start and completion event for retention calculations" if you don’t want to use exposure as the starting event or if you want to define a specific subset of events as your retention event.
142
+
For example, based on the setup shown in the screenshots, we will be measuring the week 2 retention rate of users who made a purchase in week 1.
143
+

144
+
145
+
In the Advanced Settings, you can configure what's the ID type for your retention metric.
146
+

147
+
148
+
149
+
### How it works in experiments
150
+
151
+
First, for each unit per day, Statsig checks if the retention start event is triggered and assigns a 0/1 flag, which serves as the denominator of the calculation.
152
+
153
+
Next, Statsig checks if the retention completion event occurs within the specified time window and assigns a 0/1 flag, which serves as the numerator of the calculation.
154
+
155
+
Finally, at the group level, retention is calculated as sum(numerator) / sum(denominator) to determine the overall retention rate.
156
+
157
+
Statsig provides a description of this in-product for any user who wants to learn more:
158
+

0 commit comments