Using the Jinja Templating Language

Send highly personalized emails to your customers with personalized elements such as customer attributes (name, email address) or product attributes (product category, name). Bluecore personalizes emails with Jinja templating language to add additional customization to content.

Bluecore supports everything that's available in the Jinja templating language. We’ve also added additional custom filtering for particular use cases.

Please note that this is an advanced article requiring a technical skill set. For a more basic understanding of dynamic attributes in Bluecore, click here.

Looking for examples of how to use Jinja in subject lines? Check out this article for some of our suggested use cases.

Getting started

Before adding customer attributes to your email campaigns, be sure to review the data that’s available within your account through the Customer 360 page. You can see the product attributes available within your account through the Product Catalog page. If there is a specific attribute you’d like to use, such as customer first name, last name; please be sure this is included in your Bluecore integration.

Learn more about how to use Jinja in tracking parameters here.

Using invalid Jinja in email templates can cause the template to not render in the summary tab of email campaign building. When adding Jinja to your templates, make sure the template correctly renders before setting the campaign live. If the template preview is not rendering in the campaign summary page, link tracking will not function. Even if proofs render and the campaign sends as expected, link tracking is tied to the template preview. For the entire time the template is invalid, link tracking will be blocked and unrecoverable.

Customer attributes


Campaign attributes


Dynamic product attributes

For the following attributes, be sure to adjust the below templated Jinja syntax to match the blocks, products, etc. within your email. For example, the dynamic attribute of #{{BLOCKNAME.products.0.url}}, the BLOCKNAME should be replaced with the actual name of the block in the email.

The below attributes can be configured to display the most common value (mode) of the products or the value of the first product.

This is only a sampling of the attributes that are available for your account. Please see the Product Details Page within your account for the full list.


Price attributes 

We recommend using the Dynamic Product Blocks in VTE. If you must use an advanced custom code block to display product information, you can use this syntax.


Advanced Jinja filters