Skip to main content
Problem Solver I
May 25, 2024
Solved

PRESTASHOP integration

  • May 25, 2024
  • 5 replies
  • 238 views

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

    This topic has been closed for replies.
    Best answer by bluesnapper

    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

    5 replies

    bluesnapper
    Partner
    Champion & Partner
    May 27, 2024

    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

    https://bluesnapper.com - Klaviyo Champion '24 & Partner
    pttkAuthor
    Problem Solver I
    September 24, 2024

    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?

    pttkAuthor
    Problem Solver I
    October 30, 2024

    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

    pttkAuthor
    Problem Solver I
    October 30, 2024

    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
     

    pttkAuthor
    Problem Solver I
    November 11, 2024

    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>';