Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Form field values in GA4 click text: how to find and fix it

TRK-358Medium impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

GA4 click events can carry the visible text of the clicked element. Enhanced measurement sends link_text on outbound link clicks and file downloads. In Google Tag Manager (GTM), the built-in variable Click Text holds the text of whatever was clicked, and many setups pass it to GA4 as an event parameter.

Why it costs you leads or sales

The direct cost is risk, not lost clicks. Personal data in analytics can force you to delete data, pause reporting, rewrite consent wording or answer a privacy complaint. Google may also remove data it finds contains PII.

How form values reach GA4 as click text
  1. Visitor fills formTypes name or email
  2. Clicks elementElement text now holds the typed value
  3. Click tag reads textClick Text variable sent as parameter
  4. GA4 stores eventPersonal data in reports
  5. Clean dataNo longer possible without deletion

The break happens when the click tag reads text that contains typed values.

How to check if your site has it

Find form values in click text
  1. Open GA4 DebugView

    In GA4 go to Admin > DebugView. Turn on GTM Preview mode or the GA debugger extension for your site.

  2. Fill the form with a fake value

    Type an obviously fake email such as test-leak@example.com and a fake name. Click through the form and the buttons.

  3. Inspect click events

    Open each click, form_start or custom event and check parameters such as link_text, click_text, element_text or button_text for your fake values.

  4. Check GTM tagsGoogle Tag Manager

    In GTM Preview, click the same elements and see what the Click Text variable holds. Review every GA4 event tag that uses it.

  5. Search existing reports

    In Explore, build a free-form report with the custom dimension for click text and look for values containing @ or digits in long strings.

How to fix it

The principle is the same everywhere: do not send raw element text from forms. Send a fixed label, the element ID, or the form name. Then deal with data already collected.

Fix by platform
  1. Find tags using Click Text

    In GTM use the search box for Click Text and list every GA4 event tag that sends it as a parameter.

  2. Replace with a safe value

    Swap the parameter value for Click ID, Click Classes or a fixed string such as submit_button. Never use text from inside a form.

  3. Narrow the trigger

    Change All Elements triggers to Just Links or add a condition such as Click ID equals a specific button, so form wrappers do not fire.

  4. Publish and test

    Run Preview, then publish a new container version.

Send a fixed label instead of element textjavascript
// Risky: may contain typed values
// gtag('event', 'cta_click', { button_text: el.innerText });

// Safer: a fixed label set in your markup
document.addEventListener('click', function (e) {
  var el = e.target.closest('[data-track-label]');
  if (!el) return;
  gtag('event', 'cta_click', {
    button_label: el.getAttribute('data-track-label')
  });
});
Clean up data already collected
  1. Stop the flow first

    Publish the fix before anything else so no new personal data arrives.

  2. Remove the custom dimension

    In GA4 Admin > Custom definitions, archive any custom dimension that holds click text so it stops appearing in reports.

  3. Request deletion where needed

    Use Admin > Data collection and modification > Data deletion requests to delete affected parameter data. Check Google's current documentation for scope and limits.

  4. Check exports

    If you export to BigQuery or connect Looker Studio, delete or filter the affected rows there too.

  5. Tell your privacy contact

    Record what leaked, for how long and what you did. Your legal or data protection lead decides whether further steps are required.

Click event parameters

Leaking

  • click_text = "jane@example.com"
  • Trigger fires on All Elements
  • Every typed value becomes a row

Fixed

  • button_label = "submit_quote_form"
  • Trigger limited to specific button IDs
  • A small, readable set of values

How to confirm it's fixed

Confirmation checklist
  • Repeat the DebugView test with a fake value such as leak-test-123.
  • No event parameter contains the fake value.
  • GTM Preview shows tags sending fixed labels only.
  • The click text custom dimension is archived or shows no personal data.
  • Reports from the last few days show no new @ or phone-style values.
  • BigQuery or Looker Studio sources were checked and cleaned if used.

How to prevent it happening again

Leaks usually return when someone adds a new tag, changes a form or installs a plugin. Build a few habits around that.

Prevention habits
  • Ban the Click Text variable in event parameters unless the element is known to hold fixed text.
  • Use data attributes for labels so marketers do not read page text.
  • Review GTM changes before publishing and ask what each parameter can contain.
  • Test every new form with a fake value in DebugView.
  • Re-test after theme, plugin or form-builder updates.
  • Keep a short list of approved event parameters.
How an unnoticed leak unfolds (example)
  1. Week 1

    A new click tag is published using Click Text.

  2. Week 2

    A form widget starts echoing typed values in its button text.

  3. Week 6

    Emails appear in a report and someone spots them.

  4. Week 6, same day

    Tag fixed, dimension archived, deletion requested.

How FunnelGuard handles this

FunnelGuard detects this issue today. A robot visitor runs your real journeys on a schedule, from the EU or the US, and checks the tracking hits sent to GA4 and other platforms. When a hit carries form field values in click text, it is flagged so you can see which step and parameter leaked. A failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause.

Test traffic is marked (utm_source=funnelguard, fg_test=1, an fg_test cookie and its own user agent), so you can filter it out of reports. It never enters real card details and never bypasses CAPTCHAs or bot protection. The Free plan covers 1 site and 2 journeys with daily checks and no card, and every paid plan has a 3-day free trial.

Questions people ask

Why is my GA4 click text showing email addresses?

A click tag is probably sending the text of an element that contains what the visitor typed, such as a button, dropdown or form wrapper. Check which tag sends link_text or Click Text in GTM and replace it with a fixed label. Then delete the affected data.

Is it against Google Analytics terms to send form values?

Yes. Google's terms for Google Analytics prohibit sending personally identifiable information such as emails, names or phone numbers. Privacy laws like GDPR may also apply, so treat any leak seriously.

How do I stop GTM sending Click Text to GA4?

Open each GA4 event tag, find parameters using the Click Text variable, and replace them with a fixed string, Click ID or a data attribute label. Narrow the trigger to specific buttons, then publish a new container version.

How do I remove personal data already in GA4?

Stop the leak first, then archive the related custom dimension and submit a data deletion request under Admin > Data collection and modification. Also clean any BigQuery export or Looker Studio source that holds the data.

Does GA4 enhanced measurement send form field values?

Enhanced measurement form events send form attributes like ID and destination, not field values. Leaks usually come from custom tags or widgets that read element text. Still, test with a fake value to be sure.

How can I test whether my site leaks form data into GA4?

Open GA4 DebugView with GTM Preview, fill your form with a fake value like leak-test-123, and click through. Inspect every event's parameters for that value. If it appears, the tag sending it needs fixing.

Can FunnelGuard tell me if form values reach GA4?

Yes. FunnelGuard runs your journeys on a schedule and checks the tracking hits sent to GA4. It flags form field values found in click text and sends one alert with a screenshot and a likely cause.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

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.