Focus Items Support
Use Twig Templates inside Mautic Focus Items (popups, bars, etc.) for advanced personalization.
You can use Twig Templates directly inside Mautic Focus Items (popups, bars, notifications, etc.) to show personalized content to your visitors.
How It Works
- Insert the
{twigtemplate=...}
token in the content of your Focus Item. - The referenced Twig Template will be rendered using the current contact’s data (if available).
- Any trackable URLs in your template will be processed for Focus Item tracking.
Example: Personalized Focus Item
- If the visitor is known (identified by Mautic tracking), their contact data is used for personalization.
- If the visitor is unknown, your template’s default values or fallback logic will be used.
You can use all standard Twig features and tokens (like contact
, formresult
, etc.) inside your Focus Item templates.
Tips
- Use Focus Items to show dynamic offers, news, or messages based on contact fields (like points, tags, or segments).
- Combine with other Twig logic for advanced targeting.
For more on available tokens and personalization options, see Available Twig Tokens.