Skip to main content

Installing and connecting the Interaction script

You'll learn what the Interaction script tracks and how a visitor becomes a known profile.

Written by Francine

What the Interaction script is

The Interaction script is a small piece of code you place on your webshop. You copy it from Assets → Data sources → Import.

Once the script is on your shop, it runs on every page a visitor opens.

Installation help per platform

Not sure where to place the code? Follow the instructions for your platform.

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.

What the script tracks

Every visitor gets an anonymous ID, stored in a cookie in the browser. Everything that visitor does is grouped under this ID. The script tracks the following:

  • Page views. Which pages the visitor opens.

  • Clicks. Clicks on links and buttons.

  • Form submissions. When the visitor submits a form, for example a newsletter signup or a checkout step.

  • Purchases. When your shop reports a completed order back to the browser, the script picks this up, including the order number.

  • Recommendations. Which recommendation blocks were shown and which recommended products were clicked.

  • Loyalty and Recommendations active. A signal that these scripts are running, so Reloadify marks the integration as working.

Note: the script does not track what a visitor types into form fields. Email addresses, names, and other input are not stored.


How a visitor becomes a known profile

Two things connect an anonymous visitor to a profile in Reloadify:

  1. Clicking a link in a Reloadify email. Every link carries a reference to that email. Once the visitor lands on the shop, the script recognizes this and connects the visitor to the profile the email was sent to.

  2. Placing an order. Once a day, Reloadify matches tracked purchases to orders imported from your shop. If the order belongs to a known profile, the visitor is connected to it.

From that moment on, both past and future browsing by that visitor is attached to the profile.

What you use this data for

  • Recommendations uses tracked views and clicks to measure how recommendation blocks perform.

  • Loyalty uses the visitor ID to show the right points and rewards to the right person.

  • Autopilot uses page views in its browsing behavior insights.

  • Segments. Want to build an audience based on page views? Read the article Segmenting your audience based on page views.


Frequently asked questions

Does the script slow down my shop?

The script loads in the background and sends data in small batches. The effect on load time is negligible.

What happens if the script is placed twice?

The second copy switches itself off and logs a warning. Nothing is counted twice.

What happens when a profile is deleted?

The tracked data for that profile is removed along with the profile.

Did this answer your question?