如何在Google Analytics中按时间线统计访某页未访另一页的用户?
Got it, let's break this down for you—tracking users who hit your checkout page but never made it to the thank-you page, with a timeline view. I'll cover both GA4 (the current standard) and Universal Analytics (since some folks still rely on it) to cover all bases.
Use Explorations to Build a Custom Timeline Report
This is the most straightforward way in GA4:
- Head to your GA4 dashboard, click Explorations in the left menu, then create a new Free Form exploration.
- In the Dimensions panel, add:
- Date (this will be your timeline axis)
- User ID (if you have it enabled; optional, but helps with accurate user counting)
- In the Metrics panel, add Users (the core metric we care about).
- The magic happens with Segments:
- Create a segment named Users who visited checkout page:
- Click the + in the Segments panel, choose User segment.
- Add a condition:
Event > Page Locationcontains your checkout page URL (e.g.,/checkout). - Make sure the condition is set to User has done this event in any session.
- Create a second segment named Users who visited thank-you page:
- Repeat the above, but set the condition to your thank-you page URL (e.g.,
/thank-you).
- Repeat the above, but set the condition to your thank-you page URL (e.g.,
- Now, add the first segment to your exploration, then click the Exclude button next to it and select the second segment. This gives you the exact group: users who saw checkout but never reached thank-you.
- Create a segment named Users who visited checkout page:
- Finally, drag the Date dimension to the Rows section of your free form, and the filtered segment's Users metric to the Columns section. You’ll have a daily/weekly/monthly timeline of your target user count.
Alternative: Custom Events + Calculated Metrics (For Automation)
If you want this data in a standard report instead of explorations:
- Trigger a custom event (e.g.,
view_checkout) on your checkout page, and another (e.g.,purchase_complete) on your thank-you page. - Create a calculated metric that counts users who triggered
view_checkoutbut never triggeredpurchase_complete. Note: This requires setting up user-level conditions, so explorations are still simpler for one-off reports.
Custom Report + Advanced Segment
- Go to your UA dashboard, click Customization > Custom Reports, then create a new report.
- Pick Flat Table as the report type. Add Date as your dimension, and Users as your metric.
- Click Add Segment, then create an advanced segment named Checkout visitors who didn’t reach thank-you:
- Set two conditions:
- Include: Page > Contains your checkout page URL
- Exclude: Page > Contains your thank-you page URL
- Ensure the segment is set to User-level (not session-level) to capture users who never reached the thank-you page across all their sessions.
- Set two conditions:
- Save the report, and you’ll see a timeline of user counts broken down by date.
Bonus: Funnel Visualization
UA’s Funnel Visualization can also show you this drop-off: set up a funnel with "Checkout Page" as the first step and "Thank-You Page" as the second. The difference between step 1 and step 2 users is your target group. For a strict timeline, though, the custom report method is more direct.
Quick Notes
- Double-check your URL matches (include any subdomains or path variations if needed) and filter out test/staging traffic to keep data accurate.
- GA4 and UA use slightly different user counting logic (GA4 relies on device identifiers/User ID; UA uses cookies), so numbers might not line up exactly between the two.
内容的提问来源于stack exchange,提问作者Dzyner

