Last updated 26 November 2026. By Paul Badarau.
A fictional online course seller wants two numbers: free signups and paid orders. Signups end on /welcome, so the seller adds a page goal for that path and writes no code. Orders end on a confirmation screen that has no address of its own, so the seller adds a named event goal called purchase and calls postdeploy.track('purchase', { revenue: 49 }) once the payment succeeds. A week later the report shows 63 signups, 11 purchases and the revenue they brought, broken down by source and campaign.
Nothing in this needs a cookie. The Analytics script sets none, and each visitor is counted once per Project and local day with a salted hash that changes daily.
Choose the goal type by where success happens:
- Use a page goal when success has its own page. It matches the exact path, needs no code and never adds a pageview.
- Use a named event when success has no page, for example a modal, an inline form or a state inside a single-page app.
- Use a named event with
revenuewhen you want the amount. A page goal carries no revenue. Send the amount as a number in your own currency.
To set it up:
- Decide where success is confirmed. Fire the goal after the payment or the signup succeeds, not when the button is clicked.
- Ask an Owner or Administrator to add the goal. A new Project starts with none. A Project holds at most 40 goals, archived ones included.
- Name it with care. You can change a goal's label later, but not the path or event name it matches.
- Add goals before the traffic you want to measure arrives, such as before a launch.
- Complete the goal once yourself and check that it appears in the report.
Read the two kinds of number differently. Completion counts include repeats, so a visitor who reloads /welcome completes the goal twice. Conversion rates divide visitor-days that completed a goal by all visitor-days in the same range and filters, so that reload does not raise the rate. A visit also keeps at most 20 goal events.
What you give up is the link between days. A visitor who clicks a campaign link on Monday and buys on Thursday is credited to whatever brought Thursday's visit, often Direct or a search. Nothing ties the two days together, so you cannot count distinct customers over a month. If your buyers usually take several days to decide, judge campaigns by the signups and early goals they bring as well as by sales.
The product page for this is Analytics.