Add a goal
1
Open Events
Select Events in the sidebar, or press
g then e. The Goals section is at the top.2
Select Add goal
The Add goal dialog opens.
3
Name it
Enter a Name of up to 80 characters, like
Sign up.4
Choose what completes it
Under Completed by, choose Custom event or Page visit:
- Custom event: pick an event the site already sends (they are listed busiest first with their counts), or type the name of one you are about to add. Type it exactly as your code sends it.
- Page visit: enter a path that starts with
/, like/pricing. You can use wildcards, described below.
5
Optionally give it a value
Enter a Value per completion in the site’s currency, like
5 or 4.50, to count that much revenue each time the goal is completed. Leave it empty for goals that are not worth a fixed amount.6
Save
Select Add goal. The goal appears as a card, and every report counts it, including the events and pageviews already stored.
How goals match
Event goals
An event goal matches every custom event whose name is exactly the goal’s event name. Names are case sensitive:Signup and signup are different events.
Page goals and wildcards
A page goal matches pageviews whose path matches the pattern from start to end. Without wildcards, the path must be exactly the pattern.*matches any characters within one path segment, so it never crosses a/./docs*matches/docsand/docs-v2, but not/docs/install.**matches any characters, including/, so it covers a whole section at any depth.- Every other character matches itself. Paths are compared case sensitively, after the collector has removed query strings and normalised slashes.
Where conversions appear
How the figures are counted:
- Completions: every matching event or pageview in the range. A visitor who views
/pricingthree times completes a/pricinggoal three times. - Visitors: the unique visitors with at least one completion.
- Conversion rate: those visitors divided by all visitors in the range, up to 100%.
- Revenue: the goal’s value times its completions. Goals without a value show no revenue.
The Conversion rate KPI on the overview is a different number: it counts visitors who became paying customers. Goal conversion rates are shown on each goal.
Next steps
Explore events
See every custom event and its properties.
Build a funnel
Chain goals and pages into ordered steps.
Send custom events
Track signups, checkouts and clicks from your code.