Links

MailChimp

1. Start by fetching your url for using product recommendations in emails, the link can be found on the engage platform which is reached using the following link: -> https://engage.zubi.ai/login
The url looks like below,
https://s1.zl.ax/v1/img/[nano_id]/[email]/[id]
The following variables need to be changed when added to your email template,
Parameter
Description
[nano_id]
Your engage nano_id
[email]
Use the notation used by your email service for dynamically set the receiver email address (https://sendgrid.com/docs/ui/sending-email/substitution-and-section-tags/)
[id]
Represents the product recommendation ID, values [0-7] are available to use where the lower ID the higher (better) recommendation score
Note: [nano_id] above represents your "account ID", hence it will always be the same independently of the email service used
2. Set the ID (0-9) of the recommendation to be displayed, note that if the same ID is used for two or more recommendations the same products will be displayed. The lower the number the higher score from the recommendation engine. This means that if three recommendations are going to be displayed in the email three different urls will be used, for example,
3. Add a custom code block to your email template
4. Insert the url from step 2 to get the recommended product as an image including the name and price (if selected when creating the block). In below screenshot the following code is used.
<a href="https://s1.zl.ax/v1/url/4adp/*|EMAIL|*/3"> <img align="center" alt="" src="https://s1.zl.ax/v1/img/4adp/*|EMAIL|*/3" width="164" style="max-width: 300px;padding-left: 12.5px;padding-bottom: 0;display: inline !important;vertical-align: bottom;border: 0;height: auto;outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;" class="mcnImage"> </a>
Note: The above code also adds a product link to the image
Visit this article for examples of recommendation blocks layouts that could be used.
5. Add a link for the button (if used) re-directing the customer to the recommended product in store, by using the href url.
https://s1.zl.ax/v1/url/4adp/*|EMAIL|*/0
The same [id] needs to be used on the image url and the link url otherwise the link and image will not match
  1. 6.
    Add the design parameters to your url (optional)
Note: If fill is being used it is important that the same fill is used in both image and link, otherwise there is a risk that product and link will mismatch.
Below is an example of what the design might look like:
w=300&fill=0&fs=1.5rem+1.25rem&fw=300+400&ff=roboto&color=FF00FF+0000FF&align=center&img=1&title=1&price=1
Combine the above configuration with your unique link for email product recommendations,
https://s1.zl.ax/v1/img/[nano_id]/[email]/0?w=300&fill=0&fs=1.5rem+1.25rem&fw=300+400&
  1. 7.
    Verify the setup and layout by sending a test email