Examples: average purchase price per user
This section includes the configuration options for common custom numeric metrics related to average purchase price per user. For all of the examples in this section, the randomization unit is “user.”Average purchase price per user: only users who made a purchase
Expand Average purchase price per user: only users who made a purchase
Expand Average purchase price per user: only users who made a purchase
Average event values per user, then compute the Average of those values where Higher is betterUnits without events: ExcludedHere is what the metric setup looks like:
The metric creation dialog.
| Step 1 | Step 2 | Step 3 |
|---|---|---|
Users made the following purchases:
| The metric calculates the average for each user, excluding those who didn’t purchase anything:
| The metric then calculates the average purchase price per user:
|
Average purchase price per user: all users
Expand Average purchase price per user: all users
Expand Average purchase price per user: all users
Average event values per user, then compute the Average of those values where Higher is betterUnits without events: Include units and set the value to 0Here is what the metric setup looks like:
The metric creation dialog.
| Step 1 | Step 2 | Step 3 |
|---|---|---|
Users made the following purchases:
| The metric calculates the average for each user, including those who didn’t purchase anything:
| The metric then calculates the average purchase price per user:
|
Example: percentile purchase price per user
This section includes the configuration options for a custom numeric metric related to percentile purchase price per user. For the example in this section, the randomization unit is “user.”Expand Percentile purchase price per user
Expand Percentile purchase price per user
Average event values per user, then compute the P90 of those values where Higher is betterHere is what the metric setup looks like:
The metric creation dialog.
| Step 1 | Step 2 | Step 3 |
|---|---|---|
Users made the following purchases:
| The metric calculates the average for each user that made a purchase:
| The metric then calculates the average for the 90th percentile:
|
Examples: average revenue per user
This section includes the configuration options for common custom numeric metrics related to average revenue per user. For all of the examples in this section, the randomization unit is “user.”Average revenue per user: only users who generated revenue
Expand Average revenue per user: only users who generated revenue
Expand Average revenue per user: only users who generated revenue
Sum event values per user, then compute the Average of those values where Higher is betterUnits without events: ExcludedHere is what the metric setup looks like:
The metric creation dialog.
| Step 1 | Step 2 | Step 3 |
|---|---|---|
Users made the following purchases:
| The metric calculates the sum for each user, excluding those who didn’t purchase anything:
| The metric then calculates the average sum:
|
Average revenue per user: all users
Expand Average revenue per user: all users
Expand Average revenue per user: all users
Sum event values per user, then compute the Average of those values where Higher is betterUnits without events: Include units and set the value to 0Here is what the metric setup looks like:
The metric creation dialog.
| Step 1 | Step 2 | Step 3 |
|---|---|---|
Users made the following purchases:
| The metric calculates the sum for each user, including those who didn’t purchase anything:
| The metric then calculates the average sum:
|
Example: average number of purchases
This section includes the configuration options for common custom conversion binary metrics related to average number of purchases. For the example in this section, the randomization unit is “user.”Average number of purchases: per user who purchased
Expand Average number of purchases: per user who purchased
Expand Average number of purchases: per user who purchased
Count events per user, then compute the Average of those values where Higher is betterHere is what the metric setup looks like:
The metric creation dialog.
| Step 1 | Step 2 | Step 3 |
|---|---|---|
Users made the following purchases:
| The metric calculates the sum for each user, excluding those who didn’t purchase anything:
| The metric then calculates the average sum:
|
Example: latency
This section includes the configuration options for common custom numeric metrics related to latency time. For the example in this section, the randomization unit is “request.”Latency excluding the slowest 1% of results
Expand Latency excluding the slowest 1% of results
Expand Latency excluding the slowest 1% of results
Average event values per user, then compute the P99 of those values where Higher is betterHere is what the metric setup looks like:
The metric creation dialog.
| Step 1 | Step 2 |
|---|---|
Requests had the following latency:
| The metric then calculates the 99th percentile:
|
Conclusion
The guide explained how to set up metrics to help answer common questions about your app’s revenue and latency performance. For more examples of experiments you can run, read Example experiments.Want to try it out? Start a trial.