We’re trying to embed a sign up form on a wix site, with no success. Has anyone successfully completed this?
Wix Embed issue
Best answer by Byrne C
Hey
Embed forms are a little tougher to get working in Wix, as you’ve found out by now! This happens because Wix uses iFrames to add custom HTML, and iFrames act like their own browser, ignoring our onsite javascript (which is needed for forms to appear), which is located in the <head> element of the site.
In short, you’re likely embedding your form in a place that can’t see Klaviyo’s code. The solution here is to add Klaviyo’s onsite javascript again, this time, directly into the iFrame where you added the embed form code.
This is the javascript you’d add, just above the embed form code, inside the iFrame:
<script async type="text/javascript" src="//static.klaviyo.com/onsite/js/klaviyo.js?company_id=PUBLIC_API_KEY"></script>Replace PUBLIC_API_KEY with your public API key.
Note that when you do this, any other popup forms you have will load inside this iFrame.
If you wanted to avoid using iFrames altogether, you could use another Wix plugin that allows you to add HTML without iFrames. This is a good option.
Feel free to let me know if I can answer any more questions about this, or if anything else comes up. Happy to do so!
Log in to the Community
Use your Klaviyo credentials
Log in with Klaviyo
Use your Klaviyo credentials
Log in with KlaviyoEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.

