Skip to main content
Solved

Issues with Embed Form on Shopify page

  • June 22, 2022
  • 1 reply
  • 331 views

Forum|alt.badge.img+3

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

 

 

Best answer by alex.hong

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

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

1 reply

alex.hong
Forum|alt.badge.img+58
  • Klaviyo Alum
  • 1552 replies
  • Answer
  • June 23, 2022

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