The Clerk.io Developer Hub

Welcome to the Clerk.io developer hub. You'll find comprehensive guides and documentation to help you start working with Clerk.io as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

Mailchimp

How to setup email recommendations in Mailchimp

Before you start!

Make sure that you have made the initial integration on the webshop so that Clerk.io is synced with your product catalog and order history.

1. Creating an Email Template

  1. In my.clerk.io, go to Templates.
  2. Click New Template and give it a name.
  3. Choose Email, and optionally, pick either a starting template.
  4. Style the email template to your liking.
  5. Click Update Template.
  6. Go to Content, and create a new Content block.
  7. Choose the type of email recommendations you want to show and click Update Content.

2. Getting the Embedcode

  1. Choose Mailchimp in the first dialog box.
  2. Click Copy Embed Code To Clipboard on the Content page.

Optional fields

  1. Website URL should be input if you are not sending the entire domain in the product URLs.
  2. Campaign Tracking Code should only be input if you have a GA tracking code that you want to use with the recommendations.

3. Embedding the Recommendations in Mailchimp

  1. In Mailchimp, go to Templates.
  2. Click Edit the template that you want to insert your email recommendations in.
  3. Drag a Code Block to the part of the template where you want recommendations to be shown.
  4. Paste the embedcode into the editor.

4. Styling the Recommendations

  1. Open a text-editor, and insert your embedcode.
  2. Save the file as a .html file, for example test.html.
  3. Open your file in a browser to see the results generated.
  4. In my.clerk.io go to the template page of the email recommendations that you have created.
  5. Style the recommendations HTML structure in Edit Product Code, and its CSS styling in Edit CSS Code. You can also change the height and width of each product box on the template page.
  6. Click Update Template and refresh the browser in the tab that you opened your file.
  7. Repeat until your styling looks the way you want it to.

Mailchimp

How to setup email recommendations in Mailchimp