Skip to main content

How to connect the pop-up module?

This article tells you how to connect the pop-up module to your shop.

Carola avatar
Written by Carola
Updated over a week ago

With Reloadify's pop-up functionality, you collect e-mail addresses from website visitors who have not yet made a purchase. A common method is to offer website visitors a discount in exchange for their email address.

In this article you will read how to activate the pop-up module in Reloadify.

Connecting the pop-up module

Before you can create a pop-up, you need to enable the pop-up module. To display the pop-up on your shop, you need code on your website.

  1. In Reloadify, go to Data sources > Import.

  2. Behind Popup, click on the three dots and choose Show script.

  3. A script will appear. Copy the script and paste it into your webshop's code (preferably under existing scripts). It depends on the webshop whether the code should be in the head or body.

Is your webshop running on Lightspeed? Then the script is automatically placed on your webshop. All you have to do is connect the pop-up module (step 1 + step 2).

Do you notice that your website seems slower after connecting a pop-up? In that case, you can add Async or Defer to your pop-up yourself.

Async and defer both load JavaScript asynchronously without render blocking. This ensures that the pop-up can be downloaded at the same time as the rest of the page.

  • Async is executed as quickly as possible. This means that as soon as the page is downloaded, the pop-up is displayed.

  • Defer waits for the page to be parsed. After that, the pop-up is shown.

You do this by adding “async” or “defer” to the pop-up script. For example:

<script src=“your-reloadify-script” async></script>

WooCommerce

Go to the admin panel of your WordPress site and follow these steps:

  1. Navigate to Appearance > Theme Editor (or use a child theme).

  2. Open the footer.php file.

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

  4. Save the changes.

Shopware

  1. Use a child theme of your active template.

  2. Add the script to footer.tpl or base.html.twig, right before </body>.

  3. Clear the cache in the Shopware admin panel after adding the script.

Magento 2

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

  2. 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>
  3. Redeploy static content and clear the cache.

Lightspeed eCom (C‑Series)

  1. Log in to your Lightspeed back office.

  2. Go to Settings > Website Settings > Web Extras.

  3. 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).

  4. Choose Custom JavaScript and paste the loyalty script like this:

    <script src="https://app.reloadify.com/assets/popup.js?reloadify_account_id=..."></script>
  5. Save. The script will now load on all pages, just before </body>.

Shopify

  1. Go to Admin → Online Store → Themes → Actions → Edit Code.

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

  3. 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>
  4. Save the changes.

Did this answer your question?