How to Track Thank You Page in Google Analytics 4
Setting up conversion tracking is one of the most important things you can do for your business, and the thank you page is often the final destination of that journey. It confirms a specific action has been completed, like a form submission or a purchase. This article will walk you through, step-by-step, how to track visits to your thank you page as conversions in Google Analytics 4.
Why Your Thank You Page is a Marketing Powerhouse
A "thank you" or "confirmation" page isn't just a polite courtesy, it's a critical data point. When a user lands on this page, it signifies that a specific, valuable action has just occurred. For many businesses, tracking views of this one page is the simplest and most reliable way to measure success.
Here are a few common scenarios where tracking a thank you page is essential:
- Lead Generation: Someone fills out your "Contact Us" or "Request a Demo" form and is redirected to your thank you page.
- Newsletter Signups: A new subscriber enters their email and lands on your subscription-confirmed page.
- E-commerce Purchases: A customer completes a checkout and sees the order confirmation.
- Account Registrations: A user creates a new account and is taken to your app's welcome page.
In all these cases, a visit to that specific page is a direct confirmation of a conversion. By tracking it in GA4, you can attribute these successful conversions back to the marketing campaigns, traffic sources, and keywords that led users there in the first place.
The Big Picture: How GA4 Tracks Page-Based Conversions
Understanding the logic behind GA4's process makes the setup much easier. Unlike its predecessor Universal Analytics, which used "Goals," GA4 operates on an event-based model. Everything a user does is considered an "event" - from scrolling down a page to clicking a link.
When someone visits any page on your site, GA4 automatically records a page_view event. Our task is to tell GA4, "Hey, when a page_view event happens on this specific thank you page URL, I want you to count that as a special, new event. And by the way, that new event is a conversion."
Here's the workflow we'll follow:
- Pinpoint the unique part of your thank you page's URL.
- Create a rule in GA4 that looks for
page_viewevents that occur at that specific URL. - Use that rule to generate a new, custom event with a descriptive name (e.g.,
form_submission). - Mark that new custom event as a conversion.
It's a straightforward process that doesn't require any custom code or complex setups with Google Tag Manager.
Step-by-Step Guide: Create a Thank You Page Conversion in GA4
Before you begin, make sure you know the URL of your thank you page. For this example, let's assume our confirmation page is located at https://www.mywebsite.com/confirmation/thank-you. The key part we need is the URL path: /confirmation/thank-you.
Step 1: Navigate to the Events Section in GA4
Log into your Google Analytics 4 property. In the bottom left-hand corner, click the Admin gear icon.
In the second column, "Property," look for the "Data display" section and click on Events.
Step 2: Start Creating a New Custom Event
You'll see a list of all the events GA4 is currently tracking on your site. In the top right corner, click the blue Create event button.
On the "Custom events" screen, click Create once more to open the configuration panel.
Step 3: Configure Your Custom Event Rules
This is the most important step. We're going to define the exact conditions that must be met for GA4 to trigger our new conversion event. You'll see a panel for "Configuration." Fill it out as follows:
Custom event name
First, give your new event a name. This name should be descriptive and use "snake_case" (all lowercase with underscores instead of spaces). Since this event represents a lead being generated, we’ll call it generate_lead.
Good names: generate_lead, contact_form_submission, newsletter_signup.
Bad names: Thank You Page, Form Submission, My Conversion.
Matching Conditions
Next, we'll set up the rules. We need to tell GA4 two things:
- We only care about
page_viewevents. - We only care about
page_viewevents that happen on our thank you page URL.
Set up your conditions like this:
Condition #1:
- Parameter:
event_name - Operator:
equals - Value:
page_view
Now, click Add condition to add the second rule.
Condition #2:
- Parameter:
page_location - Operator:
contains - Value:
/confirmation/thank-you
A quick note on the operator: We recommend using contains instead of equals for the page_location. Why? Because contains is more flexible. It will still trigger the event even if marketing parameters are added to the URL (e.g., .../thank-you?utm_source=facebook). An equals condition would fail in that scenario.
Make sure the "Parameter configuration" box at the bottom, labeled "Copy parameters from the source event," remains checked. This ensures all the data from the original page_view (like the traffic source) is carried over to your new custom event.
Your finished configuration should look clean and simple. With those two conditions set, click Create in the top right corner.
Step 4: Mark Your New Event as a Conversion
You've successfully created the custom event, but there's one final step. You need to officially tell GA4 that this generate_lead event is a valuable business outcome — a conversion.
In the Admin panel, under "Property," click on Conversions (it's right below "Events").
GA4 may take anywhere from a few minutes to 24 hours for your newly created generate_lead event to appear in your Events list. If you see it there, simply flick the switch next to it to mark it as a conversion.
Pro Tip: Don't Want to Wait?
If your generate_lead event hasn't shown up yet and you're feeling impatient, you can register it manually. On the Conversions screen, click New conversion event. In the text box, enter the exact name you gave your custom event in Step 3 — in our case, generate_lead. Click Save. Now, GA4 will start treating that event as a conversion the very moment it's first detected.
That's it! Your conversion tracking is now live.
How to Verify Your Tracking is Working Properly
Never "set it and forget it" without confirming everything works. There are two easy ways to test your new conversion event.
Method 1: The Realtime Report
This is the quickest method. Open a new, separate browser window and navigate to your website. Go through the steps a user would to trigger the conversion — fill out the contact form and submit it to land on your thank you page.
Then, in your GA4 dashboard, go to Reports > Realtime. Wait a minute or two, and you should see your generate_lead event appear in the "Event count by Event name" and "Conversions by Event name" cards on the report. If you see it, you're good to go!
Method 2: Using DebugView (More Advanced)
For more detailed, immediate feedback, GA4's DebugView is the best tool.
- Install the Google Analytics Debugger extension for Chrome.
- Once installed, click its icon in your browser's toolbar to turn it ON.
- In GA4, navigate to Admin > DebugView.
- In your other browser tab (with the debug extension on), go through your conversion flow again.
As you take actions, you'll see a live stream of events appear in DebugView. When you land on your thank you page, you should see both a page_view event and, moments later, your brand new generate_lead event appear in the timeline. If the generate_lead event is blue with a flag icon, it means GA4 recognized it as a conversion. Success!
Common Pitfalls and How to Avoid Them
- Using the wrong URL fragment: Don't use the full URL (
https://...) in thepage_locationvalue. Just use the part that comes after the.com, like/thank-youor/pages/confirmation. This prevents errors caused by trackinghttpvs.httpsorwwwvs. non-wwwversions of your site. - Case-sensitivity and misspellings: Computers are pedantic. Be highly precise with your naming. If you named your event
generate_leadbut try to registerGenerate_Leadas the conversion, it won't work. Double-check your spelling. - Testing yourself too much: Remember that every time you test your conversion, you're recording data. For a cleaner dataset, consider setting up an IP Address filter in GA4 (Under Admin > Data Streams > Configure tag settings > Define internal traffic) to exclude traffic from your home or office.
Final Thoughts
Tracking your site's thank you pages bridges the gap between user activity and business results. By creating a custom event in GA4 and marking it as a conversion, you empower yourself to measure what's working and make smarter marketing decisions based on real performance data.
Once you have reliable conversion data flowing from tools like GA4, the real challenge becomes connecting it to your broader business picture. Showing that a Facebook campaign drove a certain number of generate_lead conversions is great, but how much did you spend to get them, and did those leads turn into actual revenue in your CRM? Answering these questions can often mean stitching together multiple reports manually. To eliminate all that friction, we built Graphed. After connecting your sources like Google Analytics, ad platforms, and CRM in a few clicks, you can ask plain-English questions like, "Compare my Facebook vs. Google Ads cost per generate_lead conversion" and get a live, automated dashboard in seconds rather than spending hours hunting for data.
Related Articles
How to Enable Data Analysis in Excel
Enable Excel's hidden data analysis tools with our step-by-step guide. Uncover trends, make forecasts, and turn raw numbers into actionable insights today!
What SEO Tools Work with Google Analytics?
Discover which SEO tools integrate seamlessly with Google Analytics to provide a comprehensive view of your site's performance. Optimize your SEO strategy now!
Looker Studio vs Metabase: Which BI Tool Actually Fits Your Team?
Looker Studio and Metabase both help you turn raw data into dashboards, but they take completely different approaches. This guide breaks down where each tool fits, what they are good at, and which one matches your actual workflow.