Skip to main content

EDIT: Hmm - seemt it was a cache issue. Sorry.

I have a problem with the triggered popup.

I followed the guide from Klaviyo and added this to my page:

<div class="productmessage klaviyo_form_trigger" style="cursor: pointer;" onClick="ga('send', 'event', 'productmessage', 'klaviyo-popup');">Få 7% rabat - klik her</div>
  <script type="text/javascript">
    document.querySelector('.klaviyo_form_trigger').addEventListener('click', function (){
        window._klOnsite = window._klOnsite || l]; 
        window._klOnsite.push(o'openForm', 'T463mS']);
    });
</script>

It works fine the first time I click.

But when I then close the pop-up and click the link again - nothing happens.

All good then? It was just a cache issue?


Seems so, yes.


Reply