Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Third-party pixel collecting PII without consent: how to fix it

OPS-205High impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

PII means personally identifiable information: an email address, full name, phone number, postal address or similar data that points to a real person. Tracking pixels (small scripts from Meta, Google, TikTok, LinkedIn and others) send data to their platform each time a page loads or a form is submitted.

The problem appears when that data goes out before consent, or when it was never meant to go out at all. Common causes: an email in a thank-you page URL (?email=jane@example.com), a pixel's automatic form matching reading typed fields, a tag that fires on page load while the cookie banner is still open, or a custom event that pushes the email into its parameters.

Why it costs you leads or sales

The direct risk is regulatory and reputational: sending personal data to an ad platform without a lawful basis can lead to complaints, fines and forced takedowns. The indirect cost is to your marketing. Platforms can reject or restrict data that arrives in breach of their policies, and you may have to delete audiences built from it.

There is also a trust cost. Visitors who click Reject on your banner and still get tracked may abandon forms. Teams who respond by switching tracking off completely lose attribution, so ad spend gets optimised on bad data. The goal is tracking that respects the choice and still works for those who agree.

How PII leaks before consent
  1. Visitor landsCookie banner appears
  2. Pixel loads anywayTag has no consent condition
  3. Form submittedEmail in URL or event data
  4. Ad platform receives PIISent without consent
  5. Compliance riskComplaint, deletion, audit

The visitor never agrees, yet the pixel has already sent the data.

How to check if your site has it

Inspect what your pixels send
  1. Open a clean browser session

    Use a private window with no saved consent. Open DevTools (F12) and go to the Network tab. Tick Preserve log.

  2. Load the page and do not touch the banner

    Filter by domains such as facebook.com/tr, google-analytics.com/g/collect, googleadservices.com, analytics.tiktok.com, px.ads.linkedin.com. Any request before you choose is a consent problem.

  3. Click Reject, then submit a test lead

    Use a fake address like test+consent@example.com and a made-up name and phone. Watch which requests still go out.

  4. Search requests for your test data

    Use the Network search (Ctrl/Cmd+F) for your test email, name and phone. Also try the URL-encoded form (test%2Bconsent%40example.com) and look for hashed values in parameters such as em, ph, ud[em] or ec.

  5. Check page URLs

    Look at the address bar on thank-you and booking pages. Query strings with email, name or phone are copied into the page_location of analytics hits.

How to fix it

Work in this order: stop the leak before consent, then remove PII at the source, then re-test. The platform steps below cover the first part.

Hold pixels until consent and remove PII
  1. Turn on consent overview

    Admin > Container Settings > tick Enable consent overview. Then open Tags > Consent overview (shield icon).

  2. Require consent per tag

    For each pixel, open Advanced Settings > Consent Settings and require ad_storage, analytics_storage or ad_user_data as appropriate. For tags without built-in consent checks, add the required consent type.

  3. Set defaults to denied

    Make your consent banner tool set default consent state to denied, and update it to granted only after the visitor accepts. Fire the default command before the GTM snippet.

  4. Strip PII from data

    Check variables and data layer pushes for emails, names and phones. Use a custom JavaScript variable or a URL variable that removes query strings from page_location, and stop sending form fields as event parameters.

  5. Preview and publish

    Use Preview, reject consent, submit a test lead and confirm the pixels show as not fired. Then publish.

Example: load a pixel only after consent (generic pattern)javascript
// Replace onConsentGranted with your consent tool's real callback.
function loadMarketingPixel() {
  if (window.__pixelLoaded) return;
  window.__pixelLoaded = true;
  var s = document.createElement('script');
  s.src = 'https://example-pixel-vendor.com/pixel.js';
  s.async = true;
  document.head.appendChild(s);
}

onConsentGranted('marketing', loadMarketingPixel);
Google consent defaults (place before the GTM or gtag snippet)javascript
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('consent', 'default', {
  ad_storage: 'denied',
  ad_user_data: 'denied',
  ad_personalization: 'denied',
  analytics_storage: 'denied'
});
// After the visitor accepts:
// gtag('consent', 'update', { ad_storage: 'granted', ad_user_data: 'granted', ad_personalization: 'granted', analytics_storage: 'granted' });
Pixel behaviour with consent denied

Before

  • Pixel fires on page load
  • Thank-you URL contains ?email=...
  • Form fields read by automatic matching
  • Requests visible after clicking Reject

After

  • Pixels wait for consent
  • Thank-you URL is a plain path
  • Automatic matching off or consent-gated
  • No marketing requests after Reject
Try it: consent granted or deniedInteractive
Pixel ignores the consent choice

Consent: blocked / denied

  • GA4no hit
  • Google Adsno hit
  • Meta Pixelno hit

With consent denied, the pixel still fires and sends the visitor's email to the ad platform.

Toggle the cause to see what happens when a visitor clicks Reject.

How to confirm it's fixed

Verification checklist
  • In a private window, no marketing requests appear before you choose on the banner
  • After Reject, submitting a test lead sends no requests to ad platforms
  • After Accept, the expected conversion events do fire
  • Searching the Network tab for your test email, name and phone (plain, encoded and hashed) finds nothing in denied state
  • Thank-you and booking URLs contain no personal data
  • GTM Preview shows consent-required tags as not fired when denied
  • The lead still reaches your inbox and CRM

How to prevent it happening again

Habits that keep it fixed
  • Keep one place where pixels are added, ideally the tag manager, with consent settings on every tag
  • Review tags whenever a new plugin, app or agency adds tracking
  • Never pass personal data in query strings or custom event parameters
  • Re-test with consent denied after every theme, plugin, banner or container change
  • Restrict who can publish in your tag manager
  • Record which data each pixel is allowed to receive
How a leak often appears (example)
  1. Day 1

    Agency adds a new ad pixel directly in the theme header

  2. Day 2

    Form redirect starts including ?email= for a CRM hand-off

  3. Week 3

    Visitors who rejected cookies are still sending data

  4. Week 6

    Network audit finds the leak and the pixel is moved behind consent

How FunnelGuard handles this

FunnelGuard covers this issue partly. Its no_pii_in_tracking check (consent variant) looks at the tracking hits your journeys send to ad and analytics platforms and flags personal data, such as an email, appearing in them when the journey runs in the consent-related variant. It runs on a schedule, so a leak introduced by a new plugin or tag change can raise an alert with a screenshot and a likely cause, after a re-check from a second region.

What it does not do: it does not judge whether your consent banner wording or your lawful basis is adequate, it does not audit every pixel parameter on every page outside the journeys you set up, and it does not replace advice from a privacy professional. Test traffic is marked and never bypasses CAPTCHAs or bot protection.

Cover the rest by hand: run the Network tab check above with consent denied after each release, review tag manager changes, and keep PII out of URLs. The Free plan (1 site, 2 journeys, daily checks, no card) is enough to try it, and paid plans include a 3-day free trial. A free read-only website audit is also available.

Questions people ask

Why is my tracking pixel sending email addresses?

Common causes are an email in the thank-you page URL, the pixel's automatic form matching reading typed fields, or a custom event that includes the email as a parameter. Open DevTools > Network, submit a test lead and search the requests for your test email to find the source.

Can a Meta pixel collect personal data before consent?

Yes, if it is loaded without a consent condition. It fires on page load and can send identifiers and, with advanced matching on, hashed email or phone. Load it only after the visitor accepts marketing cookies and turn off matching you do not need.

Does Google Consent Mode stop PII from being sent?

No. Consent Mode controls storage and how Google tags behave when consent is denied. It does not strip an email you put in a URL or event parameter, so remove PII at the source too.

How do I check if a pixel fires before the cookie banner is accepted?

Open a private window, open DevTools > Network with Preserve log on, and load the page without touching the banner. Any request to facebook.com/tr, google-analytics.com or similar before you choose means a tag is ignoring consent.

Is a hashed email still personal data?

Generally yes. A hash of an email can still be matched to a person, so treat it as PII and send it only with consent. Ask your privacy adviser how your local rules apply.

How do I stop email addresses appearing in thank-you page URLs?

Redirect to a plain path such as /thank-you with no query string. If you need the data on the next page, keep it server-side or in session storage instead of the URL, since analytics tools copy the URL into their hits.

Can FunnelGuard detect PII leaking to ad platforms?

Partly. Its no_pii_in_tracking check, consent variant, flags personal data such as an email in the tracking hits sent by your monitored journeys. It does not judge your banner wording or audit every pixel on every page, so keep doing a manual consent-denied check.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: no_pii_in_tracking, consent variant.

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.