How to set a default value for a personalization tag
Overview
Personalization tags like {{ contact.first_name }}
add information from your contacts' profile to emails and SMS messages, which makes messages feel individualized instead of generic. However, this strategy can backfire when contacts don't have information like their first name saved in their contact profiles.
Read on to learn how to set default values for personalization tags and ensure contacts receive messages that flow even when personalization data is unavailable.
If contacts' profiles do not have data for a personalization tag, they will see a blank space where it was inserted if a default value is not specified.
To create a default value for a personalization tag:
- Click the Audience icon
- Click the Personalization tab
- Click the Custom Field's tag to copy it
- Paste the Custom Field where you want it to appear in your email or SMS
- Add
| default('')
before the closing curly brackets - Enter the default value between the quotation marks
If you wanted to default the first name personalization tag to friend
, the final personalization tag would look like {{ contact.first_name | default('Friend') }}