Solved

Issues with Embed Form on Shopify page

  • 22 June 2022
  • 1 reply
  • 240 views

Badge +1

Hello,

 

I am having issues with an embeded form.   I have added the following code to my Shopify page:

 

<div class="klaviyo-form-VDG3KJ"></div>

<button class="klaviyo_form_trigger">Click here</button>
<script type="text/javascript">
 
  document.querySelector('klaviyo_form_trigger').addEventListener('click', function (){
        window._klOnsite = window._klOnsite || [];
        window._klOnsite.push(['openForm', 'klaviyo-form-VDG3KJ']);
    });
</script>

 

But the button is not triggering the form to load.  

 

My other form is working, which should be turned off for the test page:  https://buriedtreasureln.com/pages/chlorophyll-smell-better

 

Any suggestions are appreciated! 

 

Thanks

 

MatthewD

 

 

icon

Best answer by alex.hong 23 June 2022, 02:23

View original

1 reply

Userlevel 7
Badge +58

Hi @Matthewod,

Thanks for posting to the Community.

Considering the fact that embedded forms and the Shopify integration can have a variety of variables that might cause issues, I will just recommend some places to check. You can let us know here on the Community where the issue was or if it was none of them as well. If you have not already, I feel like connecting with our support team would be a good idea as they can go into your individual account and have a deeper dive into what might be causing the problem.

 

Hopefully those can get you in some direction. I would also recommend checking to see if your integration is not broken and that all syntax is correct when working with your Shopify site.

 

Thanks!
Alex

Reply