Skip to main content

Add the global script and conversion codes in PrestaShop

The global script and conversion codes allow you to measure JOIN’s contribution to your sales.

Updated this week

Prerequisites

  • Administrator access to the PrestaShop back office.

  • Access to the hosting server (SFTP/SSH) or a Git repository to deploy theme files.

  • Ideally, assistance from your agency or technical team.

Recommendation
Work on a staging environment and back up your theme before making any changes. Prefer using a child theme to avoid overwriting your modifications during updates.


1) Download the theme

  • It is possible to retrieve the PrestaShop theme files.

    1. From the PrestaShop admin panel, go to Appearance ⇒ Theme & Logo → Export the active theme (top right corner).

    2. From the server

    → Retrieve the theme directory directly from the files (e.g., themes/<your_theme>).

2) Modify the Theme

2.1 Identify the template to update


Depending on the target page, locate the appropriate file. Examples for Classic / Hummingbird themes:

themes/<your_theme>/templates/_partials/head.tpl

2.2 Copy/Paste the JOIN code

Once the location is identified, you can follow the generic JOIN integration documentation to add your global script and conversion codes.

3) Deploy and clear the cache

1- Deploy the theme modifications to the server (SFTP/CI).

2- Clear the cache to apply the changes:

Advanced Parameters → Performance → Clear Cache

3- If Smarty compilation is enabled, force a recompilation if needed.

Did this answer your question?