On this page
What this issue is
A merge tag is a placeholder in an email, like {{first_name}}, that your email tool swaps for a value from the lead's record. If the value is empty, the tool swaps in nothing. The greeting Hi {{first_name}}, then becomes Hi ,.
This is different from an unfilled tag, where the lead sees the raw text {{first_name}}. Here the tag works, but the data behind it is blank.
Why it costs you leads or sales
The impact is small but real. A greeting with a gap looks like a mistake, so the email feels automated and careless. It can lower trust right when the lead is deciding whether to reply, book or buy. It also hints that other data may be missing from the lead record.
- Lead submits formName typed in one field or left out
- Field mappingName not mapped to First name
- Contact recordFirst name is empty
- AutoresponderSends "Hi ,"
The name is lost before the email is built, so the template has nothing to insert.
How to check if your site has it
Submit the form with a full name
Use a test email you can read. Type a first and last name and check the email greeting.
Submit it with only one word
Enter a single name, such as "Sam" in a combined Name field. Some tools cannot split it and leave first name empty.
Submit it with the name left blank
If the field is optional, leave it empty. This shows what real leads without a name will see.
Open the contact record
In your CRM or email tool, check whether First name was saved. If it is empty there, the problem is in the form mapping, not the template.
How to fix it
There are two fixes, and you usually want both. First, add a fallback so the greeting reads well when the name is missing. Second, fix the mapping so the name is captured when the lead typed it.
| Tool | Greeting with fallback |
|---|---|
| Mailchimp | Hi *|FNAME|*, becomes Hi *|FNAME:there|*, |
| HubSpot | Hi {{ contact.firstname | default: "there" }}, |
| ActiveCampaign | Hi %FIRSTNAME|there%, |
| Liquid-based tools (Klaviyo, Shopify Email) | Hi {{ first_name | default: "there" }}, |
Check the form's email settings
In your form plugin (for example Contact Form 7, Gravity Forms, WPForms), open the confirmation email and look at the name tag. Make sure it points to the actual name field, such as [your-name] or the Name field's first-name part.
Use the first-name part of a split field
If your plugin has a combined Name field, choose its First sub-field in the merge tag picker instead of the whole field.
Add a fallback
If the plugin does not support defaults, make the Name field required so it cannot be empty.
Edit the email or SMS action
In Automation, open the workflow and the Send Email action. Find the First Name custom value in the greeting.
Set a default
Use the default value option on the merge field if available, or rewrite the greeting so it does not need a name, such as "Hello,".
Check form field mapping
In the form builder, confirm the name field is the standard First Name field so it saves to the contact.
Open the notification template
Go to Settings, then Notifications, and open the customer email template.
Add a fallback in Liquid
Replace the greeting with the snippet shown below so a blank name falls back to "there".
Check what you push to the email tool
If a tag sends form data to your email service, confirm the variable for first name reads the right form field and is not undefined.
Fix the variable, not the email
Update the data layer or DOM variable so the name is sent, then retest.
Check the form field name
Make sure the input's name attribute matches what your backend reads (for example first_name).
Build the greeting in code
Use a fallback when assembling the email, as in the JavaScript example below.
Hi {% if customer.first_name != blank %}{{ customer.first_name }}{% else %}there{% endif %},const name = (lead.firstName || '').trim();
const greeting = name ? `Hi ${name},` : 'Hi there,';Before
- Greeting reads "Hi ,"
- No fallback in the merge tag
- Name field not mapped to First name
After
- Greeting reads "Hi Sam," or "Hi there,"
- Fallback set in the template
- Name saved to the contact record
How to confirm it's fixed
- Submit the form with a full name and see the first name in the greeting
- Submit with a single word in a combined name field and check the result
- Submit with the name blank and see the fallback, not "Hi ,"
- Open the contact record and confirm First name is saved
- Check the email in a mobile client as well as desktop
How to prevent it happening again
- Add a fallback to every merge tag in every template
- Make the name field required if the greeting depends on it
- Retest the email after changing form fields, plugins or CRM mapping
- Check imported or API-created leads, which often lack a first name
- Keep a checklist for new forms that includes the confirmation email
How FunnelGuard handles this
FunnelGuard detects this issue. A robot visitor runs your lead form on a schedule and submits a test lead. It then checks the content of the confirmation email that arrives, and flags an empty greeting such as "Hi ,". 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 with utm_source=funnelguard, fg_test=1, an fg_test cookie and its own user agent. 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.
Questions people ask
Why does my confirmation email say "Hi ," with no name?
The merge tag in your template is inserting an empty first name. Either the lead did not give a name, or your form did not pass it to your email tool. Add a fallback to the tag and check the field mapping.
How do I set a default value for a first name merge tag?
Most email tools let you add a fallback inside the tag. In Mailchimp use *|FNAME:there|*, and in HubSpot use {{ contact.firstname | default: "there" }}. Check your tool's documentation for the exact syntax.
What is a good fallback for a missing first name?
"Hi there," or "Hello," are safe choices. They read naturally and do not signal that data is missing. Avoid placeholders like "Customer".
Why is first name empty when the lead typed their name?
The name field is probably not mapped to the First name property. A single combined Name field often does not split into first and last name automatically. Map the field correctly or use separate first and last name fields.
What is the difference between "Hi ," and "Hi {{first_name}}"?
"Hi ," means the tag worked but the value was empty. "Hi {{first_name}}" means the tag was never replaced, usually because of a wrong tag name or syntax. Each has a different fix.
Should I make the name field required?
If your emails depend on the name, requiring it helps. But extra required fields can lower form submissions, so a fallback is often the better first step.
Can I detect a blank greeting automatically?
Yes. FunnelGuard submits a test lead on a schedule, checks the confirmation email content, and flags an empty greeting like "Hi ,".
Related issues
- DLV-029Confirmation email has unfilled merge tags (Hi {{first_name}})Fix guide
- DLV-027No confirmation email sent to the leadFix guide
- DLV-033Wrong offer, price or product named in the confirmationFix guide
- DLV-041Confirmation email sent with test or staging contentFix guide
- DLV-046Customer gets the internal notification instead of the confirmationFix guide
- DLV-028Confirmation email delayed beyond minutesFix guide