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.
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.
- Form submittedLead enters name and email
- Autoresponder runsTemplate is loaded
- Merge tag replacedTag not recognised or no data
- Lead reads emailSees Hi {{first_name}}
- 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
Submit your own form
Use a real inbox you control and a real first name, exactly as a lead would.
Read the subject and body
Look for curly braces, percent signs, asterisks or square brackets around words.
Test each form and variant
Every form, language version and landing page can use a different template.
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.
| Tool style | Example 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
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.
Copy the tag from the tool
Use the tool's own insert-personalization menu rather than typing the tag by hand.
Match the field
Make sure the form field that holds the name is mapped to the contact field the tag reads.
Check subject and plain text
Fix tags in the subject line, preheader and plain-text version as well as the HTML body.
Remove duplicate senders
If two tools both send a confirmation, fix or switch off the one with the broken template.
Re-test with a live submission
Send a real form entry and read the received email.
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.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.
Open Settings > Notifications
Edit the customer notification template. Shopify uses Liquid, such as
{{ customer.first_name }}.Use the right object
Variables depend on the template. Check the variables listed for that notification and use the preview, then place a test order.
Not usually the cause
GTM does not send emails. Only check it if you pass the name to another tool through a tag, and make sure that tool receives the first name value.
Check where the email is sent
Webflow's form notifications go to you. A customer confirmation usually comes from a connected tool such as an email platform, Zapier or Make. Fix the tag there and check the field mapping from the Webflow form.
Open the workflow email action
Use the Custom Values or personalize menu to insert the contact first name rather than typing it.
Check the contact record
Confirm the form maps the name field to First Name on the contact.
Open Automations
Edit the email action and use the personalize option to insert the contact's first name. Check the form field is saved to the contact.
Check the form's auto-reply or email campaign
Squarespace form storage connects to other tools. If an email platform sends the reply, fix the tag in that tool. Use only the personalization options that the sending tool supports.
Replace the placeholder before sending
If your own code builds the email, make sure the template engine runs on the string and that the variable is passed in. See the code example below.
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
- 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
The lead's data must reach the template before the email is sent.
How to prevent it happening again
- 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.
Related checks
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.
Related issues
- DLV-030First name merge falls back to blank ("Hi ,")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-035Old branding, logo or company name in the email templateFix guide