Microsoft Clarity and GA4: Find the Step Where Shoppers Quit, Then the Reason
10 min read
Contents
- What the AI handles, and what stays with you
- Step 1. Before you start: is each step tracked correctly
- Step 2. The purchase path and each step's conversion rate
- Step 3. Split the data: device, source, product
- Step 4. Clarity: specific pages and a comparison
- Step 5. Recordings: a segment, then the patterns
- Step 6. Fixes: on the page, in the order of the patterns
- Step 7. Measuring the result
- Step 8. Connecting, storing the data and running it on a schedule
- Rules at a glance
GA4 tells you at which step of the purchase people drop off. Microsoft Clarity shows what they did on the page before they left. Each source on its own gives you half an answer: GA4 shows a drop with no cause, and recordings without numbers turn into watching random sessions. This guide walks through the whole method: checking the tracking, the purchase path, splitting the data, Clarity, the recordings, choosing fixes, measuring the result, and connecting and collecting the data every day. It ends with a list of rules you can drop into your own process.
What the AI handles, and what stays with you
Most of this work is reading and lining up data from two tools that don't talk to each other. An AI assistant with access to GA4 and Clarity:
- calculates the purchase path and the conversion rate of each step,
- splits it by device, traffic source and product,
- compares Clarity signals for the pages in question against the rest of the site,
- picks recordings by segment and describes the patterns that repeat,
- suggests the order of fixes and a way to measure them,
- saves the Clarity data every day, so your history doesn't depend on how long Clarity keeps it.
You still judge whether a pattern in the recordings is real, decide what changes on the page, and talk to whoever will make that change.
Step 1. Before you start: is each step tracked correctly
A leak in GA4 is sometimes a hole in the tracking. Before you read anything into the numbers, walk the whole path in Tag Manager preview and GA4 DebugView and check that each step sends its event with all its parameters. The usual faults:
- a plugin sends a second
view_itemwhereadd_to_cartshould be, andpurchasefires twice with the same transaction ID, purchasefires only after the shopper returns from the payment gateway, so anyone who doesn't come back never shows up as a purchase, and the payment step looks like a leak,- GA4 installed twice (in the theme and in Tag Manager), or enhanced measurement duplicating the same events,
- a step sent only to ad platforms and missing in GA4, which leaves a gap in the path.
Compare GA4 transactions with the store's order system too. Missing 10-20% is normal; 20-30% points to a broken setup. The consent banner explains part of the gap, but a declined banner cuts carts and purchases alike, so it doesn't explain a drop BETWEEN steps.
End your date range two days ago: GA4 is still processing the last 24-48 hours.
Step 2. The purchase path and each step's conversion rate
Four events build the path: view_item, add_to_cart, begin_checkout and purchase. For each step you calculate what share of the people from the previous step moved on. That's the step's conversion rate, and it shows where people drop. Watch the unit: the GA4 funnel report counts users, and dividing events by sessions by hand gives different numbers, sometimes over 100%.
In the recording, the store has 48,200 sessions, 803 purchases and a 1.67% conversion rate. Every step sits inside its typical range, so the total shows no leak. That's a common picture: a total averages several different groups, and one group's problem disappears inside it.
Look at the next action as well. The funnel report shows what people did instead of moving on: leaving the site, going back to a product list (the page didn't convince them, so they keep browsing), or getting stuck on shipping.
Step 3. Split the data: device, source, product
Split the same step three ways, one after another:
- Device. A step's conversion rate differing by more than 10 percentage points is a red flag; under 5 points, the devices perform about the same. Lost purchases = the difference in rates times the number of mobile users at that step.
- Traffic source. A "mobile" leak is sometimes a leak in one source that happens to be mostly mobile, such as cold traffic from a reach campaign.
- Product. Add-to-cart after a product view under 5% is low; purchase after add-to-cart under 4% is a red flag. Compare the five best product pages with the five worst before you pick pages for Clarity.
In the recording, the leak shows up once the data is split by device: 21% of product views reach the cart on desktop, 11% on mobile, and the later steps are almost equal. The problem sits on the mobile product page.
If the leak is at checkout, break it into shipping, payment info and purchase (add_shipping_info, add_payment_info). Empty steps mean the store doesn't track them.
Step 4. Clarity: specific pages and a comparison
Open Clarity with a question. Take the pages and device GA4 pointed to and compare their signals with the other device and with the site average:
- dead clicks (a click the page doesn't respond to): a warning sign above 5% of clicks,
- rage clicks (rapid repeated clicks in one spot): worth watching every occurrence,
- quick backs (an immediate return to the previous page): a warning sign above 10% of sessions,
- scroll depth: below 50% on a long page, the button may be out of reach,
- JavaScript errors and load times, which Clarity also shows per page.
In the recording, dead clicks on mobile product pages affect 21.7% of sessions, 4.3 times the site level, and only 47% of visitors reach the "Add to cart" button.
Before you compare Clarity's numbers with GA4's, check how Clarity handles consent. Google tags respect Consent Mode on their own, while a script added as custom HTML loads without consent until you assign it analytics_storage. GA4's numbers are also reduced by declined consent, so the gap between the tools has more than one cause.
Step 5. Recordings: a segment, then the patterns
Don't watch recordings in order. Filter a segment of people who did X and didn't do Y: here, mobile visitors who viewed a product and never added it to the cart. The simplest way to build it is from URLs: an abandonment is a session that ends on a product page, and a purchase is a session that reached the thank-you page. Events set up in Clarity, such as add-to-cart, let you narrow the segment further.
You're looking for patterns that repeat. In the recording, 7 of 12 visitors tap a sold-out size that looks available, and 5 never reach the button. Baymard's research describes the same thing in apparel stores: 39% of test participants found out their size was gone only on the product page.
A dozen recordings give a hypothesis. The numbers after the fix decide.
Step 6. Fixes: on the page, in the order of the patterns
Order the fixes by how many recordings each pattern covers. In the recording: mark sold-out sizes on the button itself, keep "Add to cart" on screen while the visitor scrolls, and put size guidance next to the size buttons.
A leak on the page gets fixed on the page. The campaign brings traffic, and it can't lift a product page's conversion rate. If a store has clicks and add-to-carts without purchases, more campaign changes won't help. Until the fix ships you can lower mobile bids with a device adjustment in campaign types that allow it (Performance Max doesn't). A separate mobile campaign is a relic.
Step 7. Measuring the result
The strongest proof is an A/B test on the page. It needs two things: enough traffic and a clean setup. A fair test runs a month, three at most, and a test with fewer than a few dozen conversions per variant rarely settles anything. A Tag Manager trigger must not rely on the element the test changes, and flicker of the original version before the test variant loads skews the result.
When there isn't enough traffic for a test, compare before and after against a control:
- at least four full weeks, longer with low traffic,
- leave out the week the change went live,
- measure the step you fixed, on the device where it leaked,
- the control is the device without the leak: its numbers should stay flat, and if they rise along with mobile, a season or a promotion caused the lift.
Once one step improves, the bottleneck moves to the next one, so the process starts over.
Step 8. Connecting, storing the data and running it on a schedule
A one-off analysis only needs access. To compare the weeks before a fix with the weeks after it, you also need your own history of Clarity data.
Connecting:
- GA4 with the four path events, plus
add_shipping_infoandadd_payment_infoif checkout has several stages. Read access to the GA4 property is enough for an AI assistant. - Clarity as a tag on the site, with consent set to
analytics_storage. - Access to Clarity data through the API: only a project admin can generate the token (Settings, data export). The token belongs to one project, so each store has its own.
- The GA4 export to BigQuery if you want raw events and single-session paths. It collects data from the day you link it and never fills in the past, so link it before the season starts.
Storing: the Clarity API reaches a few weeks back, but it allows 10 metrics requests a day per project, and recordings aren't kept forever. A multi-week analysis after the fact easily hits the limit, and older recordings may be gone. So each day you save the metrics for the pages you care about and the recordings of chosen segments into a folder per day. A "day complete" marker gets written only after a successful save, and after an error the next run retries the same day. A few weeks later you have your own comparison window, independent of the limits and of how long Clarity keeps the data.
Analyzing the saved recordings:
- define abandonment by exit page (the session ends on a product page or the checkout page) and a purchase by a visit to the thank-you page; a filter like "visited page X excluding page Y" can return the wrong sessions, so check the result,
- set the device in the query filter, because a single recording record doesn't always carry it,
- compare abandoners with buyers on the same page: time on page, event types and the text of the elements they clicked,
- check JavaScript errors with a separate filter, because they can block a button without leaving a trace in GA4,
- the recordings response can be very large, so process it with a script and read only the summary plus a few links to specific sessions.
Running it on a schedule: a system scheduler (on a computer or a server) runs the export every morning for the previous day. A scheduler inside an AI assistant session won't do, because it only runs while the session is open. Set an end date for the collection and check the run log: you can backfill a gap in the exports only as long as Clarity still holds that data. A system scheduler runs the job in a stripped-down environment and may not see programs installed from the terminal, such as the Node.js the Clarity server needs. So check the log of the first automatic run the very next day.
Rules at a glance
- Tracking first, interpretation second: walk the path in tag preview and match transactions with the store's orders.
- End the date range two days ago.
- Totals hide leaks. Split each step by device, source and product.
- GA4 finds the step and the device, Clarity the cause, and a test or a controlled measurement decides.
- Open Clarity with a question and a comparison, and filter recordings by segment.
- Check how Clarity handles consent before you compare its numbers with GA4's.
- A leak on the page gets fixed on the page. The campaign can't patch it.
- After a fix, look for the next bottleneck.
- Save Clarity data daily from the day you connect it: the request limit is daily, and recordings don't stay in Clarity forever.
Keep learning with free tutorials
BDOS Club is our free community on Circle. Join to get tutorials on using AI in Google Ads, from writing useful prompts to running full campaign workflows.