Skip to main content

How to Embed Your Quiz into Leadpages

This article describes how to embed your Interact quiz into your Leadpages landing page.

Written by Damaris Pacheco

This guide walks you through embedding an Interact quiz directly onto a Leadpages page.

You’ll be able to:

  • Embed your quiz inline on a page

  • Control where the quiz appears on the page

  • Confirm the quiz loads correctly on your live site


Before you start

Make sure you have the following:

  • An active Interact account

  • At least one created quiz in Interact

  • Your quiz is published in Interact

  • Access to edit your Leadpages landing page

💡 Note: If you don’t see the quiz immediately after adding the embed code, Save your changes and use Preview to confirm the quiz is showing.


Step 1. Get your Interact Direct Embed code

  1. Log in to Interact.

  2. Locate the quiz you want to embed.

  3. Click the Share & Embed tab.

  4. Click Embed Code.

  5. Click the Javascript tab.

  6. Under Embed Options:

    • Toggle on Auto-resize embed to fit quiz content

    • Toggle on Use custom embed size, then set the width to 1,500

  7. Click Copy Code.

❗ Important: Always copy the embed code from the quiz’s Share & Embed tab (not from the browser address bar URL).


Step 2. Add the Embed Code to Leadpages

You’ll paste your Interact embed code into Leadpages where you want the quiz to appear.

Embed on a Leadpages landing page

  1. Log in to Leadpages.

  2. Open the landing page you want to add the quiz to.

  3. In the page builder, click the + icon

  4. Click Embed

  5. Paste your Interact embed code into the box.

  6. In the code you pasted, find the first <div and update it so it starts like this: <div align="center" (this centers the quiz across devices).

  7. Click Drop on page.

  8. Click Preview to confirm the quiz loads.

💡 Note: If you forget to add align="center" to the opening <div, your quiz may not appear centered on all screen sizes.


Step 3. View the quiz on live page

  1. In Leadpages, click Save.

  2. Click Preview and confirm the quiz loads.

💡 Tip: If you don’t see the quiz while editing, this is expected in many cases—check the saved/preview version of the page.


Step 4. Test the Embed

Confirm the quiz works end-to-end on your Leadpages page.

  1. Load the page where you embedded the quiz.

  2. Take the quiz as a visitor would.

  3. If your quiz includes an opt-in form, submit the form to confirm it appears and can be completed.

⚠️ Warning: If you’re testing an opt-in form, use a real email you can access so you can verify follow-up emails (if you have them enabled).


Step 5. Publish your Leadpages changes

Leadpages changes won’t be visible to visitors until they’re saved and your page is publicly accessible.

  1. In the page editor, click Save.

  2. Make sure your landing page is published (and not hidden or restricted).

❗ Important: If you embed the quiz but don’t Save and Publish, the quiz won’t appear for visitors.


FAQs

Why can’t I see the quiz in the Leadpages editor?

  • Some embeds may not render while you’re editing. Click Save, then use Preview to confirm the quiz is loading.

Do I need to update the embed code when I edit my quiz?

  • Usually, no. In most cases you can keep the same embed code, but you must Publish your quiz in Interact for changes to appear on your embedded version.

How can I replace what quiz is shown in the embed?

  • If you want a different quiz to appear in the same spot, swap the embed code.

    1. In Interact, open the new quiz you want to embed.

    2. Go to Share & EmbedEmbed CodeJavascript and click Copy Code.

    3. In Leadpages, open the page and click the <HTML> widget you used.

    4. Click the pencil icon to edit it.

    5. Replace the existing code with the new embed code.

    6. Click Save, then Publish.


Make a quiz in 2 minutes with AI

Did this answer your question?