Guides and articles » Upsell functions » Get started with Clerk.io

Get started with Clerk.io


Clerk.io offers a variety of services that can be implemented in different places in your webshop. Some are plug-n-play while others require some manual setup.

It is recommended that you consult with your Clerk.io contact to get started properly. It is also recommended that you use the "Getting Started" wizard at Clerk.io, as it will create the correct IDs for your content blocks.

API

Set up API linking by logging in to Clerk.io and going to "Settings > API Keys". Here you will find your two API keys, which you need to enter in the webshop administration under "Settings > Integrations > Clerk.io".

Data feed

Set up your data feed in Clerk.io by going to "Data" in the left menu. In the "Sync Method" option, select "Clerk.io JSON Feed".

Now you can retrieve your feed URL in the online shop administration and insert it in Clerk.io. Note that you need to add parameters to your feed to include all data. For example:

https://www.ditnavn.dk/feeds/clerk_io_feed.json?orders=10000&products=10000&categories=1000

After you have imported all the data once in Clerk, you can change the order number to save on the transfer. You only need to transfer an order once, so an order number of 20 will be fine in most cases.

https://www.ditnavn.dk/feeds/clerk_io_feed.json?orders=20&products=10000&categories=1000

Content blocks for recommendations

In the Online Shop administration, you can enable product suggestions on product pages and in the basket.



What they all have in common is that content blocks must be created in Clerk.io for it to work.

These are the following content blocks:

products-page-alternatives
products-page-others-also-bought
cart-alternatives
cart-others-also-bought

All blocks can be created by logging in to Clerk.io and going to "Recommendations > Content". It is recommended that you use the "Getting Started" wizard in Clerk.io as it will generate the correct IDs for your content blocks.

More information can be found in the Clerk .iodocumentation.

Insert recommendations via page sections

It is possible to insert Clerk.io recommendation blocks manually via page sections. It is recommended to do this via the section type "Text" where you should make sure to switch to HTML editing.

Firstly, find the HTML code from your Clerk.io content block and paste it into your page section. Below the HTML code, add a javascript to enable the sideload function. Here is the complete code, where the first part is the code you need to get from Clerk.io:

<span class="clerk"
  data-template="@top-selling"
></span>

<script>Clerk("content",".clerk");</script>


This video shows how to do it.



If you need to insert a code on all pages (for example, if it's a popup code), you can do so by searching for "html" and going to the "Insert custom HTML/CSS/JS code" option.


Copyright © 2022 ideal.shop. All Rights Reserved.