Overview
The meta element contains information describing the notification that may be used by a particular channel or provider. The most important field is thetitle field, which is used as the title for channels that support it (email subject lines, push notification titles, etc.).
When to use:
- Set email subject lines
- Set push notification titles
- Provide channel-specific titles
- Include metadata for notification processing
Basic Example
Fields
The type of element. For meta elements, this value must be
"meta".The title to be displayed by supported channels:
- Email: Used as the email subject line
- Push: Used as the push notification title
- Inbox: Used as the notification title
Region-specific content for localization. Can localize the
title field. See the Locales documentation for more details.An array of channel names. The meta element will only be applied for the specified channels. See Control Flow documentation for details.
Examples & Variants
Basic Title
Simple title for email subject or push notification:Dynamic Title with Handlebars
Use variables in the title:message.data (e.g., data.first_name, data.last_name).
Channel-Specific Titles
Different titles for different channels:Localized Titles
Localize titles for different languages:Combined Dynamic and Localized
Use both Handlebars and localization:Multiple Meta Elements
Use multiple meta elements for different purposes:Channel Usage
title field becomes the email subject line. This is one of the most important fields for email deliverability and open rates.
Push Notifications
Thetitle field becomes the push notification title. Keep it concise (typically 40-60 characters).
SMS
Meta elements are typically not used for SMS, as SMS doesn’t support titles/subjects.Inbox
Thetitle field is used as the notification title in the inbox.
Best Practices
- Keep titles concise: Especially for push notifications (40-60 characters recommended)
- Use dynamic content: Include relevant information like order numbers, names, etc.
- Localize titles: Provide translations for all supported languages
- Test subject lines: Email subject lines significantly impact open rates
- Channel-specific optimization: Tailor titles for each channel’s requirements
- Avoid spam triggers: Don’t use all caps, excessive punctuation, or spam keywords
Related Elements
- Text Element - For notification body content
- Channel Element - For channel-specific content customization
- Locales - For localizing titles
- Control Flow - For channel-specific meta elements