Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Autoresponder showing {{first_name}} instead of a name: fix

CNV-063Medium impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

A merge tag (also called a placeholder, token or personalization field) is a small piece of text in an email template, such as {{first_name}}, that your tool swaps for data the lead typed into the form. If the swap fails, the lead gets the raw tag, or "Hi ," with nothing after it.

Every tool has its own syntax. Some use {{first_name}}, others use [your-name], %FIRSTNAME%, {{contact.first_name}} or *|FNAME|*. Copying a tag from one tool into another is the most common cause.

Where the personalization breaks
  1. Lead submits formFirst name typed in
  2. Autoresponder triggersEmail template loads
  3. Merge tag replacedTag name does not match a field
  4. Lead reads emailSees 'Hi {{first_name}}'

The form works and the email sends, but the swap step fails, so the first message the lead sees looks broken.

Why it costs you leads or sales

The autoresponder is often the first thing a lead receives from you. A visible placeholder looks careless, and it can look like a mass mailing or a phishing attempt. Leads may ignore the email, miss the booking link inside it, or mark it as spam, which also hurts delivery of later emails.

The damage is quiet. The form works, the lead reaches your CRM, and nothing alerts you. You only find out when someone replies, or never does.

Replies to the confirmation emailExample numbers
Replies to the confirmation email (example)Correct name: 12 %; Raw {{first_name}}: 6 %059126Correct nameRaw {{first_name}}%

Example: illustrative numbers showing how a broken greeting could lower replies. Your results will differ.

How to check if your site has it

Check your autoresponder by hand
  1. Submit your own form

    Use a real inbox you can read, and type a clear test name such as 'Testname Lastname'.

  2. Read the email you receive

    Look in the subject line, greeting, body, button text and footer. Merge tags can fail in only one of these places.

  3. Look for leftovers

    Search for curly braces, square brackets, percent signs or empty gaps like 'Hi ,'.

  4. Test an edge case

    Submit again with the name field empty, or with only a full name, to see how the fallback behaves.

  5. Check every form

    Each form may use its own template. A fix on the contact form does not cover the quote or booking form.

How to fix it

The idea is the same everywhere: the tag in the template must match the exact name of a field the form actually sends. Then give it a fallback for when the field is empty.

Common causes and the fix
CauseWhat you seeFix
Tag name does not match the fieldRaw {{first_name}} in emailRename the tag or the field so they match exactly
Syntax from another toolRaw tag or bracketsUse the syntax of the tool that sends the email
Field was empty or optional'Hi ,'Make the field required or add a default value
Single 'Full name' fieldWhole name or blank in first name tagSplit into first and last name fields
Tag in subject line unsupportedRaw tag only in subjectCheck if the tool supports tags in subjects, or remove it
Fix the merge tag on your platform
  1. Find the exact field name

    In your form plugin, open the form and note each field's name or ID. Contact Form 7 uses [your-name], WPForms uses Smart Tags such as {field_id="1"}, and Gravity Forms uses merge tags like {Name (First):1.3}. Use the insert-tag button in the email editor where one exists, rather than typing it.

  2. Replace the tag in the confirmation email

    Edit the notification or confirmation to the lead and paste in the tag the plugin generated.

  3. Split the name field if needed

    If you only collect a full name, use first and last name subfields so a first-name tag has something to read.

Safe greeting with a fallback (custom code)javascript
function greeting(lead) {
  const name = (lead.first_name || '').trim();
  return name ? `Hi ${name},` : 'Hi there,';
}

// Fail loudly if any tag is left unreplaced
function assertNoTags(html) {
  if (/\{\{.*?\}\}|\[[a-z-]+\]|%[A-Z_]+%/.test(html)) {
    throw new Error('Unreplaced merge tag in email');
  }
}
What the lead sees

Broken tag

  • Subject: Thanks, {{first_name}}
  • Body starts 'Hi {{first_name}},'
  • Looks like a template error

Fixed tag

  • Subject: Thanks, Sam
  • Body starts 'Hi Sam,'
  • Falls back to 'Hi there,' if name is empty

How to confirm it's fixed

Confirmation checklist
  • Submit the form with a real name and read the email in your inbox
  • No braces, brackets or percent signs remain in subject, body or buttons
  • Submit once with the name left empty and check the fallback greeting
  • Open the email on mobile and in a second mail app, since previews can differ
  • Repeat on every form that sends an autoresponder
  • Check the lead record in your CRM holds the same name

How to prevent it happening again

Merge tags usually break when someone renames a form field, swaps the form plugin, rebuilds the form, or edits the email template. Treat these as changes that need a test submission.

Prevention habits
  • Insert tags with the tool's picker instead of typing them
  • Keep field names stable and document them
  • Set a fallback value on every personalized tag
  • Test submit after any form, template or plugin change
  • Avoid putting tags in subject lines unless you have tested them
  • Run a scheduled test so a silent break is caught quickly
How the problem usually unfolds
  1. Day 1

    Someone renames the form field from 'first_name' to 'fname'.

  2. Day 1

    The autoresponder still uses {{first_name}} and starts sending raw tags.

  3. Days 2-14

    Every new lead gets a broken greeting. Nothing alerts you.

  4. Day 15

    A lead mentions it, or a test catches it. The tag is fixed.

How FunnelGuard handles this

FunnelGuard detects this today. It runs a marked test submission through your real lead form on a schedule, then checks the content of the email that arrives (the email_content merge tags check). If the email still contains an unreplaced merge tag such as {{first_name}}, the check fails.

A failure is re-checked from a second region before one alert goes out, by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause. Test traffic is marked with utm_source=funnelguard, fg_test=1 and its own user agent. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans have a 3-day free trial.

Questions people ask

Why is my autoresponder showing {{first_name}} instead of the name?

The email tool could not find a form field matching that tag, so it sent the raw text. The usual causes are a renamed field, a tag written in another tool's syntax, or a field the form never sends. Match the tag to the exact field name and send a test.

Why does my confirmation email say 'Hi ,' with no name?

The tag matched a field, but the field was empty. The lead may have skipped an optional field or typed a full name into a last-name box. Make the field required or set a fallback such as 'there'.

How do I fix merge tags in a Contact Form 7 email?

Contact Form 7 uses the field name in square brackets, for example [your-name], in the Mail tab. The bracket name must match the field's name in the form tab exactly. Copy it from the form rather than typing a tag from another tool.

Do merge tags work in the email subject line?

It depends on the tool. Many support them, some do not, and some fail when the field is empty. Send a test with and without a name, and remove the tag from the subject if it breaks.

What is a fallback value for a merge tag?

A fallback is the default text used when a field is empty, such as 'there' for a first name. It stops the email reading 'Hi ,'. Most email and CRM tools let you set one in the tag or the template.

Can a form plugin update break my merge tags?

Yes. Updates, theme changes or rebuilt forms can rename fields or change tag syntax. Send a test submission after any change to a form or its email template.

How can I know when my autoresponder merge tags break without testing by hand?

Run an automated test submission on a schedule and inspect the email that arrives for leftover tags. FunnelGuard does this with a marked test lead and alerts you if an unreplaced tag such as {{first_name}} appears.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: email_content merge tags.

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.