Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Personalised content showing the wrong name or city: fix it

CNV-351Low impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

Personalisation swaps parts of a page for each visitor. Common examples are "Hi Sam", "Plumbers in Leeds" or a local phone number. The value comes from a URL parameter, a cookie, a logged-in account, a CRM record or an IP geolocation lookup (a guess of where someone is from their IP address).

Why it costs you leads or sales

A wrong name feels like a data leak. A wrong city makes your offer look irrelevant, or suggests you do not serve the visitor's area. Either one lowers trust at the moment you ask for an email, a phone call or a card. The impact is usually modest, but a cached page showing a real person's name to strangers is also a privacy risk.

How a cached personalised page goes wrong
  1. Visitor A loads pagePage says "Hi Sam, Leeds"
  2. CDN caches the HTMLPersonal values saved in the shared copy
  3. Visitor B loads pageSees "Hi Sam"
  4. Trust dropsVisitor leaves without converting

One visitor's name is stored in a shared cache and shown to the next.

Common causes

Typical causes and where to look
CauseWhat you seeWhere to look
Full-page caching of personalised HTMLDifferent visitors see the same nameCDN, host cache or caching plugin rules
IP geolocation is inaccurateWrong city, or the data centre or ISP cityGeo tool or plugin; VPN and mobile traffic
Stale cookie or local storageOld name or city on a shared deviceBrowser storage, cookie lifetime
URL parameter copied or sharedLink with ?name=Sam shared with othersEmail links, ad URLs, personalisation script
No fallback valueBlank, wrong or generic textTemplate default for missing values
Mismatched CRM merge dataWrong name in emailed linksEmail tool merge tags and list data

How to check if your site has it

Test your personalisation by hand
  1. Test with a clean browser

    Open a private window with no cookies and load the page with no parameters. You should see the fallback text, not a name.

  2. Test two different identities

    Load the page with ?name=Alex in one browser and ?name=Sam in another, ideally at the same time. Each must show only its own value.

  3. Check the cache headers

    In browser DevTools, open the Network tab, click the page request and look at Cache-Control, Age and any x-cache header. A shared cache hit on a personalised page is a red flag.

  4. Test locations

    Use a mobile connection, a VPN and a work network. Note which city each shows and compare it with where you really are.

  5. Test a returning visitor

    Visit as one person, then clear nothing and visit as another on the same browser. See if the old value sticks.

How to fix it

The right fix depends on the cause. Start with caching, because it is the most serious, then improve fallbacks and location accuracy.

Fix by platform
  1. Exclude personalised pages from page cache

    In your caching plugin or host cache settings, add the URL or query parameter to the never-cache list, or use the plugin's option to bypass cache for URLs with query strings.

  2. Load personal values client-side

    Keep the cached HTML generic and fill in the name or city with JavaScript after load, so the cache never holds personal data.

  3. Set a fallback

    If your personalisation plugin supports default values, set one such as "there" or leave the greeting out.

Safe client-side personalisation with a fallbackjavascript
(function () {
  var params = new URLSearchParams(window.location.search);
  var raw = params.get('name') || '';
  // Allow letters, spaces, hyphens and apostrophes, max 30 characters
  var valid = /^[A-Za-z\u00C0-\u024F' -]{1,30}$/.test(raw);
  var el = document.getElementById('greeting-name');
  if (el) {
    el.textContent = valid ? raw : 'there';
  }
})();
Stop shared caches storing personalised pagesnginx
location /welcome {
  add_header Cache-Control "private, no-store";
}
Personalisation before and after the fix

Broken

  • Cached page shows one visitor's name to others
  • City guessed from a data-centre IP
  • Blank or odd text when the value is missing

Fixed

  • Personal values loaded per visitor, outside shared cache
  • Location shown only when confident, and changeable
  • Neutral fallback text when no value exists

How to confirm it's fixed

Confirmation checks
  • A clean browser with no parameters shows the fallback text
  • Two browsers with different names each show only their own
  • The page response is not served from a shared cache for personalised content
  • A returning visitor with a new URL value sees the new value
  • Location looks right or falls back on mobile, VPN and office networks
  • Page source for the generic version contains no personal data

How to prevent it happening again

Prevention habits
  • Add a personalisation test to your release checklist whenever you change caching, CDN or plugins
  • Always define a fallback for every personalised value
  • Validate and escape any value that comes from a URL
  • Document which pages are personalised and exclude them from page caching
  • Re-test after changing hosts, CDN rules or your personalisation tool
  • Review your tool's location accuracy before using city in headlines

How FunnelGuard handles this

FunnelGuard does not check for wrong names or cities in personalised content yet. It is a possible future check, not a current feature.

What FunnelGuard does do nearby: a robot visitor runs your real journeys on a schedule, such as lead forms, checkouts and booking buttons. It checks each step, the tracking hits sent to ad and analytics platforms, and whether test leads reach your inbox and CRM. If a broken personalisation script stops a form or button working, that step failure can be caught and re-checked from a second region before one alert is sent. It will not tell you the greeting says the wrong name.

Questions people ask

Why is my website showing the wrong name to visitors?

The most common cause is a cached page that was generated for one visitor and then served to others. It can also be an old cookie on a shared device, or a URL parameter that was copied from someone else's link. Exclude personalised pages from shared caching and load names per visitor.

Why does my site show the wrong city for visitors?

Cities are usually guessed from the IP address, which can point to the mobile carrier's hub, a company network or a VPN exit in another place. The lookup database may also be out of date. Use a fallback such as your service area, and let visitors choose their location.

How do I stop my CDN caching personalised pages?

Send a Cache-Control: private or no-store header for personalised URLs, or add a bypass rule in your CDN or caching plugin for those paths or query strings. Better still, serve generic HTML and fill in personal values with JavaScript after load.

How do I test personalisation for different visitors?

Open separate private windows or browsers and load the page with different test values, such as ?name=Alex and ?name=Sam. Repeat on a mobile network and with a VPN for location. Each must show only its own value and a clean visit must show the fallback.

What should personalised text show when the name is missing?

Show a neutral fallback, such as "Hi there" or no greeting at all. Never leave a blank gap or a raw placeholder. Define the fallback for every personalised value in your template or script.

Is showing another visitor's name a privacy problem?

It can be. If a cached page exposes a real person's name or details to others, that may count as a data exposure under privacy rules such as GDPR. Fix the caching quickly and consider getting advice if real personal data was shown.

Does FunnelGuard check for wrong names or cities in personalised content?

No, not yet. It is a possible future check. FunnelGuard does run your real customer journeys on a schedule and checks forms, buttons, tracking and lead delivery, so it can show if a broken script stops a step from working.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

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.