Solved

Triggered form can only be activated once

  • 27 August 2022
  • 2 replies
  • 34 views

Userlevel 1
Badge +3

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 || []; 
        window._klOnsite.push(['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.

icon

Best answer by Manny Singh 28 August 2022, 01:18

View original

2 replies

Userlevel 7
Badge +38

All good then? It was just a cache issue?

Userlevel 1
Badge +3

Seems so, yes.

Reply