Skip to main content

Where insert this code in prestashop?

<script type="text/javascript" src="//static.klaviyo.com/onsite/js/klaviyo.js?company_id=" ></script>

need work popup

thank

Welcome to the community @pttk 

I don’t use Prestashop, but Klaviyo has an integration module for it. More info here: https://help.klaviyo.com/hc/en-us/articles/360054551492

It looks like it’s similar to other integrations: the module should install the Klaviyo.js snippet without having to be manually added to your site’s code.

I hope that helps

Andy


Hi, I have done EVERYTHING that the guides indicate, but I cannot get the "Sign-up forms" to display on my site.
I have checked all the parameters and nothing.

PrestaShop: 8.1.7

PHP: 8.0.30

 

Any ideas?


Hi, when insert this code in index.php  ; 

<script async type="text/javascript" src="https://static.klaviyo.com/onsite/js/Wdx2DK/klaviyo.js"></script>

send error unexpected sintax error “<”

Thank


The correcto code for insert in index.php is :

echo '<script async type="text/javascript" src="https://static.klaviyo.com/onsite/js/klaviyo.js?company_id=Wdx2DK"></script>';

Work fine NOW
 


In Prestashop 8.2 the Klaviyo code in index.php have problem with Presashop scrips, not work something functions.

echo '<script async type="text/javascript" src="https://static.klaviyo.com/onsite/js/klaviyo.js?company_id="xxxxxxxx></script>';
 


Reply