Skip to main content

How do I connect the recommendations module?

This article tells you how to activate the recommendations module in Reloadify.

Written by Carola

With Reloadify's recommendations module, Reloadify loads recommended products onto your website. In this article, you will learn how to activate the recommendation module in Reloadify.

Connecting the recommendations module

Before you can make a recommendation, you need to activate the module. To display the recommendations on your webshop, you need a code on your website.

In Reloadify, go to ‘Recommendations’. You will see the following message:

Click on ‘Complete setup’.

You will now see the following screen:

Step 1. Add the recommendations script

Add the recommendations script to the back end of your website. You can do this in the same way as adding the pop-up script. Copy and paste the script into the code of your webshop (preferably under existing scripts). Whether the code should be placed in the head or body depends on your webshop.

Step 2. Add the tracking script

Add the tracking script to the back end of your website. You can do this in the same way as adding the pop-up script. Copy and paste the script into the code of your webshop (preferably under existing scripts). Whether the code should be placed in the head or body depends on your webshop.

Note: It may take a while for Reloadify to find the script on your website. We do not validate it until we have actually received data through the scripts.

Have you added the scripts? The scripts can always be found under ‘Data sources’ and then ‘Import’.

Need help implementing the script?

WooCommerce

  1. In WordPress, go to Appearance > Theme Editor (or use a child theme).

  2. Open the footer.php file.

  3. Paste the script right before the closing </body> tag.

  4. Click Update File.

Shopware

  1. Use a child theme of your active template.

  2. Open footer.tpl or base.html.twig.

  3. Paste the script right before the closing </body> tag.

  4. Clear the cache in the Shopware admin panel.

Magento 2

  1. Go to the admin panel or use FTP/SSH.

  2. Open default_head_blocks.xml (for example in app/design/frontend/Vendor/theme/Magento_Theme/layout/). If this file does not exist yet, create it.

  3. Add the script inside the <head> section.

  4. Example:

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">   <head>     <script src="https://app.reloadify.com/assets/popup.js?reloadify_account_id=YOURSCRIPT" src_type="url" />   </head> </page>

Redeploy the static content and clear the cache.

Lightspeed eCom (C-Series)

  1. In the backoffice, go to Settings > Website Settings > Web Extras.

  2. Choose Custom JavaScript.

  3. Paste the script here.

  4. Example: <script src="https://app.reloadify.com/assets/popup.js?reloadify_account_id=YOURSCRIPT"></script>

  5. Click Save.

Shopify

  1. Go to Online Store > Themes > Actions > Edit Code.

  2. In the Layout folder, open the theme.liquid file.

  3. Find the </body> tag and paste your script directly above it.

  4. Click Save.


Step 3. Choose a location for the recommendation feed

In this step, you choose a location on your website where the feed will appear. Click on ‘choose location’. You will now be redirected to your own website. At the bottom right, you will see the following:

​

Now click on ‘start’. You can now choose a location by hovering your mouse over the website. When you click with your mouse, the location is fixed.

Next, give the location a name (for yourself) and choose what type of page it is (a product page or the checkout).

Important: We do not support displaying recommendations on the homepage. Choose specifically for a product page or the checkout.

Now save the location. You are now ready to create a recommendation feed.

Did this answer your question?