Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Meta Pixel sending email in URL params: how to find and fix it

TRK-194High impactDetectedBy FunnelGuardPublished Updated
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.

How an email reaches Meta through the URL
  1. Visitor submits formEnters name and email
  2. Redirect with params/thank-you?email=jane@example.com
  3. Pixel firesPage URL copied into the dl parameter
  4. 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.

Pixel request URL

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

Check by hand in about five minutes
  1. 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.

  2. Open the Network tab

    In Chrome, press F12, open Network, and filter by facebook.com/tr. Submit the form again.

  3. Inspect the request

    Click each request, open Payload, and read the dl and rl values. Look for @, %40 (an encoded @), email=, phone= or name=.

  4. 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.

  5. 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.

Example of a leaking pixel request (Example values)text
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%2Fcontact

How 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.

Fix the leak
  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. Keep legitimate params

    Keep utm_ parameters, gclid and fbclid. Only remove the personal ones.

  6. 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.

Where to change it on each platform
  1. 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].

  2. Use a clean confirmation page

    Redirect to a plain page like /thank-you. Fire the Lead event there without reading URL values.

Form that keeps values out of the URLhtml
<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

Confirmation checklist
  • 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 dl and rl values of facebook.com/tr requests have no @, %40, email= or phone=
  • 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

Prevention habits
  • 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
How a leak usually starts and goes unnoticed (Example)
  1. Day 1

    A new form plugin is installed with a redirect that adds ?email=[email].

  2. Day 2

    Every lead's email is sent to Meta in the page URL.

  3. Week 6

    Events Manager shows a data quality warning that nobody reads.

  4. 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.

Redirect with form valuesInteractive
Redirect adds email to the URL

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.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: no_pii_in_tracking.

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.