Sub topic 4
Deciding what counts as a lead and a sale
This chapter assumes you have a GA4 property with a web data stream, Editor access, and a basic grasp of the event model from earlier chapters. You should also know that a key event is an event you flag in GA4 as important to the business. Here you decide which user actions deserve that flag, before you write any tracking code.
Why the definition comes first
GA4 will record any event you send. It has no opinion on whether a form fill is a lead or whether a click on a phone number is a sale. Those definitions belong to the business. If you skip this step, you tend to end up with one of two problems:
- Too many key events, so the reports mix trivial actions with real outcomes and every number looks good.
- The wrong key events, so the reports reward behavior that never produces revenue.
A written definition also helps later. It tells you which event to build, whether it needs a value, and which counting method to choose.
Start from the business outcome
Work backward from money. Ask what the business needs to happen for it to earn revenue, then find the last action that a website can observe.
| Business type | Real outcome | Last observable action on the site |
|---|---|---|
| Online shop | Money received for an order | Order confirmation page after payment |
| Consulting firm | Signed contract | Contact form submitted |
| Software trial | Paying customer | Trial account created |
| Local restaurant | Table booked | Reservation confirmed |
The real outcome often happens off the site, such as a signed contract or a phone call. In that case, pick the closest action that the site can see reliably. Later chapters cover importing offline results, but start with what the browser can observe.
Defining a lead
A lead is a person who has shown enough interest that your team can follow up. A good lead definition has three parts.
- The action. The user does something deliberate, such as submitting a form, booking a call, or starting a chat.
- The confirmation. The site knows the action succeeded, for example the server accepted the form, rather than the user only clicking the button.
- The quality bar. Optional rules that separate real leads from noise, such as a required business email field.
Common lead candidates
| Candidate | Good as a lead? | Notes |
|---|---|---|
| Contact form submitted successfully | Yes | The usual choice. Fire it on success, not on button click. |
| Quote request submitted | Yes | Often worth a higher value than a general inquiry. |
| Click on a phone number | Sometimes | Shows intent, but not that a call connected. Treat it as a separate, lower-value event. |
| Newsletter signup | Depends | A lead only if the business follows up as with a sales lead. Otherwise it is a micro-conversion. |
| PDF download | Rarely | Often early research. Track it as an ordinary event. |
| Page view of a "Thank you" page | Weak | Breaks when users reload or reach the URL directly. Prefer an event tied to the actual submission. |
The key distinction is between macro outcomes and micro actions. A macro outcome is something the business would pay for, such as a qualified inquiry or an order. A micro action is a step toward one, such as scrolling, viewing a pricing page, or adding an item to a cart. Micro actions are useful as ordinary events or audience conditions. Marking too many of them as key events dilutes the metric.
Several lead types
Many sites have more than one kind of lead. You have two ways to represent that:
- Use one event name, such as
generate_lead, and add a custom parameter likelead_typewith values such asquoteordemo. This keeps the key event list short and lets you break the data down in reports once you registerlead_typeas a custom dimension. - Use separate custom events, such as
request_quoteandbook_demo, and mark each as a key event. This makes each outcome independent, which helps when different outcomes get different values or ad campaigns optimize for different goals.
As a rule, use one event with a parameter when the outcomes are the same kind of thing at different levels. Use separate events when you will manage or report on them as separate goals.
Defining a sale
A sale is a completed transaction where the customer has committed to pay. The definition has fewer gray areas than a lead, but several decisions still matter.
When does a purchase happen?
Pick the moment the site can be sure of. Options include:
- Payment confirmed. The payment provider returned success. This is the most accurate and the best default.
- Order placed. The customer submitted the order, but payment may still be pending, for example bank transfer or invoice. Count it only if you accept that some orders will never be paid.
- Order shipped or fulfilled. Accurate, but it happens later and usually on a server, not in the customer's browser.
Questions to settle
- Taxes and shipping. Is
valuethe item total, or the total including tax and shipping? Choose one and keep it. GA4 does not enforce a rule, so a mismatch with your finance reports is a common complaint. Many teams send the revenue figure that matches what they report internally, often excluding tax. - Refunds and cancellations. A browser purchase event does not reverse itself. GA4 has a separate
refundevent for returns. Decide whether you will send it. - Subscriptions. Decide whether only the first payment counts as a sale or whether each renewal does. Renewals usually happen without a site visit, so a browser tag cannot see them.
- Free orders and test orders. Decide whether a zero-value order counts. Make sure staff test orders are excluded, for example by filtering internal traffic.
- Multiple currencies. Each purchase must carry the currency of its
value. Reports convert amounts to the property currency.
A definition template
Write a short entry for each outcome and keep it with your tracking documentation. A good entry answers the same questions every time.
| Field | Lead example | Sale example |
|---|---|---|
| Name | Quote request | Online order |
| Event name | `generate_lead` | `purchase` |
| Trigger | Server confirms the form was saved | Payment provider confirms payment |
| Value | 25.00 USD, the estimated average worth of a lead | Actual order total, excluding tax |
| Unique ID | Not needed | `transaction_id` from the order system |
| Counting method | Once per session | Once per event |
| Excluded | Spam and internal test submissions | Test orders and zero-value orders |
The counting method row looks ahead to a later chapter. For now, write down your expectation: a visitor who submits two quote forms in one visit is usually one lead, while two orders in one visit are two sales.
How the decision maps to GA4 event types
Your decision usually lands in one of two places.
- A recommended event. If your outcome matches a Google-defined event, such as
generate_leadorpurchase, use that name. Google's interface and integrations know these names, and reports can use their standard parameters. - A custom event. If nothing fits, create your own, such as
request_quote. Use lowercase letters, digits, and underscores, and keep the name descriptive and stable.
Using the recommended event is the safer default because parameters such as value, currency, and items have defined meanings there.
// A lead with an estimated value and a type label
gtag('event', 'generate_lead', {
currency: 'USD',
value: 25.00,
lead_type: 'quote'
});In this example, lead_type is a custom parameter. It does not appear in standard reports until you register it as a custom dimension in Admin.
A decision flow
The diagram shows how to decide whether an action becomes a key event.
Common mistakes in definitions
- Counting the click, not the result. A "Submit" button click fires even when validation fails. Fire the event after success.
- Using a page view as the trigger. Users can reload a thank-you page and inflate counts. An event on confirmed success is more reliable.
- Marking everything. If ten events are key events, none stands out. Keep the list to outcomes you review regularly.
- Inventing a value. A made-up lead value that finance would not recognize erodes trust in the numbers. Base it on close rate times average deal size, and revisit it when those change.
- Changing the definition silently. Switching the trigger changes the trend line. Record the date and the change.
Summary of the decisions
By the end of this step you should have, for each outcome:
- A plain-language definition tied to a business result.
- The exact trigger moment, based on confirmation.
- The event name, recommended or custom.
- Whether it carries a value, and how that value is calculated.
- An expectation for duplicates and counting.
Exercise
A consulting firm's site has a contact form, a "Download our brochure" link, and a "Call us" phone link. Which should be key events, and when should the contact form event fire? Give one reason for each choice.
Show answer
Mark the contact form as a key event, using generate_lead. It is the most direct request for follow-up. Fire it after the server confirms the submission, not on the button click, because clicks fire even when validation fails. The phone link can be a separate, lower-value key event if the firm treats calls as leads, since it shows intent but not a connected call. The brochure download is better left as an ordinary event because it usually signals early research rather than a business outcome.
Exercise
A shop sends a purchase event from its order confirmation page. Customers sometimes reload that page. Which decision from this chapter and which field in the definition template address this, and what does the template entry look like?
Show answer
The unique ID decision addresses it. In the template, the "Unique ID" field for the sale lists transactionid taken from the order system, so each order is sent with its own identifier and a reloaded page does not create a second sale. The chapter on transactionid covers how GA4 uses it to drop duplicates.