# Goals and funnels

Turn events into conversions and see where visitors drop off.

A goal is a conversion you care about: a visit to `/thanks`, or a custom event like `signup`. A funnel is an ordered list of steps that shows how many visitors reach each one and where they drop off.

## Goals

Make a goal from a page path or from a custom event name, on the site's Goals page. Each goal gets its own conversion rate: the share of visitors who reached it.

- **Custom event.** Type the name your site sends with `track()`, like `signup`. The Goals page suggests the events your site sent in the range you are looking at.
- **Page visit.** Type a path, like `/pricing`, or pick one from the suggestions: pages visited in the range, sections like `/blog/*` and the pages in your [sitemap](/docs/tracking/sitemaps). Use `*` for any part of it: `/blog/*` counts every post. Goals match the path only, so leave out `?` and what follows it. Keep `#` only when it starts a hash route, like `/#/thanks`.

Goals count past visits too. A goal you add today shows its numbers for the whole range at once.

Each goal gets a key made from its name, like `signed-up` for Signed up. Goal and funnel widgets on custom dashboards refer to goals by key, so renaming a goal keeps them working. AI agents read the keys with the `list_goals` tool.

## Funnels

Make a funnel on the site's Funnels page. A funnel takes 2 to 8 steps in order, and each step is a page path or a custom event, like a goal. A visitor counts for a step only after the steps before it, so someone who signs up without seeing the pricing page never counts for a pricing-then-signup funnel. Funnels count past visits too.

Pick when the steps have to happen:

- **Within a day.** The steps can spread over several visits on the same day. This is the default.
- **Within one visit.** Every step has to happen in the same visit, which suits a checkout or a signup form.

The page shows how many visitors started and finished, the conversion between them with its change when you compare, a chart of each step and a table of how many went on and how many left. The step where the most visitors leave is marked. Put a funnel on a custom dashboard with the funnel widget, and AI agents add funnels with the `create_funnel` tool.

> **Note:** Funnels follow one visitor through the steps. An anonymous visitor on two devices counts as two people. Pass your user ID with [`identify()`](/docs/tracking/identify) and the steps join up across devices and across a sign-in, including events your server sends.

## Plan limits

| Feature | Glance | Insight | Foresight |
|---|---|---|---|
| Goals | 3 | Unlimited | Unlimited |
| Funnels | 1, up to 3 steps | 10 | Unlimited |
