INSTALLATION
The steps to install the Webyn PrestaShop plugin
01.
Access your PrestaShop store files, either via your Back Office or via FTP/SFTP.
02.
Open your active theme directory.
03.
In this theme, locate and open the header file:
/themes/your_theme/templates/_partials/head.tpl

04.
Copy/paste the Webyn script just before the closing </head> tag:
<script>
var webynTag = document.createElement('script');
webynTag.src = 'https://files.webyn.ai/webyn.min.js?apiKey={{CLIENT_ID}}';
webynTag.async = 1;
document.getElementsByTagName('head')[0].appendChild(webynTag);
</script>
05.
Replace <YOUR_CLIENT_ID> with your Webyn client ID.
06.
Save your changes.
07.
From the PrestaShop Back Office, clear the cache to apply the change across all pages of the site.
Alternative: via a Custom JS module
You can also insert the Webyn script directly from the PrestaShop interface using a custom JavaScript module. This method avoids any modification of theme files.
We recommend consulting our PrestaShop A/B testing guide.
