Email with a promotion for products in the customer’s size

Collect customer data which can be helpful in creating more advanced personalization. After a customer purchase, collect data about his size and save it in the customer’s profile. You can send the customer information about the discount, directing it to the list of products in the customer’s size (based on the product he bought recently). Based on this knowledge, you can send personalized campaigns and help your customers find best products in easy way.

Example of use - Retail industry


A client from the retail industry decided to increase the personalization of their campaigns. Using aggregates, he found the size of the individual customer’s last purchased product to prepare a special offer. When the customer made a purchase, he would add the size he was interested in to the system, and in subsequent mailings would receive a personalized messages with a link to the products of the selected size.

  • Email campaign contained the size of the client’s shoes in the subject of the message: Check before they disappear! Shoes in size 39,
  • It was directed to a listing with dynamically filtered sizes based on the same aggregate.

Other customers who have not made any transaction so far, received a general email with the promotion and all available sizes, and they could specify which they are interested in.

In this way, 2 groups of customers received an email with the same promotion, but with a completely different message.

Screenshot presenting ab tests


  • Open rate 21,64% for emails with the personalized size in the title,
  • Open rate 12,94% for emails without personalized size.

The customer had 10% more transactions from emails in which he indicated a specific customer size.

How to do it

  1. Prepare the aggregate containing the size of the last “product_buy” event.

  2. Add this aggregate to the subject of the message using insert:

    {% aggregate 1872106808667667%} Check before they disappear! Shoes in {{aggregate_result [0] | float | round (0)}} {% endaggregate%}
  3. Add the size range to the link in the email, referring to the aggregate created and using jinjava. Describe the aggregate and specify the size variable:

    {% set size = [] %}
    {% set m = -1 %}
    {% aggregate 1872106808667667 %}
    {% if size.append(aggregate_result[0]|float|round(0)) %}{% endif %}
    {% endaggregate %}
  4. Add a variable to the link, and using the filter “add” complete the size range. Remember about UTMm!

This use case belongs to the following categories:




We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.



Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.