Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Hashed PII sent without consent: how to find and fix it

TRK-361High impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Many ad tools can take a customer's email, phone number or name, hash it with SHA-256 (a one-way scrambling function) and use it to match the visitor to an ad account. Examples are Google Ads enhanced conversions, Meta advanced matching and the Conversions API user data fields, TikTok advanced matching, and LinkedIn or Pinterest equivalents.

Why it costs you leads or sales

The direct cost is legal and reputational risk: complaints, fines and lost trust. The practical cost is also real. Ad platforms can restrict features or flag accounts that send user data without proper consent, and a consent banner that does not actually control tags can invalidate your consent records.

There is a second cost when you over-correct. If you switch off all user data to be safe, you lose the match quality that makes conversion tracking and bidding work. The goal is to send it only when consent is granted, so both the privacy and the measurement hold up.

Where hashed data leaks
  1. Banner shownVisitor clicks Reject
  2. Form submittedEmail typed in
  3. Tag firesEnhanced conversions or advanced matching ignores consent
  4. Hashed email sentReaches ad platform without consent

The visitor rejects cookies, but the form submit still sends a hashed email.

How to check if your site has it

Test with consent denied
  1. Open a private window

    Use a clean browser session so no earlier consent is stored.

  2. Open DevTools Network

    Press F12, open the Network tab and tick Preserve log.

  3. Reject all cookies

    Click Reject on your banner, not just close it.

  4. Submit your form or complete a test purchase

    Use a test email address you control.

  5. Inspect the requests

    Look for requests to google-analytics.com, googleadservices.com, facebook.com/tr, analytics.tiktok.com and similar. Search the payload for long 64-character hex strings. Meta uses parameters such as ud[em]; Google uses em or user data fields.

  6. Repeat with consent granted

    Compare. Hashed values should appear only in this second run.

How to fix it

The fix is the same everywhere: tie every tag or setting that sends user data to the right consent signal, and make sure the banner really sets that signal. The steps depend on your platform.

Gate hashed user data on consent
  1. Turn on consent overview

    In Admin, Container Settings, tick Enable consent overview. Then click the shield icon on the Tags page.

  2. Set required consent

    Open each Google Ads conversion, Meta, TikTok and LinkedIn tag, go to Advanced Settings, Consent Settings, and require ad_storage and ad_user_data (for Google tags) or the matching consent type.

  3. Check enhanced conversions

    In the Google Ads conversion tag, keep Include user-provided data only if the tag requires ad_user_data consent.

  4. Use a Consent Management Platform template

    Install a CMP that supports Google Consent Mode v2 so the defaults are set to denied before tags load.

Consent Mode defaults, then update on acceptjavascript
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}

// Run before any Google or GTM tag
gtag('consent', 'default', {
  ad_storage: 'denied',
  ad_user_data: 'denied',
  ad_personalization: 'denied',
  analytics_storage: 'denied'
});

// Call this from your banner when the visitor accepts
function onAcceptMarketing() {
  gtag('consent', 'update', {
    ad_storage: 'granted',
    ad_user_data: 'granted',
    ad_personalization: 'granted'
  });
}
What fires when consent is deniedInteractive
Tags ignore consent

Consent: blocked / denied

  • GA4no hit
  • Google Adsno hit
  • Meta Pixelno hit

Ad tags send the hashed email even though the visitor rejected cookies.

Toggle to compare a setup that ignores consent with one that respects it.

How to confirm it's fixed

Fix verification
  • With Reject clicked, no request contains a 64-character hashed email or phone value.
  • With Accept clicked, enhanced conversions or advanced matching data is sent as expected.
  • The GTM preview shows tags blocked by consent when consent is denied.
  • The test works in a fresh private window and on mobile.
  • Server-side requests also drop user data when consent is denied.
Before and after

Before

  • Hashed email sent on every form submit
  • Reject button changes the banner only
  • No consent settings on ad tags

After

  • Hashed email sent only after consent
  • Banner sets consent signals that tags read
  • Each ad tag has required consent types

How to prevent it happening again

Prevention habits
  • Add a consent check to your release process whenever a new tag or pixel is added.
  • Keep a list of every tag that uses user data and who owns it.
  • Re-test after changing your banner, theme or CMP, because updates often reset defaults.
  • Review agency or plugin changes that switch on advanced matching.
  • Run the denied-consent test every quarter.

How FunnelGuard handles this

FunnelGuard detects this issue only partly. Its robot visitor runs your real journeys and checks the tracking hits sent to platforms such as GA4, Google Ads, Meta, TikTok, LinkedIn, Bing, Pinterest, Snapchat, X and Reddit. For this issue the check is a consent variant: it looks at how tracking behaves under the consent choice the journey uses.

Questions people ask

Is a hashed email still personal data?

Yes. A SHA-256 hash of an email is the same every time for the same address, so platforms can match it to a person. Privacy regulators treat it as pseudonymous personal data, so it needs a legal basis, usually consent for advertising.

Why is my site sending hashed emails when visitors reject cookies?

Usually the banner records the choice but your tags are not linked to it. Enhanced conversions or advanced matching settings may be on without consent requirements. Add consent settings to each tag and set defaults to denied.

Do Google Ads enhanced conversions need consent?

Yes, in regions where consent is required. Enhanced conversions send hashed first-party data, so they should respect ad_user_data consent through Google Consent Mode v2 or an equivalent setup.

How do I check if Meta advanced matching sends data without consent?

Reject cookies in a private window, submit a form with a test email and watch the Network tab for facebook.com/tr requests. If the payload contains ud[em] or other hashed values, advanced matching is ignoring consent.

Does Consent Mode stop hashed data automatically?

Not by itself in every case. Consent Mode signals the choice to Google tags, but you must set it up correctly and configure non-Google tags separately. Always test with consent denied to see what actually leaves the browser.

Can FunnelGuard tell me if hashed PII is sent without consent?

Only partly. It checks tracking hits in a consent variant of your journey, but it does not audit every tag setting or server-side flow. Use a manual denied-consent test to cover the rest.

Is server-side tracking exempt from consent rules?

No. Moving tracking to a server does not remove the need for consent. Pass the consent state to the server and drop user data fields when consent is denied.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

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