Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Confirmation email shows {{first_name}}: how to find and fix it

DLV-029Medium impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

A merge tag (also called a personalization tag, merge field or placeholder) is a marker in an email template, such as {{first_name}}, *|FNAME|* or {{contact.first_name}}. When the email is sent, the tool replaces the marker with data from the lead. If the replacement does not happen, the lead sees the raw marker.

What the lead sees

Broken

  • Subject: Thanks, {{first_name}}!
  • Body: Hi {{first_name}}, we got your request.
  • Looks like an automated mistake

Fixed

  • Subject: Thanks, Maria!
  • Body: Hi Maria, we got your request.
  • Reads as a real, personal reply

Why it costs you leads or sales

A subject line with a raw tag can also lower opens, and it hurts sender reputation if people report it. The damage is moderate, but it hits every single lead until someone notices.

Where the confirmation journey goes wrong
  1. Form submittedLead enters name and email
  2. Autoresponder runsTemplate is loaded
  3. Merge tag replacedTag not recognised or no data
  4. Lead reads emailSees Hi {{first_name}}
  5. Lead replies or booksTrust is lower

The form works and the lead is captured, but the first impression is damaged.

How to check if your site has it

Check your confirmation email
  1. Submit your own form

    Use a real inbox you control and a real first name, exactly as a lead would.

  2. Read the subject and body

    Look for curly braces, percent signs, asterisks or square brackets around words.

  3. Test each form and variant

    Every form, language version and landing page can use a different template.

  4. Check the email tool's preview

    Previews and test sends often use sample data, so they can hide the problem. Always test with a live submission.

Example tag formats. Check your own tool's documentation for the exact name.
Tool styleExample tag
Mustache or Handlebars style{{first_name}}
Mailchimp style*|FNAME|*
HubSpot style{{ contact.firstname }}
GoHighLevel style{{contact.first_name}}
Liquid style{{ customer.first_name }}

How to fix it

Fix the merge tag
  1. Find the template

    Open the autoresponder or confirmation email in the tool that actually sends it. It may be your form plugin, CRM or email platform.

  2. Copy the tag from the tool

    Use the tool's own insert-personalization menu rather than typing the tag by hand.

  3. Match the field

    Make sure the form field that holds the name is mapped to the contact field the tag reads.

  4. Check subject and plain text

    Fix tags in the subject line, preheader and plain-text version as well as the HTML body.

  5. Remove duplicate senders

    If two tools both send a confirmation, fix or switch off the one with the broken template.

  6. Re-test with a live submission

    Send a real form entry and read the received email.

Where to look on each platform
  1. Open your form plugin's notification settings

    In plugins such as Gravity Forms, WPForms or Contact Form 7, the email body uses the plugin's own tags, for example [your-name] in Contact Form 7 or the merge tag dropdown in Gravity Forms and WPForms.

  2. Match tag to field

    The tag name must match the field name or ID exactly. If you renamed or deleted the field, the tag stops working.

Example: fill placeholders in your own code and fail safelyjavascript
function render(template, data) {
  return template.replace(/{{\s*(\w+)\s*}}/g, (m, key) => {
    if (data[key] === undefined || data[key] === '') {
      throw new Error('Missing value for ' + key);
    }
    return data[key];
  });
}

const html = render('Hi {{first_name}}, thanks for your request.', { first_name: 'Maria' });

How to confirm it's fixed

Confirmation checks
  • Submit the live form with a real first name and read the received email
  • Subject, preheader and body show the name, with no braces or symbols
  • The plain-text version also shows the name
  • Repeat with a name containing accents or an apostrophe
  • Repeat with the name field left empty, if the form allows it, to see the fallback
  • Check every form and language version
From submission to email

The lead's data must reach the template before the email is sent.

How to prevent it happening again

Prevention habits
  • Insert tags from the tool's menu instead of typing them
  • Re-test the confirmation after renaming, deleting or reordering form fields
  • Re-test after switching email tools or copying templates between them
  • Use a fallback value for names
  • Test with a live submission, not only the preview
  • Run a scheduled test submission so a break is caught within a day

How FunnelGuard handles this

FunnelGuard detects this issue today. It runs your lead form on a schedule as a robot visitor, using a marked test lead. When the confirmation email arrives, it checks the content for leftover merge tags, such as text still wrapped in curly braces, and flags the email if any are found (check: no_merge_tags).

If a failure is found, it 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. The Free plan covers 1 site and 2 journeys with daily checks and no card. Paid plans start at $39/month with a 3-day free trial.

If the greeting reads 'Hi ,' instead of showing a tag, that is a different fix: the tag works, but the name is empty. See the related guide on blank first-name fallbacks.

Questions people ask

Why does my confirmation email say Hi {{first_name}}?

The email tool did not replace the placeholder with the lead's name. Usually the tag syntax is wrong for that tool, the tag name does not match a real field, or the form field is not mapped to the contact. Fix the tag and test with a live submission.

Why are my merge tags not working in the email?

Common reasons are using another tool's syntax, a renamed or deleted field, an unmapped form field, or using a tag where personalization is not supported, such as the plain-text part. Insert the tag from the tool's own menu and re-test.

Why does the preview look fine but the real email shows the tag?

Previews and test sends often use sample data, so the tag fills in. A real email uses the lead's submitted data, and if the field is not mapped the tag stays raw. Always test with a real form submission.

How do I stop emails showing a blank name or a raw tag?

Use the correct tag from your tool's personalize menu, map the form's name field to the contact's first name, and set a fallback value such as 'there'. Then submit the form yourself to check.

Can merge tags fail in the subject line only?

Yes. Some tools handle subject lines differently from the body, or need the tag added separately. Check the subject, preheader and plain-text version as well as the main body.

How often should I test my confirmation email?

Test after any change to the form, field names, email template or email tool, and on a regular schedule. A scheduled automated test submission catches problems between manual checks.

Does FunnelGuard detect unfilled merge tags?

Yes. FunnelGuard submits your form with a marked test lead, reads the confirmation email that arrives and flags it if merge tags such as {{first_name}} are still in the text.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: no_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.