For AI agents: a documentation index is available at /docs/llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.
Marketing metrics recipes
This article provides recipes to recreate common marketing metrics, such as session totals, bounce rate, and page views. Each recipe gives the setup for Metric Explorer, the default chart for new analyses. Each recipe also gives the setup for the Event Segmentation or User Sessions chart. Choose the tab for the chart you work in. In Metric Explorer, all of these metrics can share one chart, each with its own measurement and filters.
Before you start, read the basics of building charts in Amplitude. Some recipes in this article use custom formulas, which the custom formula metrics, syntax, and definitions article explains.
Metric recipes
The examples in this section provide a starting point for setting up each metric. As with other analyses, use filters, group-bys, or segmentation to refine results.
You can also apply the setup instructions for session totals, visitors, page views, bounce rate, entry rate, and exit rate to Data Tables analyses.
Session totals
The session totals metric provides a sum of sessions.
Metric:
Page Viewed, measured as Total Sessions. Amplitude counts sessions that contain at least onePage Viewedevent.To filter results by a specific domain or URL, click + Filter by, choose [Amplitude] Contains Event, select
Page Viewedwith a count of at least one, and add aPage URLcondition to the event.Segment by: All users.
Visitors
The visitors metric counts unique users who trigger a specific event.
Metric:
Page View, measured as Unique Users.To filter results by a specific domain or URL, click + Filter by, choose
Page URL, and select your domain.Segment by: All users.
Sessions per user
The sessions per user metric gives an average count of sessions by unique user.
Metric:
Page Viewed, measured as Average Sessions per User.To filter results by a specific domain or URL, click + Filter by, choose [Amplitude] Contains Event, select
Page Viewedwith a count of at least one, and add aPage URLcondition to the event.Segment by: All users.
Average session duration
The average session duration metric gives an average length of sessions.
Metric:
Page Viewed, measured as Average Session Duration. To choose days, hours, or minutes, use Counting in.To filter results by a specific domain or URL, click + Filter by, choose [Amplitude] Contains Event, select
Page Viewedwith a count of at least one, and add aPage URLcondition to the event.Segment by: All users.
Page views
The page views metric gives a sum of page view events.
Metric:
Page View, measured as Event Totals.To filter results by a specific domain or URL, click + Filter by, choose
Page URL, and select your domain.Segment by: All users.
Page views per session
The page views per session metric gives an average count of Page View events per session.
Metric:
Page View, measured as Events per Session.To filter results by a specific domain or URL, click + Filter by, choose [Amplitude] Contains Event, select
Page Viewedwith a count of at least one, and add aPage URLcondition to the event.Segment by: All users.
Bounce rate
The bounce rate metric compares the count of sessions with a single Page View event to the total number of sessions, as a percentage.
For the project-wide bounce rate, add the [Amplitude] Bounce Rate metric from the metric picker. To build it yourself, for example for one domain:
Metric A:
Page Viewed, measured as Total Sessions, with + Filter by > [Amplitude] Contains Event >Page Viewedwith a count equal to one.Metric B:
Page Viewed, measured as Total Sessions.To filter results by a specific domain or URL, add [Amplitude] Contains Event >
Page Viewedwith a count of at least one and aPage URLcondition to both metric A and metric B.Formula C: Click fx and enter
%:A/B.Segment by: All users.
This chart calculates the 30-day bounce rate for the Page URL ampli.com/home. The bounce rate for March 4th was 97.3 percent.
| Date | All Users |
|---|---|
| Feb 21, 2026 | 96.9 |
| Feb 22, 2026 | 98.1 |
| Feb 23, 2026 | 96.7 |
| Feb 24, 2026 | 97 |
| Feb 25, 2026 | 97.6 |
| Feb 26, 2026 | 98.2 |
| Feb 27, 2026 | 97.4 |
| Feb 28, 2026 | 90.2 |
| Mar 1, 2026 | 98 |
| Mar 2, 2026 | 97.3 |
| Mar 3, 2026 | 93 |
| Mar 4, 2026 | 97.3 |
| Mar 5, 2026 | 91.2 |
| Mar 6, 2026 | 96.8 |
| Mar 7, 2026 | 97.6 |
| Mar 8, 2026 | 96.9 |
| Mar 9, 2026 | 95.4 |
| Mar 10, 2026 | 97.1 |
| Mar 11, 2026 | 97.3 |
| Mar 12, 2026 | 96.6 |
| Mar 13, 2026 | 96.6 |
| Mar 14, 2026 | 96 |
| Mar 15, 2026 | 98.2 |
| Mar 16, 2026 | 95.9 |
| Mar 17, 2026 | 93.1 |
| Mar 18, 2026 | 96 |
| Mar 19, 2026 | 97.5 |
| Mar 20, 2026 | 89.9 |
| Mar 21, 2026 | 95 |
| Mar 22, 2026 | 98 |
The chart plots the daily bounce rate for ampli.com/home over 30 days, where bounce rate is the share of sessions that contain exactly one Page View. The line stays in the low-to-high 90s all month and peaks at 97.3 percent on March 4, so almost every session that reaches this page views only that page and leaves. A rate this high and this flat flags a landing page worth investigating. The dashed tail marks the most recent day, whose data is still provisional.
Entry rate
The entry rate metric compares sessions with a Page View event grouped by the first property value of the specified event property to the total number of sessions, as a percentage.
Metric A:
Page Viewed, measured as Total Sessions, with + Group-by > [Amplitude] First Property Value >Page Title.Metric B:
Page Viewed, measured as Total Sessions.To filter results by a specific domain or URL, add [Amplitude] Contains Event >
Page Viewedwith a count of at least one and aPage URLcondition to both metric A and metric B.Formula C: Click fx and enter
%:A/B.Segment by: All users.
This chart calculates the 30-day entry rate for the Page URL ampli.com/home. The chart's group-by property value Page Title appears as different colored lines in the chart. The entry rate for March 3rd was 35.5 percent for the Home property value.
| Date | Home | Log In | Protein | Support | Sign Up | Produce |
|---|---|---|---|---|---|---|
| Feb 21, 2026 | 33.5 | 13.5 | 14.2 | 10.5 | 11.2 | 16 |
| Feb 22, 2026 | 33.4 | 15.4 | 16.1 | 14 | 10 | 11 |
| Feb 23, 2026 | 38.2 | 14.1 | 15.5 | 11.5 | 9.5 | 12.5 |
| Feb 24, 2026 | 39.7 | 14.9 | 14 | 10 | 4 | 14 |
| Feb 25, 2026 | 32 | 12.5 | 13.2 | 14.8 | 12 | 13.5 |
| Feb 26, 2026 | 36 | 15 | 15 | 9.5 | 10.5 | 12 |
| Feb 27, 2026 | 38.6 | 13.8 | 16.8 | 10.2 | 8 | 14.5 |
| Feb 28, 2026 | 32.3 | 14.5 | 12 | 8 | 9.5 | 13 |
| Mar 1, 2026 | 36.3 | 15.2 | 15.5 | 9.5 | 11.5 | 12.5 |
| Mar 2, 2026 | 35.4 | 14.8 | 16 | 10.5 | 10 | 11.5 |
| Mar 3, 2026 | 35.5 | 15 | 16.2 | 10 | 9.8 | 12 |
| Mar 4, 2026 | 33 | 15.4 | 16.1 | 11.5 | 10.5 | 13.5 |
| Mar 5, 2026 | 34.9 | 14.1 | 16.5 | 10.8 | 9 | 14 |
| Mar 6, 2026 | 36.2 | 14.9 | 15.9 | 9.5 | 8.5 | 13.5 |
| Mar 7, 2026 | 35.4 | 12.5 | 17 | 11 | 10 | 12 |
| Mar 8, 2026 | 36.1 | 25.7 | 12 | 10.5 | 7 | 11.5 |
| Mar 9, 2026 | 31 | 12.7 | 11.4 | 8.5 | 9.5 | 12.5 |
| Mar 10, 2026 | 35 | 16.4 | 15.4 | 12 | 10.5 | 13 |
| Mar 11, 2026 | 35.8 | 16.5 | 12.8 | 10.5 | 9 | 14.5 |
| Mar 12, 2026 | 34.9 | 14.9 | 13.6 | 9.8 | 11 | 13.5 |
| Mar 13, 2026 | 35.8 | 16.4 | 15.4 | 11.2 | 10.2 | 12 |
| Mar 14, 2026 | 35 | 15.7 | 15.7 | 10 | 9.5 | 12.5 |
| Mar 15, 2026 | 30 | 14.7 | 20.6 | 9.5 | 8.8 | 12 |
| Mar 16, 2026 | 28.3 | 16.4 | 18.2 | 8.8 | 10 | 13 |
| Mar 17, 2026 | 33 | 15.9 | 15 | 10 | 11.5 | 14 |
| Mar 18, 2026 | 35.5 | 14.8 | 14.5 | 11.5 | 9.5 | 20.5 |
| Mar 19, 2026 | 34.8 | 15.5 | 16 | 10.2 | 10 | 15 |
| Mar 20, 2026 | 34.1 | 14.2 | 15.2 | 9.5 | 8.5 | 13.5 |
| Mar 21, 2026 | 36.5 | 15 | 14.8 | 10.8 | 9.8 | 12.5 |
| Mar 22, 2026 | 37 | 14.5 | 15.5 | 10 | 10.5 | 13 |
Each line shows the entry rate for one page title, meaning the share of sessions that begin on that page. Home leads throughout at roughly 30 to 40 percent, reaching 35.5 percent on March 3, while the other five page titles sit well below it. Read together, the lines confirm that Home is where most sessions start.
Exit rate
The exit rate metric compares sessions with a Page View event grouped by the last property value of the specified event property to the total number of sessions, as a percentage.
Metric A:
Page Viewed, measured as Total Sessions, with + Group-by > [Amplitude] Last Property Value >Page Title.Metric B:
Page Viewed, measured as Total Sessions.To filter results by a specific domain or URL, add [Amplitude] Contains Event >
Page Viewedwith a count of at least one and aPage URLcondition to both metric A and metric B.Formula C: Click fx and enter
%:A/B.Segment by: All users.
This chart calculates the 30-day exit rate for the Page URL ampli.com/home. The chart's group-by property value Page Title appears as different colored lines in the chart. The exit rate for March 4th was 16.1 percent for the Log In property value.
| Date | Home | Log In | Protein | Support | Sign Up | Produce |
|---|---|---|---|---|---|---|
| Feb 21, 2026 | 34 | 16 | 14 | 10.5 | 9.5 | 12 |
| Feb 22, 2026 | 33 | 15.8 | 15.5 | 11.5 | 11 | 10.5 |
| Feb 23, 2026 | 38.5 | 14.5 | 19.8 | 9.5 | 8 | 11.5 |
| Feb 24, 2026 | 39 | 16 | 16 | 10 | 4.5 | 12 |
| Feb 25, 2026 | 34 | 15.2 | 13.5 | 13 | 10 | 10 |
| Feb 26, 2026 | 39.8 | 15.9 | 15 | 9.5 | 11.5 | 11.5 |
| Feb 27, 2026 | 32.5 | 16.5 | 14.5 | 11 | 9.5 | 12.5 |
| Feb 28, 2026 | 36 | 14.8 | 13 | 8.5 | 8.5 | 10 |
| Mar 1, 2026 | 38 | 15.5 | 15.5 | 10.5 | 10 | 11 |
| Mar 2, 2026 | 36.5 | 16.2 | 16 | 11 | 11 | 12 |
| Mar 3, 2026 | 36 | 15.8 | 14.5 | 10 | 9.5 | 10.5 |
| Mar 4, 2026 | 35.5 | 16.1 | 15 | 11.5 | 10.5 | 11.5 |
| Mar 5, 2026 | 34.5 | 15.5 | 16.5 | 10.5 | 9 | 12 |
| Mar 6, 2026 | 36.5 | 16.8 | 14 | 9.5 | 8.5 | 10.5 |
| Mar 7, 2026 | 38.5 | 15 | 13.5 | 11 | 10.5 | 11 |
| Mar 8, 2026 | 34 | 16.2 | 15 | 10 | 11 | 9.5 |
| Mar 9, 2026 | 33 | 13.8 | 12.5 | 8.5 | 6.5 | 10.5 |
| Mar 10, 2026 | 36 | 15.9 | 15.5 | 11.5 | 9.5 | 11 |
| Mar 11, 2026 | 35 | 15.9 | 16.7 | 10.5 | 10 | 10.5 |
| Mar 12, 2026 | 35.1 | 16.9 | 13.8 | 9.8 | 11.5 | 11.5 |
| Mar 13, 2026 | 35.4 | 15.9 | 14.6 | 11 | 9.5 | 10 |
| Mar 14, 2026 | 37.7 | 15.2 | 14.7 | 10.5 | 10 | 11 |
| Mar 15, 2026 | 36.9 | 15.9 | 15 | 9.5 | 8.5 | 10.5 |
| Mar 16, 2026 | 28.2 | 17.1 | 19.4 | 12 | 9.5 | 9.5 |
| Mar 17, 2026 | 27.7 | 18.2 | 20.1 | 11.5 | 11 | 11 |
| Mar 18, 2026 | 34.1 | 16.2 | 13.7 | 10 | 6 | 12 |
| Mar 19, 2026 | 36.1 | 15.3 | 13.5 | 9.5 | 10.5 | 10.5 |
| Mar 20, 2026 | 34.8 | 18.7 | 14.9 | 11 | 9 | 9 |
| Mar 21, 2026 | 34.8 | 17 | 15.4 | 10.5 | 10 | 11.5 |
| Mar 22, 2026 | 37.6 | 13.3 | 17.7 | 10 | 9.5 | 10 |
Each line shows the exit rate for one page title, meaning the share of sessions that end on that page. Home carries the highest exit share, while Log In sits around 15 to 18 percent and reaches 16.1 percent on March 4. Compare a page's entry rate against its exit rate to see where sessions start versus where they drop off: a page that ranks high in both, like Home, both opens and closes many sessions.
Performance marketing metrics
Amplitude supports several common performance marketing metrics. Create these metrics by following the recipes in this section.
Ad network clicks
- Metric type:
Formula. - Event:
Daily ad metric. - Grouped by:
ad_metrics.clicks. - Formula:
PROPSUM(A).
Ad network impressions
- Metric type:
Formula. - Event:
Daily ad metric. - Grouped by:
ad_metrics.impressions. - Formula:
PROPSUM(A).
Ad network costs
- Metric type:
Formula. - Event:
Daily ad metric. - Grouped by:
ad_metrics.costs. - Formula:
PROPSUM(A).
Return on ad spending
- Metric type:
Formula. - Event A:
Complete purchase.- Grouped by:
Revenue.
- Grouped by:
- Event B:
Daily ad metric.- Grouped by:
ad_metrics.cost.
- Grouped by:
- Formula: %:
PROPSUM(A) / PROPSUM(B).
Customer acquisition cost
- Metric type:
Formula. - Event A:
Daily ad metric.- Grouped by:
ad_metrics.cost.
- Grouped by:
- Event B:
User Sign Up. - Formula: $:
PROPSUM(A) / TOTALS(B).
Clickthrough rate
- Metric type:
Formula. - Event A:
Daily ad metric.- Grouped by:
ad_metrics.impressions.
- Grouped by:
- Event B:
Daily ad metric.- Grouped by:
ad_metrics.clicks.
- Grouped by:
- Formula: %:
PROPSUM(A) / PROPSUM(B).
Was this helpful?