On this page
What this issue is
Personally identifiable information (PII) is data that points to a real person: an email address, phone number, full name or postal address. This issue happens when that data ends up in a query string, the part of a URL after the ?.
The Meta Pixel sends the current page URL to Meta with every event, in the dl parameter of the request to facebook.com/tr. It also sends the referring page in rl. So if your thank-you page is /thank-you?email=jane@example.com, Meta receives that email in plain text, not hashed.
- Visitor submits formEnters name and email
- Redirect with params/thank-you?email=jane@example.com
- Pixel firesPage URL copied into the dl parameter
- Meta receives PIIUnhashed email stored with the event
The leak happens at the redirect, and every later pixel event repeats it.
Why it costs you leads or sales
This is mainly a data protection and platform risk, and it can turn into a revenue problem. Meta's business tools terms say you must not send data that you have no right to share, and sending unhashed personal data in URLs is a common reason for data quality warnings. Under GDPR and similar laws, sending an email to an ad platform without a valid legal basis or consent can be a compliance breach.
Leaking
- Page URL: /thank-you?email=jane@example.com&phone=555010
- Meta receives the email in plain text
- Same data copied into analytics and server logs
Clean
- Page URL: /thank-you
- Identity sent only as hashed advanced matching or via Conversions API, with consent
- No personal data in any logged URL
How to check if your site has it
Submit your own form
Use a test email such as test+pixel@yourdomain.com. Watch the address bar after submitting. If you see the email, phone or name in the URL, you have the issue.
Open the Network tab
In Chrome, press F12, open Network, and filter by
facebook.com/tr. Submit the form again.Inspect the request
Click each request, open Payload, and read the
dlandrlvalues. Look for@,%40(an encoded @),email=,phone=orname=.Check Meta Pixel Helper
The Meta Pixel Helper browser extension lists events and the page URL they were sent from. Use it to confirm which pages leak.
Check other entry points
Click links in your own emails and SMS messages. If they add the recipient's email to the URL, every landing page visit leaks it.
https://www.facebook.com/tr/?id=1234567890&ev=Lead
&dl=https%3A%2F%2Fexample.com%2Fthank-you%3Femail%3Djane%40example.com
&rl=https%3A%2F%2Fexample.com%2FcontactHow to fix it
The real fix is to stop personal data entering the URL. Hiding it from the pixel is only a backup. Work through these steps in order.
Find the source
Identify what adds the data: a form using GET, a redirect that copies fields, an email or SMS link, or a third-party widget.
Switch forms to POST
A form with
method="get"(or no method set in some builders) puts every field in the URL. Use POST so values go in the request body.Redirect without parameters
Send visitors to a clean thank-you URL such as
/thank-you. If you need to show their name, read it from a session or the form handler, not the URL.Fix links in emails and SMS
Remove merge tags that add the email to the link (for example
?email={{email}}). Use an opaque ID instead, or no identifier.Keep legitimate params
Keep utm_ parameters, gclid and fbclid. Only remove the personal ones.
Send identity the right way
If you want Meta to match leads, use advanced matching (hashed by the pixel) or the Conversions API with hashed values, and only with the consent your region requires.
Check the form plugin
In Contact Form 7, WPForms, Gravity Forms or Elementor Forms, check the form method and the redirect setting. Remove any redirect URL that includes field merge tags such as
?email=[your-email].Use a clean confirmation page
Redirect to a plain page like /thank-you. Fire the Lead event there without reading URL values.
Check custom forms
In your theme code, search for
<formtags withmethod="get". Customer and contact forms using Shopify's{% form %}tag post by default.Check apps
Review popups and email or SMS apps that add
?email=to links. Change their link settings in the app.
Find tags that read URL values
In Variables, look for URL query variables that read
emailorphone. Remove them from tags that send data to Meta.Use a custom HTML or template tag
If you cannot change the source today, override the page location sent by the pixel with a cleaned URL in a Custom HTML tag. Treat this as temporary.
Check form settings
Webflow forms post by default. In the form's settings, check the Redirect URL field and make sure it has no query parameters with form values.
Check custom code
Search Project Settings > Custom Code and page-level code for scripts that build URLs from form fields.
Check the form or survey redirect
In the form or survey settings, check the redirect URL after submit. Remove any custom values or merge fields added to the URL.
Check funnel step links
In email and SMS workflows, check links for contact merge fields such as the email in a query parameter.
Check form connections and code
In Wix Forms, set the submit action to show a message or go to a page without adding data. If you use Velo code with
wixLocation.to, do not append form values to the URL.
Check the form storage and redirect
In the form block's Storage and Advanced settings, check the post-submit redirect URL for parameters. Also check code injection for scripts that rewrite URLs.
Use POST and a clean redirect
Post the form, process it on the server, then respond with a redirect to a URL without personal data (Post/Redirect/Get).
<form action="/submit" method="post">
<input type="email" name="email" required>
<button type="submit">Send</button>
</form>
<!-- Server then redirects to /thank-you with no query string -->How to confirm it's fixed
- Submit the form with a test email and check the address bar: no email, phone or name in the URL
- In the Network tab, the
dlandrlvalues offacebook.com/trrequests have no@,%40,email=orphone= - Test every form, quiz, booking and chat entry point, not only the main one
- Click links from your email and SMS templates and check the landing URL
- Lead and Purchase events still fire once per submission in Meta Pixel Helper
- UTM parameters, gclid and fbclid are still kept
How to prevent it happening again
- Never build URLs from form values; pass an opaque ID if you must link to a record
- Review form and redirect settings whenever you change builder, plugin or theme
- Add a PII check to your launch list for any new form, email template or SMS link
- Re-check pixel requests after changes to GTM, popups and email tools
- Run an automated check on your key journeys so a new leak is caught within a day
Day 1
A new form plugin is installed with a redirect that adds ?email=[email].
Day 2
Every lead's email is sent to Meta in the page URL.
Week 6
Events Manager shows a data quality warning that nobody reads.
Week 8
The redirect is changed to a clean URL and the requests are checked.
How FunnelGuard handles this
FunnelGuard detects this issue today. A robot visitor runs your real journeys on a schedule, such as a lead form, and checks the tracking hits sent to ad platforms, including Meta. The check named no_pii_in_tracking looks at those tracking requests for personal data such as an email address in the URL parameters.
Email in URL
Leads or data lost
The pixel copies the page URL, so Meta receives the email in plain text with every event on that page.
Toggle the redirect to see what the pixel request contains.
Questions people ask
Why is my Meta Pixel sending email addresses?
The pixel sends the full page URL with every event. If your form or redirect puts the email in the URL, for example /thank-you?email=jane@example.com, the pixel copies it into its request to Meta. Remove the email from the URL at the source.
How do I check if the Meta Pixel is sending PII in the URL?
Open your browser's Network tab, filter by facebook.com/tr, submit your form, and read the dl and rl parameters of each request. Look for @, %40, email= or phone=. The Meta Pixel Helper extension also shows the URL each event was sent from.
Is it a problem if an email is in the URL but hashed by the pixel?
Yes. Advanced matching hashes only the fields the pixel collects itself. A raw email in the URL is sent as plain text in the dl parameter, whatever else is hashed.
How do I stop my form putting the email in the URL?
Change the form method from GET to POST, and redirect to a thank-you page with no query string after submit. In builders, check the redirect URL setting and remove any merge tags that add field values.
Can I strip the email from the URL before the pixel sends it?
Some setups can override the page location sent by the pixel, for example through Google Tag Manager. This is a workaround. The reliable fix is to stop the data entering the URL, because it still reaches analytics tools and server logs otherwise.
What is the right way to send email to Meta for matching?
Use advanced matching or the Conversions API with hashed values, and only where you have the consent your region requires. Do not rely on URL parameters for this.
Does this affect GDPR compliance?
It can. Sending personal data to an ad platform without a valid legal basis or consent may breach data protection law. Check with your data protection contact if personal data has already been sent.
Can FunnelGuard detect PII in tracking URLs?
Yes. FunnelGuard's no_pii_in_tracking check inspects the tracking requests sent during your scheduled journeys and flags personal data such as an email in the URL parameters, then alerts you with a screenshot and a likely cause.
Related issues
- TRK-184Advanced matching sending unhashed data in URLFix guide
- TRK-185Advanced matching fields empty or wrongly formattedFix guide
- TRK-183Event Match Quality low (no em/ph/external_id)Fix guide
- TRK-169Lead event fires on page load instead of submitFix guide
- TRK-170Lead event fires on thank-you page reload (duplicate leads)Fix guide
- TRK-188fbclid stripped by redirectFix guide