...
Key:
id: the unique identifier of the product as defined in your Product Attributes in the preezie CMS
name: the product name
img: the image url
url: the product url
price: the price shown
score: the match score
age etc. these are custom attributes with a check against Appears in Statistics in Product Attributes in the preezie CMS:
...
Removing old data
Info |
---|
To keep data storage light and not incur any additional Dotdigital charges. We recommend removing all preezie Insight collections data older than 3 months. Please contact Dotdigital to organise this. This process will be automated in 2024, watch this space! |
Create a segment with your data
...
Aura embed | ||
---|---|---|
|
Building emails using preezie data
Now you have your preezie data stored against your contacts you can use Dotdigital’s Liquid markup language to use this as content in your emails.
Here we’ll show how a user’s preezie results email can be dynamically created.
Add products to your email template
Either clone an existing product based email template (e.g. abandoned cart) or create a new one.
Now drag in a Loop component from the Advanced personalisation section:
...
In this component, Select collection > preezie_recommendations hit APPLY
...
Now drag another Loop component into the first loop and choose collection > recommendations. Here you can choose 1/2/3 columns depending on the number of products you want to show in a row on larger devices.
...
These will loop through the contents of the contact’s insight collection data.
Now we’ll add the product details to these loops.
Drag in a Text component and hit the Edit HTML icon in the menu bar:
...
Here you’ll add the HTML around the Liquid markup to show the products, e.g.
<a href="{{recommendations.url}}">
<img src="{{recommendations.img}}" style="max-width: 80%;">
<p>{{recommendations.name}}</p>
<p>${{recommendations.price | round: 2 | divided_by: 100 }}</p>
</a>
The Liquid markup requires the pattern {{recommendations.<name of attribute>}}
plus you can see some additional filters to the price field.
Because my price field in the feed is in cents, I divide by 100 round down and add a $ to change it,
from 3900 to $39
All of the Liquid filters you can use are listed here: https://support.dotdigital.com/en/articles/8198944-filter-liquid-outputs
Here’s a quick guide to the standard variables you can use: