Sub topic 17
Troubleshooting funnel numbers that look wrong
This chapter assumes you can already build a funnel exploration with steps, conditions, and open or closed settings. It also assumes you know how GA4 events and parameters work. The goal is a repeatable way to find out why a funnel disagrees with what you expected.
Start with what the funnel actually counts
A funnel exploration counts users who triggered each step's event, subject to the funnel settings. It does not count events or sessions. Many "wrong" numbers come from comparing it with something that counts differently.
| You compare with | Why numbers differ |
|---|---|
| Event count in a standard report | The funnel counts distinct users per step. One user adding five items counts once. |
| Sessions or conversions in a report | A user can complete steps across several sessions. A closed funnel still counts them if time limits allow. |
| Revenue in an ecommerce report | The funnel counts people, not money. |
| Another funnel with different settings | Open versus closed, direct versus indirect order, and time limits all change the counts. |
Before debugging, write down what you expected and which unit it was in. Often the numbers are correct and the expectation is the problem.
A diagnostic order
Work from cheapest to most expensive checks. Settings come first, then data collection, then platform limits.
Check the exploration settings
Date range. Data for recent days can take 24 to 48 hours to finish processing. A funnel that includes today or yesterday may show a late step as too low. Compare against a range that ends at least two days ago.
Open versus closed. In a closed funnel, users must enter at step 1. In an open funnel, users can enter at any step. If step 3 has more users than step 2, you probably have an open funnel, and that is expected. If step 1 is much smaller than you expected, check that the funnel is not closed when you wanted it open.
Directly versus indirectly followed by. Directly followed means no other events can happen between two steps. Indirectly followed allows other events in between. With direct order, a user who views a page between add_to_cart and begin_checkout is dropped from that transition. Switch to indirect and see whether the drop disappears. If it does, the funnel was too strict.
Time limits. A "within N minutes" limit removes users who took longer. Check the elapsed time shown for each step. If many users take longer than your limit, raise it or remove it.
Segments and filters. A segment applied to the whole exploration changes every step. Confirm whether it is user-scoped, session-scoped, or event-scoped, because event-scoped segments can remove the earlier steps a user needs.
Check the instrumentation
If the settings are right, look at the data. The usual causes are below.
- A step event never fires. A tag only loads on some page templates, or a single-page app skips the event on a client-side route change.
- A step event fires twice. Duplicates do not inflate user counts, but they inflate event counts and break any comparison with events.
- A parameter condition does not match. Conditions are case sensitive and match exact text.
Checkoutandcheckoutare different values. A value sent as a string will not match a numeric comparison. - A custom parameter is not registered. Parameters must be registered as custom dimensions before they are available in an exploration condition.
- Events arrive under a different user. If a user logs in during the journey and you send a User-ID, the pre-login and post-login activity may be stitched or split depending on your reporting identity. This can look like a drop at the login step.
- Consent and blockers. Users who decline analytics consent, or use content blockers, produce no events or reduced data. Late steps hosted on a payment provider's domain can lose the session if cross-domain measurement is not configured.
Use DebugView to confirm each event fires once, in the right order, with the right parameters. Turn on debug mode like this:
// Replace G-XXXXXXXXXX with your measurement ID.
gtag('config', 'G-XXXXXXXXXX', { debug_mode: true });For purchases, a page reload on the confirmation page can send the same purchase event again. Send a unique transaction_id so GA4 can discard repeats. You can also guard on the client:
function sendPurchaseOnce(order) {
const key = 'purchase_sent_' + order.id;
if (sessionStorage.getItem(key)) {
return; // already sent in this browser session
}
gtag('event', 'purchase', {
transaction_id: order.id,
currency: order.currency,
value: order.total,
items: order.items
});
sessionStorage.setItem(key, '1');
}
sendPurchaseOnce({
id: 'T_12345',
currency: 'USD',
total: 29.99,
items: [{ item_id: 'SKU_123', item_name: 'Canvas Tote', price: 29.99, quantity: 1 }]
});The transaction_id is the main protection. The sessionStorage guard only covers reloads within one browser session, so keep both.
Check platform limits
Thresholding. GA4 may hide or withhold rows to protect user privacy, especially when Google signals is on or when a breakdown produces small groups. A shield or warning icon in the report tells you data was affected. Remove demographic breakdowns, widen the date range, or use a broader segment.
Sampling. Explorations can sample when a query touches a large number of events. The indicator at the top of the exploration shows whether the report is based on a sample. Narrow the date range, remove a segment, or split the question into smaller explorations.
Data retention. Exploration data is limited by the property's event data retention setting, which is two months or fourteen months. A funnel over a longer range will show nothing before that cutoff. A funnel that looked complete last quarter may now show a gap for this reason. Check the setting under Admin, Data collection and modification, Data retention, and set it to fourteen months if it is two.
Configuration changes are not retroactive. Registering a custom dimension or adding an event later does not fill in earlier days.
Confirm with a second source
When you still cannot explain a number, find an independent count. Run the same steps through the Data API's runFunnelReport method, or compare a single step against a standard event report for the same range. If the two agree, the exploration settings are fine and the difference is in your expectation. If they disagree, the problem is in the data. Note that runFunnelReport is in the alpha channel, so its behavior may change.
Exercise
A closed funnel with steps viewitem, addtocart, begincheckout shows 4,000 users at step 1, 900 at step 2, and 1,100 at step 3 after you switch it to open. Is that a data error? Which setting do you check first, and what do you check next if step 3 is still higher than step 2 in the closed version?
Show answer
It is not an error in the open version. An open funnel lets users enter at any step, so users who began checkout without a counted addtocart can appear at step 3. If step 3 is still higher in the closed version, check the instrumentation: addtocart may not fire on some paths (for example a "buy now" button or a client-side route), and check whether the step order is set to directly followed by, which would drop users who had other events in between. Use DebugView to confirm addtocart fires on every path to checkout.
Exercise
Your purchase step count suddenly looks about 40 percent too high in event counts but normal in user counts. What is the likely cause, and how do you fix it?
Show answer
The purchase event is probably firing more than once per order, for example on a reload of the confirmation page. User counts stay stable because each user is counted once. Fix it by sending a unique transaction_id with every purchase event and by guarding the tag so it only fires once per order.