Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Phone number in event parameters: how to find and fix it

TRK-356High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Event parameters are the extra details attached to a tracking event, such as link_url, button_text or form_phone. This issue happens when one of those values contains a phone number, for example tel:+441234567890 in a click event or a typed number from a lead form.

A phone number is personally identifiable information (PII): data that can identify a person. Google Analytics, Google Ads and Meta all prohibit sending it in plain text through standard events.

It usually gets in by accident. Common causes are an automatic link-click variable that captures the tel: URL, a form tag that sends every field, or a dataLayer push that copies the whole form object.

Why it costs you leads or sales

The cost is indirect but real. Google can delete data or suspend features on a property that collects PII, and ad platforms can limit audiences or conversion optimisation tied to flagged data. You may also have a legal duty to tell people about this sharing and get consent, for example under GDPR in the EU and UK.

Clean tracking is what feeds your bidding. If data is removed or an account is restricted, campaigns optimise on less information while you keep paying for clicks.

How a phone number leaks into tracking
  1. Visitor clicks call or submits formNumber is in the link or field
  2. Tag or dataLayer copies valuePhone added to event parameter
  3. Sent to GA4, Meta, AdsPlain text PII leaves your site
  4. Platform flags or deletes dataReports and optimisation suffer

The leak happens at the tag, before the data reaches any platform.

How to check if your site has it

Find phone numbers in your tracking requests
  1. Open browser developer tools

    Press F12, open the Network tab and filter by collect, g/collect, facebook.com/tr or analytics.

  2. Trigger the action

    Click your call link, or submit your form with a test number such as 555 0100.

  3. Inspect the request payload

    Look at the query string or payload for the number, for tel:, or for a URL-encoded plus sign (%2B).

  4. Use GTM Preview or GA4 DebugViewGoogle Tag Manager

    In Google Tag Manager Preview, open the event and check Variables and the tag's fields. In GA4 DebugView, expand the event and read its parameters.

  5. Check the dataLayer

    In the console, type dataLayer and look for phone fields in pushed objects.

How to fix it

The principle is the same everywhere: stop sending the raw value and send a fixed label instead. You rarely need the number itself to measure a call click or a form lead.

Remove the phone number by platform
  1. Find the source variable

    In Preview mode, find which variable holds the number, often Click URL, Click Text or a form field variable.

  2. Replace with a fixed value

    In the GA4 event tag, delete the parameter or set it to a constant such as header_phone. Use a Custom JavaScript or lookup table variable if you have several numbers.

  3. Publish

    Submit the container and retest in Preview.

Before and after: click-to-call eventjavascript
// Before: leaks the number
gtag('event', 'phone_click', { link_url: 'tel:+441234567890' });

// After: safe label
gtag('event', 'phone_click', { contact_method: 'phone', link_location: 'header' });

How to confirm it's fixed

Confirmation checks
  • Repeat the click or form test with the Network tab open and find no number in any tracking request
  • GA4 DebugView shows the event with only label parameters
  • GTM Preview shows no variable containing the phone in the event tags
  • Meta Pixel Helper or Events Manager test events show no phone in custom data
  • The conversion still counts in GA4 and your ad platforms
Event payload

Leaking

  • link_url contains tel:+44...
  • Form event includes the typed phone
  • Sent to every connected platform

Clean

  • Event sends contact_method=phone
  • Location label shows where it was clicked
  • Conversion still counted

How to prevent it happening again

Prevention habits
  • Avoid auto-capturing all form fields or full link URLs; map only the fields you need
  • Review every new tag in GTM Preview before publishing
  • Use constant labels for events instead of page or form values
  • Add a review step when plugins, themes or forms change
  • Re-test key journeys after each site or tag update

How FunnelGuard handles this

FunnelGuard detects this issue today. Its check, named no_pii_in_tracking, looks at the tracking hits your journeys send to platforms such as GA4, Google Ads and Meta while a robot visitor runs your real customer journeys, and flags personal data such as a phone number in those hits.

Because it runs on a schedule, it can catch a leak introduced by a tag change or plugin update. A failure is re-checked from a second region, then one alert goes out with a screenshot and a likely cause. FunnelGuard reports the problem; you still make the change in your tag setup. Free plan: 1 site, 2 journeys, daily checks, no card. Paid plans have a 3-day free trial.

Questions people ask

Is it against Google Analytics policy to send phone numbers?

Yes. Google Analytics terms prohibit sending data that Google could use or recognise as personally identifiable, and phone numbers are included. Google can delete the data or restrict the property if it finds this.

Why is my click-to-call event sending the phone number?

Usually a link-click variable such as Click URL is mapped into the event, and a tel: link puts the number in it. Replace that parameter with a fixed label like 'header_phone'.

How do I track phone calls without sending the number?

Send an event with non-personal parameters such as contact_method and link_location. You still count every click and can see which button drove it, with no number in the data.

Can I hash the phone number and send it to GA4?

Not as a normal event parameter. Hashed values are only accepted in specific features, such as enhanced conversions, configured as the platform requires and with proper consent.

How do I find out which tag is sending the phone number?

Open GTM Preview, trigger the event, and check which tag fires and which variables hold the number. The browser Network tab will also show the request containing it.

Does my own business phone number count as PII in events?

A company number is not personal data about a visitor, but sending it adds nothing. A visitor's own number is PII. A fixed label is safer and cleaner either way.

Will removing the number affect my conversion tracking?

No. Conversions depend on the event firing, not on the phone value. Retest after the change to confirm the conversion still counts.

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.