Skip to main content
Solved

Triggered form can only be activated once


Forum|alt.badge.img+3
  • Problem Solver I
  • 12 replies

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.

Best answer by Manny Singh

All good then? It was just a cache issue?

View original
Did this topic or the replies in the thread help you find an answer to your question?

2 replies

Mailbox Manny
Partner - Silver
Forum|alt.badge.img+38
  • Partner - Silver
  • 417 replies
  • Answer
  • August 27, 2022

All good then? It was just a cache issue?


Forum|alt.badge.img+3
  • Author
  • Problem Solver I
  • 12 replies
  • August 28, 2022

Seems so, yes.


Reply