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.
- Banner shownVisitor clicks Reject
- Form submittedEmail typed in
- Tag firesEnhanced conversions or advanced matching ignores consent
- 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
Open a private window
Use a clean browser session so no earlier consent is stored.
Open DevTools Network
Press F12, open the Network tab and tick Preserve log.
Reject all cookies
Click Reject on your banner, not just close it.
Submit your form or complete a test purchase
Use a test email address you control.
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.
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.
Turn on consent overview
In Admin, Container Settings, tick Enable consent overview. Then click the shield icon on the Tags page.
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.
Check enhanced conversions
In the Google Ads conversion tag, keep Include user-provided data only if the tag requires ad_user_data consent.
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.
Check your tracking plugin
In plugins such as Site Kit, PixelYourSite or a Meta pixel plugin, find the advanced matching or enhanced conversions option.
Link it to your consent plugin
Use the integration setting that waits for consent, or turn advanced matching off until your plugin supports it.
Block scripts until consent
In your consent plugin, set marketing scripts to load only after the visitor accepts.
Open Customer privacy
In Settings, Customer privacy, enable the cookie banner and set the region rules.
Check Google & YouTube and Facebook & Instagram apps
Use the app's data sharing settings and keep them at a level that respects customer privacy settings.
Review custom pixels
In Settings, Customer events, set each custom pixel's permission to Marketing or Analytics, so it runs only after consent.
Remove hard-coded pixels
In Project settings, Custom code, find any pixel with user data and move it into a consent-aware tool such as GTM.
Use your consent tool
Set the marketing category to block scripts before consent.
Default to denied
Set consent defaults before any tag loads, as in the snippet below.
Hash only after consent
Only compute and send the hashed value inside the code path that runs after the visitor accepts.
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'
});
}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
- 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
- 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
- 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.
Related issues
- TRK-355Email address in page URL query string sent to GA4Fix guide
- TRK-356Phone number in event parametersFix guide
- TRK-357Name or address in thank-you URL sent to pixelsFix guide
- TRK-360PII in dataLayer pushed to all vendorsFix guide
- TRK-362PII sent over plain http tracking endpointFix guide
- TRK-358Form field values sent in GA4 click textFix guide