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.
Need help implementing the script?
WooCommerce
Go to the admin panel of your WordPress site and follow these steps:
Navigate to Appearance > Theme Editor (or use a child theme).
Open the
footer.php
file.Add the script right before the closing
</body>
tag.Save the changes.
Shopware
Use a child theme of your active template.
Add the script to
footer.tpl
orbase.html.twig
, right before</body>
.Clear the cache in the Shopware admin panel after adding the script.
Magento 2
Go to the admin panel or use FTP/SSH access.
Add the script to
default_head_blocks.xml
or via a custom module/layout:Place it in:
app/design/frontend/Vendor/theme/Magento_Theme/layout/default_head_blocks.xml
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=YOURID" src_type="url" /> </head> </page>
Redeploy static content and clear the cache.
Lightspeed eCom (C‑Series)
Log in to your Lightspeed back office.
Go to Settings > Website Settings > Web Extras.
You have two options for adding scripts:
Custom JavaScript: added just before the closing
</body>
tag.Custom Head Code: added inside the
<head>
section (useful for trackers or tags).
Choose Custom JavaScript and paste the script like this:
<script src="https://app.reloadify.com/assets/popup.js?reloadify_account_id=..."></script>
Save. The script will now load on all pages, just before
</body>
.
Shopify
Go to Admin → Online Store → Themes → Actions → Edit Code.
Under the Layout folder, open the
theme.liquid
file.Look for the closing
</body>
tag and insert your script before it, for example:<script src="https://app.reloadify.com/assets/popup.js?reloadify_account_id=..."></script>
Save the changes.
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).
Now save the location. You are now ready to create a recommendation feed.