1. Home
  2. Quiz Funnels
  3. Fire Meta Pixel Lead Event on Quiz Submit

Fire Meta Pixel Lead Event on Quiz Submit

When a user submits your Landerlab quiz, Meta Pixel will fire a Lead event. This is ideal for affiliate + lead-gen tracking because it captures high-intent conversions (not just clicks).

Open your Quiz in Landerlab

Navigate to Landing Pages

Open the landing page that contains your Quiz.

Click Edit to the quiz to open the quiz builder.

Install Meta Pixel (required)

Before anything else, your page must already have the Meta Pixel base code installed so the fbq function exists.

Go to the “JS Code” section

  1. In the quiz builder, locate JS Code
  2. Click it
  3. Delete any existing code in this section (to avoid conflicts / double firing)

Do NOT add <script> or </script> tags here.
Paste only JavaScript.

Paste the Meta Pixel submit script

Paste this code into the JS Code tab:

// Meta Pixel: fire Lead on quiz submit (with double-fire protection)
  window.addEventListener("ll-quiz-submit", function () {
    if (typeof fbq === "function") {
      fbq("track", "Lead");
    }
  });

What this does:

  • Listens for the quiz submit event (ll-quiz-submit)
  • Fires Meta Pixel Lead
  • Prevents accidental double firing

Save & Publish

  1. Click Update (top right)
  2. Click Preview and complete the quiz once to test
  3. Publish your page/funnel if required in your workflow

Verify Meta Pixel is firing

Choose one method:

  1. Install the Meta Pixel Helper Chrome extension
  2. Open your quiz page
  3. Complete the quiz and submit
  4. Confirm you see a Lead event fire

Option B — Meta Events Manager

  1. Open Events Manager in Meta
  2. Go to Test Events
  3. Open your quiz page from the test link
  4. Submit the quiz
  5. Look for the Lead event (may take a moment)

Common issues & fixes

Lead doesn’t fire

  • Meta Pixel base code isn’t installed → complete Step 1 first
  • Code added with <script> tags → remove tags
  • Code placed in the wrong area → ensure it’s in Quiz → JS Code

Lead fires twice

  • Keep only one Lead listener active
  • Make sure you didn’t add the same script in:
  • the page header AND quiz JS Code AND a global script area
Updated on February 13, 2026
Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for? Don't worry we're here to help!
CONTACT SUPPORT