How to add a LeadForms quiz to your website

Just two steps
1
step
Copy the LeadForms code
Build your quiz and, in the editor, open the “Publish” tab → “On website” → the “Site code” block. Copy the code: it’s one code for your whole website, and it loads all your quizzes and widgets. The same code is in “Projects” → your website → the “Code & check” tab.
CTRL-C
2
step
Paste the code into your website
Paste the code once on every page of your website, right before the closing </body> tag. Where and how the quiz appears is set in “Publish”: choose the options and click the “Publish” button at the bottom of the tab. You don’t need to touch the code on your website for that, or for your next quizzes and widgets.
CTRL-V
+

If the quiz is already on your website with the old code, it keeps working, but the new display options and widgets only come with the new code. The “Migration guide” in your account shows what to replace.

customization
Want to use your own button?
Set the link of any button on your website to "#leadforms-ID"
(where ID is your quiz number). Clicking it opens the quiz. In “Publish” → “On website” this option is called “Your website’s links and buttons”.

Still have questions? Write to us

Name *
* Required field
Email *
* Required field
Message
Write to us!
We reply within 30 seconds