On this page
What this issue is
A web form sends its data in one of two ways. With POST, the data travels in the body of the request and is not part of the address. With GET, the browser appends the data to the URL as a query string, for example /thank-you?name=Ana&email=ana%40example.com&phone=555-0100.
Many forms end up as GET by accident. An HTML <form> with no method attribute defaults to GET. Some page builders, embedded widgets and custom scripts also redirect to a thank-you page and pass the submitted fields along in the URL.
<form action="/thank-you">
<input name="email" type="email">
<button type="submit">Send</button>
</form>Why it costs you leads or sales
The address is not private. Once personal data is in a URL, it gets copied to places you do not control and cannot easily clean.
- Analytics page views (GA4 records the page URL, so emails can appear in reports)
- Ad platform tags such as Google Ads, Meta, TikTok and LinkedIn, which often send the page URL with each hit
- Server, CDN and proxy access logs
- Browser history, bookmarks and shared links
- The Referer header sent to third-party sites when the visitor clicks an outbound link
- Session replay and heatmap tools
The business risk is high. Sending personal data to ad and analytics platforms can breach their terms and privacy law such as GDPR, which may lead to deleted data, disabled accounts or complaints. Leads can also drop: privacy-aware visitors notice an email in the address bar and may stop trusting the form. Platforms may also reject or reduce the quality of conversion data when it carries personal data in the URL.
- Visitor submits formMethod is GET
- URL holds the data?email=...&phone=...
- Tags read the URLAnalytics and ad pixels
- Logs and referrersCopied to third parties
The leak happens right after submit, before anyone sees a problem.
How to check if your site has it
Submit a test lead
Fill in each form with a fake name, a test email you control and a fake phone number. Use an obviously fake value such as test+form@yourdomain.com.
Read the address bar
After submit, look at the URL. If you see your test email, name or phone in it, the form is sending data by GET or passing it to the next page.
Inspect the form markup
Right-click the form, choose Inspect, and find the
<form>tag. Check themethodattribute. Missing orgetmeans GET.Check the Network tab
Open DevTools, go to Network, submit again, and look at the tracking requests (for example to google-analytics.com, facebook.com/tr, analytics.tiktok.com). Search the request URLs for your test email.
Check your analytics
In GA4, open Reports, Engagement, Pages and screens and look for page paths or URLs that contain
email=,phone=or%40.
How to fix it
The fix has two parts: send the data by POST, and make sure the page the visitor lands on has a clean URL. Then clean up tags so none of them send personal data.
Add method="post"
Set
method="post"on the form and handle it on the server. After saving the data, redirect with a 303 to a thank-you URL that has no personal data.Remove data from redirects
If your code builds the thank-you URL from the submitted fields, delete those parameters. Show a generic message instead, or read the data from the server session.
Check the form plugin
Most form plugins (Contact Form 7, WPForms, Gravity Forms and others) use POST by default. If the form was hand-written in a Custom HTML block, add
method="post".Check the confirmation setting
In your form plugin's confirmation settings, use a redirect to a plain page URL. Do not add query string values that contain merge tags like email or name.
Select the form block
In the Designer, select the Form Block and open Element Settings. Set Method to POST.
Check the redirect
If you set a Redirect URL in the form settings, make sure it is a clean path with no query values from the form.
Use native Wix forms
Wix forms submit by POST. If you added an embedded HTML form, edit the code and set
method="post"or switch to a native form.
Use a Form block
Native Form blocks submit by POST. For a custom code block form, add
method="post"and a server endpoint that accepts it.
Check the form's redirect
In the form or survey settings, set the on-submit action to a redirect URL without field merge values appended. Remove any custom code that builds a URL from the answers.
Check theme forms
Forms made with the Liquid
formtag use POST. For a custom newsletter or contact form in a theme file, make sure it uses{% form 'contact' %}ormethod="post".
Stop tags sending the full URL
Create a Custom JavaScript variable that removes personal data from the page URL, and use it in tags that send the page location. Reuse it as the page_location field in your GA4 tags.
Preview and test
Use Preview mode, submit a test lead and check that no outgoing tag request contains your test email.
<form action="/contact" method="post">
<input name="email" type="email" autocomplete="email">
<button type="submit">Send</button>
</form>function() {
return {{Page URL}}.split('?')[0];
}GET form
- URL shows /thank-you?email=ana%40example.com
- Tags and logs store the email
- Referrer leaks it on outbound clicks
POST form
- URL is just /thank-you
- Tags see a clean page address
- Data goes only to your server or CRM
How to confirm it's fixed
- Submit a test lead and confirm the address bar shows no name, email or phone
- Confirm the form tag shows method="post"
- In DevTools Network, no tracking request URL contains the test email
- The test lead still reaches your inbox and CRM
- The thank-you page still fires your conversion tags
- No new URLs with email= or phone= appear in your analytics
How to prevent it happening again
Treat every new form, plugin update, theme change or landing page as a possible regression. Always set method explicitly. Keep thank-you URLs free of field values. Run a test submission after any change to forms or tags, and check the address bar each time.
How FunnelGuard handles this
FunnelGuard detects this today. A robot visitor runs your real journeys on a schedule, such as a lead form, from the EU or the US. Its check, called no_pii_in_tracking, looks at the tracking hits sent to ad and analytics platforms during the journey and flags when personal data appears in them. Test traffic is marked (utm_source=funnelguard, fg_test=1, an fg_test cookie and its own user agent), so it uses test details, not real customers.
A failure is re-checked from a second region before one alert goes out by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause. It checks the journeys you set up, so it will not cover forms it never runs. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans have a 3-day free trial.
Questions people ask
Why is my form putting the email address in the URL?
Your form is almost certainly using the GET method, which is the HTML default when no method is set. The browser then appends every field to the address. Add method="post" to the form, or change the form's method setting in your builder.
Is it bad to have personal data in a URL?
Yes. URLs are copied into analytics, ad platform tags, server logs, browser history and referrer headers. That spreads personal data to places you do not control and can breach platform terms and privacy law such as GDPR.
How do I change a form from GET to POST?
In HTML, add method="post" to the form tag and make sure your server handles POST requests. In builders such as Webflow, set the form Method to POST in element settings. Then redirect to a thank-you page whose URL has no field values.
Why do emails show up in my Google Analytics page URLs?
GA4 records the page URL for each view. If a form sends data by GET or the thank-you redirect includes field values, the email becomes part of the recorded URL. Fix the form, then strip query strings in your tags and ask GA4 to handle the stored data per Google's guidance.
How can I check if my form sends data in the URL?
Submit a test lead with a fake email and look at the address bar. Then open DevTools, go to Network, and search the tracking requests for that email. If it appears in either place, personal data is leaking.
Does switching to POST fix tracking leaks completely?
Not always. POST keeps data out of the form submission URL, but a redirect or script can still add it to the next page's URL. Check the thank-you URL and your tag requests after the change.
Can FunnelGuard detect personal data in tracking URLs?
Yes. Its no_pii_in_tracking check inspects the tracking hits sent during a scheduled journey and flags personal data. It only covers the journeys you set up.
Related issues
- OPS-173Missing Referrer-Policy (URLs with PII leak to third parties)Fix guide
- OPS-175Cookies without Secure/HttpOnly/SameSiteFix guide
- OPS-177Reflected XSS in form fields or searchFix guide
- OPS-176Open redirect on site (abused for phishing, ad disapproval)Fix guide
- OPS-170Missing Content-Security-PolicyFix guide
- OPS-155Outdated CMS core with known CVEsFix guide