Skip to content
FunnelGuard

Fix guide by FunnelsGuard

PII in page_title ("Thanks John"): how to find and fix it

TRK-359Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Personally identifiable information (PII) is any data that can point to a real person, such as a name, email or phone number. This issue happens when the HTML <title> of a page contains that data, for example <title>Thanks John</title> on a form confirmation page.

Most tracking tags read the page title automatically. GA4 sends it as the page_title (dt) parameter on every page_view and event. Other tools and tag templates can also pick it up. So the name leaves your site without anyone deciding to send it.

Why it costs you leads or sales

The direct cost is risk, not a broken form. Google's Analytics terms forbid sending data that identifies a person, and privacy laws such as GDPR treat a name tied to a visit as personal data. A violation can lead to data being deleted, to a complaint, or to a consent problem that forces you to switch tracking off.

There is a reporting cost too. Every visitor gets a different title, so your Pages report fills with one-off rows like "Thanks John" and "Thanks Maria". Conversion pages become hard to group, and reports and audiences built on page title stop working.

How a name reaches your analytics
  1. Visitor submits formEnters first name
  2. Thank-you page loadsTitle becomes "Thanks John"
  3. Tag reads titlepage_title = Thanks John
  4. Sent to GA4 and othersName stored by vendor

The leak happens automatically once the title is personalised.

How to check if your site has it

Check by hand in about five minutes
  1. Complete your own form

    Use a test name such as "Testname" so it is easy to spot. Land on the thank-you or confirmation page.

  2. Read the browser tab

    If the tab text includes the name you typed, the title is personalised.

  3. Inspect the network hit

    Open DevTools, go to the Network tab and filter by collect. Open the GA4 request and look for dt= in the query string.

  4. Check GA4 DebugView

    In GA4 go to Admin, then DebugView, and open the page_view event. Look at the page_title parameter.

  5. Check other pages

    Account pages, order confirmations and booking confirmations often use greetings too. Repeat the test there.

How to fix it

The cleanest fix is to stop putting the name in the <title> at all. If the greeting must stay, move it into the page body (an <h1> or paragraph) and use a generic title. If you cannot change the title, override page_title in your tags.

Fix by platform
  1. Find where the title is built

    Check your form plugin's confirmation settings and any shortcode or theme code that adds the name to the title (for example in a pre_get_document_title filter or an SEO plugin title template).

  2. Use a generic title

    Set the page title in the editor or SEO plugin to "Thank you". Put the personalised greeting in the page content instead.

Generic title, personal greeting in the bodyhtml
<title>Thank you</title>
...
<h1 id="greeting">Thanks!</h1>
<script>
  // Optional: personalise the visible text only, never document.title
  var name = sessionStorage.getItem('firstName');
  if (name) document.getElementById('greeting').textContent = 'Thanks ' + name + '!';
</script>
Override page_title in gtag.jsjavascript
gtag('config', 'G-XXXXXXXXXX', {
  page_title: 'Thank you'
});
Page title before and after

Before

  • Title: Thanks John
  • page_title in GA4 differs for every visitor
  • Names stored by analytics and ad tools

After

  • Title: Thank you
  • One clean row in the Pages report
  • Greeting still shown in the page body

How to confirm it's fixed

Confirmation checklist
  • Submit the form with a recognisable test name and read the browser tab: no name.
  • In DevTools Network, the GA4 collect request shows dt=Thank%20you (or your generic title).
  • GA4 DebugView shows the generic page_title on page_view and later events.
  • Other tags (Meta, Google Ads, TikTok and so on) show no name in their request parameters.
  • The visible greeting on the page still works if you want it.
  • Repeat on order, booking and account confirmation pages.

How to prevent it happening again

Treat the <title> as public, shared data. Make it a rule that titles are written by editors or templates and never built from form input, URL parameters, cookies or CRM merge fields.

Prevention habits
  • Add "no personal data in titles, URLs or event parameters" to your launch checklist.
  • Review new templates and form confirmations before publishing.
  • Set a GTM page_title override on confirmation pages as a safety net.
  • Re-test the thank-you page after theme, plugin or form builder updates.
  • Run a scheduled test of the form journey so changes are caught quickly.

How FunnelGuard handles this

FunnelGuard detects this issue only partly. When its robot visitor runs your journey, it checks whether personal data appears in the parameters of the tracking hits it captures, which includes page_title values sent to platforms such as GA4.

What it does not do: it only sees the test data it enters, so it will not know about real visitors' names appearing in titles in cases the test journey never reaches. It also does not clean data already stored in your analytics, and it does not review every page of your site. A personalised title that only shows on pages outside the monitored journeys can slip past.

What the hit looks like

From page title to platform

The tag reads the title and sends it without any check.

Questions people ask

Why is my page title showing up as "Thanks John" in Google Analytics?

GA4 automatically sends the page's HTML title as the page_title parameter. If your thank-you page builds its title from the visitor's name, that name is sent to Google with the hit. Change the title to a generic one or override page_title in your tag.

Is a name in the page title a GA4 PII violation?

Google's Analytics terms prohibit sending data that personally identifies someone, and a first name combined with other data can identify a person. A name in page_title is therefore a risk. Remove it and review stored data.

How do I remove personal data from page_title in GA4?

Stop putting the name in the page's title and show it in the page body instead. If that is not possible, set the page_title field in your GA4 tag or Google Tag Manager to a fixed value such as "Thank you" on the affected pages.

Can I keep a personalised greeting on my thank-you page?

Yes. Keep the greeting in visible content such as a heading or paragraph, and use a generic <title>. Tags read the title, not your body text, by default.

How do I check what page_title my tags are sending?

Open browser DevTools, go to Network, filter by collect and open the GA4 request to read the dt parameter. You can also use GA4 DebugView or GTM Preview mode to see the page_title value on each event.

Will fixing the title delete names already in GA4?

No. It only stops new names being sent. You need to review GA4's data deletion options and decide with your privacy lead whether past data must be removed.

Does FunnelGuard detect PII in page titles?

Partly. It checks whether personal data appears in the parameters of the tracking hits captured during its test journeys. It does not scan every page or clean stored data, so test other pages by hand.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: checked if in hit params.

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.