Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Name or address in thank-you URL sent to pixels: how to fix it

TRK-357High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Some forms and checkouts redirect to a page like /thank-you?first_name=Jane&last_name=Doe&street=12+High+St. The data is in the query string, the part of a URL after the question mark. It is used to greet the visitor or prefill a booking page.

How a name in the URL reaches your pixels
  1. Form submittedVisitor enters name and address
  2. Redirect with data/thanks?name=Jane&street=...
  3. Pixels fireGA4, Meta, Google Ads read the full URL
  4. Data stored by vendorsPersonal data sits in reports and logs

The leak happens on the thank-you page load, before anyone sees a problem.

Why it costs you leads or sales

How to check if your site has it

Check your thank-you URL by hand
  1. Submit your own form with test data

    Use a fake name and address such as Test Person, 1 Test Street.

  2. Read the address bar on the thank-you page

    If you see your test name, email or address after a question mark, the URL carries personal data.

  3. Open DevTools, Network tab

    Filter for collect, tr, facebook or googleads. Look in each request for dl= (GA4) or dl and rl (Meta) containing your test data.

  4. Check GA4 DebugViewGoogle Tag Manager

    Open Admin > DebugView, then inspect the page_view event and its page_location parameter.

How to fix it

Remove personal data from the redirect
  1. Find the redirect setting

    In your form plugin (Contact Form 7, Gravity Forms, WPForms, Elementor Forms and others) open the confirmation or redirect settings.

  2. Remove merge tags from the URL

    Change /thank-you?name={name} to /thank-you. In Gravity Forms, untick pass-through query string fields.

  3. Show the name on the page instead

    Use the plugin's confirmation message with merge tags, which renders on the page but does not enter the URL.

GTM Custom JavaScript variable: URL without query string (stop-gap)javascript
function() {
  return {{Page URL}}.split('?')[0].split('#')[0];
}
Thank-you URL before and after

Before

  • /thank-you?name=Jane+Doe&street=12+High+St
  • Every visitor creates a unique page URL
  • Pixels store personal data

After

  • /thank-you
  • One page URL for all visitors
  • Pixels receive no personal data

How to confirm it's fixed

Confirmation checklist
  • Submit the form with fake data and confirm the thank-you URL has no personal values.
  • In DevTools Network, no tracking request contains your test name or address.
  • GA4 DebugView shows page_location without personal data.
  • The conversion event still fires once on the thank-you page.
  • Old URLs with personal data are no longer linked or reachable from the form.

How to prevent it happening again

Where personal data usually slips into URLs
SourceTypical causeSafer option
Form plugin redirectMerge tags in redirect URLFixed redirect URL
CRM or funnel builderContact fields in button linksUse on-page merge fields
Custom scriptsAppending form values to locationServer-side session or random ID
Payment return URLCustomer details in return queryOrder ID only, looked up on the server

How FunnelGuard handles this

Questions people ask

Why is my thank-you page URL showing the customer's name?

Your form or funnel builder is redirecting with form values added to the query string, often through merge tags or a custom script. Change the redirect to a fixed URL and show the name on the page itself if you need it.

Do Meta Pixel and GA4 collect the full page URL including parameters?

Yes. GA4 records the full address as page_location, and Meta Pixel sends the page URL with its events. Any personal data in the query string is sent along with them unless you remove it.

Is it a GDPR problem to have a name in the URL sent to Google Analytics?

It can be. Personal data sent to an analytics or ad vendor needs a lawful basis and proper consent, and vendor terms forbid sending PII. Removing it from the URL avoids the problem. Ask a privacy professional about your specific case.

How do I remove query parameters from the URL sent to GA4?

The best fix is to stop the redirect adding them. As a stop-gap, use a GTM variable that returns the URL without the personal keys and use it in your tags. Keep gclid and UTMs if you need attribution.

How can I show the customer's name on the thank-you page without putting it in the URL?

Use your form tool's on-page confirmation message with merge tags, or store the submission on the server and look it up with a random session ID. The visible page can then greet them while the URL stays clean.

How do I check if my thank-you page leaks personal data?

Submit your form with fake details, then check the address bar and the DevTools Network tab for tracking requests that contain them. Automated monitoring such as FunnelGuard can run this check on a schedule.

Will removing parameters break my conversion tracking?

Not if your conversion fires on a fixed thank-you path. It usually gets more reliable, because every visitor now lands on the same URL. Test after the change to confirm the event still fires once.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.