Back to Help
email design

Using arrays in your email

Vero allows you to refer to properties stored against a customer using the Liquid templating language, these are commonly referred to as merge tags: ``

Likewise, if you track a property with an event, you can reference it with: ``

However there are many cases where you will want to use complex data, such as an array of products, in your outgoing emails.

Passing the array

If you were to track the following:

You could referrnce the array in your email using Liquid templating as follows:

{% for product in event.products %}
  {{product.name}}: ${{product.price}}
{% endfor %}

Note: that you can store arrays as both customer and event-level properties.

Didn't find what you were looking for?

Get in touch, we're always happy to help. Email us at: support@getvero.com

Improve our docs

Our help docs are open to everyone, help us make them better by contributing on Github and you'll be our new best friend!

Search