Jinja
Jinja2—commonly referred to as Jinja—is a templating language for Python that lets you personalize messages and content for each of your customers. It works by replacing placeholder values with real customer data when a template renders.
For example: The placeholder {{ customer.firstname }} is replaced with the customer's first name at send time — as long as that value is stored in Bloomreach Engagement.
Jinja works alongside other personalization tools like weblayers, experiments, and various campaigns to help you create experiences that feel personal and relevant to each customer.
Where you can use Jinja
- Weblayers (HTML, CSS, JS)
- Email campaigns (body, subject line, sender email, sender name, pre-header, UTM parameters)
- HTML blocks
- Scenarios — all actions and the following operators: Set attribute, Add event, Wait, Conditions
- Experiments (Change, Insert, HTML)
- Asset manager templates
- Tag manager tags
Where you can't use Jinja
- Scenarios — Triggers and the following operators: A/B split, Label
- Surveys
- Search
- Filters in analytics (outside of scenarios)
No coding experience neededYou don't need a coding background to use Jinja. Basic personalization is straightforward, and the guides in this section walk you through more complex use cases step by step.
Updated 18 days ago
If you are a more technical user wanting to master your personalization tactics and custom Use Cases, try out our Jinja course.
