Email with a promotion for products in the customers' size

Published September 23, 2019

Reuse the collected data about your customers in order to send personalized communication and help your customers find the best products for them. For this purpose you can use the size of a customer (you can collect it through transactions events) and send a message to the customers with the link to the discounted products in their size.

Example of use - Retail industry

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

  • Email communication contained the size of the customer’s shoes in the subject of the message: Check before they disappear! Shoes in size 39.
  • The email contained a link to a listing with the sizes adjusted to size of every individual customer.

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 email with promotion
Email with a promotion based on a customer's size


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

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


To be able to implement this use case, you must:


To prepare an email with a promotion for the products in the customers’ size, perform the following steps:

  1. Prepare an aggregate.
  2. Configure email communication.

Prepare an aggregate

Prepare the aggregate with the size of the last bought product.

  1. To do it, create new aggregate.
  2. Then choose the Last type, select event, and specify the size parameter.
Note: The name of the size parameter can be different for every Synerise user - check the name of the size parameter you use in the transaction events.
Screenshot presenting aggregate conditions
Aggregate conditions
Tip: In Synerise every transaction.charge event generates additionally event, which store information about particular product which was bought – that’s why in this use case we can use size parameter from such event.

Configure email communication

For this scenario, you have to configure an email message which will use the aggregate you prepared in the previous step. To configure the email communication you have to define the audience, create the content and set up the final settings.

Define Audience of email communication

Selecting the right audience is a necessary step of preparing an email.

  1. Prepare such segment in segmentation or create new segment directly in the email message.
  2. Choose users who will get email.
Note: In this use case our client wanted to send email to every user, who has ever made a transaction so such segment should contain of transaction.charge event which occured in lifetime period.
Screenshot with define audience mode
Define audience

Create content

After you selected the audience, create the content of your email message.

Important: In this example, you can create email for 2 groups of customers. One for customers who have made the transaction, and second for customers who have not made the transaction with the promotion and available sizes. We will provide you with the first scenario and the second you can made by using email instruction.
  1. At the beginning, select the email account from which the email will be sent.
  2. In the Email subject field the enter the aggregate. For example:
      {% aggregate a1872106808667667%} Check before they disappear! Shoes in size {{aggregate_result [0] | float | round (0)}} {% endaggregate%}
    As a result, customer will see: Check before they disappear! Shoes in size [size number of the customer].
  3. To create the content of the email, click Create message. In the email template include the Jinajava code that contains the link to the listing of products in the customers’ size:
Check the Jinjava code


<!-- Opening the tag that retrieves the value from the aggregate prepared in point 1--> {% aggregate xxx %}  

<!--Creating link to website with params to filter to client's size, link below is only an example -->  

{% set link = ""+aggregate_result[0] %}  

<!--Adding Synerise tracking parameters --> 

<a href="{% preparelink %}{{link}}{% endpreparelink%}">  

<!-- Adding yours banner link --> <img src="your_image.jpg" /> </a> 

<!--Closing of the tag that gets the value from the aggregate prepared in point 1 --> {% endaggregate %} 

Screenshot present creating aggregate
Create aggregate

Prepare the final settings

  1. Add the title of the email.
  2. In the Schedule tab, decide when your email is sent.
  3. In the UTM & URL parameters section, add the parameters to track the email performance.
  4. Send tests of your message to verify if the content of the email is displayed correctly.
Screenshot with final setings
Set up settings page
Tip: Test message can only be sent when the email has a title.

Read more


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.

Close modal icon Placeholder alt for modal to satisfy link checker