Skip to main content

Installation guide

5 min · Intermediate

Install BackToMe on PrestaShop.

Follow the path for PrestaShop, paste your tag and then check its detection. Paste the tag into your theme’s head.tpl file, or via a code-injection module.

Installation

Before copying the tag.

Check the required access, then use the location shown for your platform.

Prerequisites

  • A PrestaShop 1.7, 8.x or 9.x store (versions 1.6 and earlier work but are no longer maintained and have a different file structure)
  • Administrator access to your back office (SuperAdmin profile)
  • Access to the theme files (FTP, SFTP or your host’s file manager), or the ability to install a module

Location in PrestaShop

Reliable method: paste the tag into the theme’s head.tpl, just before </head>. File-free alternative: a code-injection module.

  1. 01By file (reliable, all versions): connect to your theme files via FTP, SFTP or your host’s file manager
  2. 02Open themes/[your-theme]/templates/_partials/head.tpl (default theme: themes/classic/). Make sure it is head.tpl, which contains the <head>, not to be confused with header.tpl (the visible header: logo, menu, basket)
  3. 03Paste the BackToMe tag just before the </head> tag, then save the file
  4. 04Clear the cache: back office, Advanced Parameters > Performance > Clear cache
  5. 05File-free alternative: install a code-injection module (a 'Custom Code' type), paste the line into its header (head) field, then save. Check its compatibility first: free modules do not always keep up with PrestaShop 8 and 9

Copy your BackToMe tag

Replace YOUR_ID with the shop identifier shown in your account.

Save and publish

The change must be published on the version your customers actually see.

Tag to copy into the <head>

<script async src="https://backtome.fr/widget.js" data-site="YOUR_ID"></script>

Over time

What removes the button from a PrestaShop shop

An update or theme change can remove a script that worked until then.

  • A theme update that rewrites head.tpl and wipes the change.
  • Cache not cleared after a change: the old output keeps being served.
  • A template override taking back control of the file you edited.

BackToMe tracks the last signal received

The dashboard shows the tag’s last detection. If the button disappears, you have a precise starting point for checking the shop.

Verification

Check the published shop.

Do not stop at the editor’s confirmation. Open the public site and check what is actually loaded.

Expected result

The status changes to Detected in BackToMe and the button appears on the public shop.

  1. 01Open a private window.
  2. 02Load a public page of the shop.
  3. 03Check the button position and label.
  4. 04Open the form without submitting a real request.

After the click

Every request joins a verifiable case.

BackToMe records the request, sends the acknowledgement and keeps the information needed for tracking. The certificate states exactly what can be checked.

Understand the certificate

Troubleshooting

The most common blockers.

Every answer can be closed and used from the keyboard.
head.tpl and header.tpl: do not confuse them
The </head> tag is in themes/[your-theme]/templates/_partials/head.tpl. The header.tpl file, on the other hand, contains the page’s visible header (logo, menu, basket): pasting the tag there would not inject it into the <head>. Be sure to edit head.tpl.
Clear the cache after every change
PrestaShop aggressively caches compiled templates (.tpl). Without clearing the cache, your tag will not appear even if the file is correct. The 'Clear cache' button is under Advanced Parameters > Performance, top right.
Default theme: watch out for updates
Editing the Classic theme’s head.tpl directly works, but your line can be overwritten during a theme update. For a production shop, prefer a child theme or the module method, which survive updates.
An overly strict CSP blocks the button
If a security module enforces a Content-Security-Policy, allow https://backtome.fr in script-src and the requests to the api subdomain in connect-src, otherwise the browser blocks the script from loading.
The button does not appear after publishing
Open the PrestaShop shop in a private window. Then check the published theme, tag identifier and its position in the head.
The status remains Not detected
The tag reports when a public page loads it. Visit the published shop in a private window, then refresh the status in BackToMe.
The form does not open
Test without browser extensions. Also check the CSP policy and any tool that blocks third-party scripts.
Can I give the installation to my developer?
Yes. Send them the tag and this guide. They do not need access to your account to add the line to the site.

Still stuck? Contact us with the shop URL and a screenshot.

One injection module, and PrestaShop is compliant.