Skip to content

Set up goals

A goal turns a custom event or a page view into a conversion: how many visitors did it, and what share of all visitors that is. Goals are counted when you open a report, so a new goal covers all your stored history at once. Anyone in the workspace can add one.

Where goals are

Open your site and choose Goals & events in the sidebar, under Behavior (or press G, then E). The Goals table comes first, then Custom events; New goal… is at the top right. The page follows the period, and a segment or cohort if you pick one from Filter. The Overview’s Goals & events panel shows the same goals for its period.

Sample sites have fixed goals, so New goal… is off there.

Add a goal

1

Select New goal…. On a custom event’s page, Make it a goal… opens the same dialog with the event filled in.

2

Under Completed when a visitor…, choose Sends a custom event or Views a page.

3

Enter the Event name your code sends with window.track(), or the Page path. The field suggests the events and pages your site had most in the last 30 days; a name you’re about to add works too.

4

Give it a Name if you like, up to 60 characters, such as “Signed up”. Without one, it’s named after its event or path.

5

Check Make this the key goal if it’s the one that matters most, then select Add goal.

The dialog closes and a message confirms the goal was added. It’s in the Goals table, counted back through all stored history.

Match pages with a path

PathMatches
/thank-youThat page only. Paths are stored without their query string or trailing slash, so /thank-you/ and /thank-you?ref=mail count too.
/checkout/*Every path that starts with /checkout/, such as /checkout/done and /checkout/a/b, but not /checkout itself.
/checkout*Every path that starts with /checkout: /checkout, the pages under it, and /checkouts too.

A path starts with /, has no spaces, ?, or #, and is up to 500 characters. A * goes only at the end, once. Paths are case-sensitive, and they don’t include the hostname: if your site counts several hostnames, the goal matches the path on each of them.

As you type, the dialog says how many recently visited pages match, with examples. If /account/* matches none but /account had visitors, it says so and offers Use /account.

What the numbers mean

The Goals table and a goal’s own page show these. Select a goal to open its page, with a chart, the comparison with another period, and a breakdown of who converts.

NumberWhat it counts
CompletionsEvery time it happened, repeats included: each matching event, or for a page goal each view of a matching page (its page calls it Page views).
ConvertedDistinct visitors who completed it at least once in the period. Converted visitors on the goal’s page.
RateConverted ÷ every visitor who started a visit in the period, with the same segment, cohort, and filters. Conversion rate on the goal’s page.
RevenueThe amounts sent with the goal’s event. A page goal has none. See Send revenue with an event.
Per conversionOn the goal’s page: revenue ÷ converted visitors.

Unless your site recognizes a visitor across days (Recognize returning visitors, with their consent), they have a daily code: someone who visits on two days counts as two visitors, in Converted and in the rate’s visitors alike.

With history imported from Google Analytics, a goal on an event Google recorded counts the imported days too, by the event’s name, as long as no segment, cohort, or filter is picked and the period is counted by day: Google’s events are totals per day and name. Page goals, and events Google didn’t record, count from the day Lyli’s own data begins, and the page says so.

The key goal

Each site has at most one key goal. It’s marked Key goal in Goals & events and on the Overview’s panel, a new Attribution report starts from it, the Overview’s CSV download adds its converted visitors to the totals, and the API’s goals list flags it as key_goal. Checking Make this the key goal on another goal moves it there; unchecking it leaves the site without one.

Edit or delete a goal

Open the goal’s page. Edit goal… opens the same dialog, with Save goal. If you change the event of an event goal, its page moves to the new event’s address.

Delete goal… asks first: “Your data stays; only the goal is removed.” After you confirm, you’re back on Goals & events. The goal’s events and page views stay, and an event goal’s event is still listed under Custom events.

Limits and edge cases

  • One goal per event or path. A second one for the same event or path is refused: “There is already a goal for …”.
  • Exact event names. A goal’s event must match what your code sends, capitals included. A goal whose event hasn’t arrived shows 0, and its page asks you to check that the event name in your code matches exactly.
  • Funnels start from goals. With two or more goals, a new funnel takes up to four of them as its steps, page goals first.
  • Share links. A share link that opens Goals & events shows the goals’ totals, never single completions.