Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Double-submit creating duplicate leads or orders: how to fix it

PRF-136Medium impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

A double-submit is when the same form is sent more than once by the same person within a few seconds. It can be a double click, a tap on a slow phone, pressing Enter and then clicking, or the browser retrying after a timeout.

The page treats each send as a new request. Your CRM gets two identical contacts, your shop creates two orders, and your tracking tags may fire twice.

How one visitor creates two leads
  1. Visitor clicks SubmitFirst request sent
  2. Page shows no changeButton stays active, no spinner
  3. Visitor clicks againSecond identical request
  4. Duplicate lead or orderTwo records and two conversions

The first click works. The second click sends a duplicate before the page reacts.

Why it costs you leads or sales

Duplicates look harmless, but they cause real costs. Sales teams call the same person twice. Customers are charged twice or get two confirmation emails and lose trust. Refunds and clean-up take time.

Reporting also suffers. If a conversion tag fires twice, Google Ads, Meta or GA4 count two conversions. Bidding algorithms then learn from inflated data, and your cost per lead looks better than it is.

Reported vs real leadsExample numbers
Reported vs real leads (example)Real people: 100 leads; Leads in CRM: 112 leads; Conversions in ad platform: 112 leads04386100112112Real peopleLeads in CRMConversions in ad pla…leads

Example: 100 real people submit, 12 of them submit twice. The CRM and ad platform both show 112.

How to check if your site has it

Test for double-submit by hand
  1. Look for duplicates in your data

    Export recent leads or orders and sort by email address and time. Two rows with the same email within a few seconds are a strong sign.

  2. Double-click the submit button

    On a test version of the form, click submit twice quickly. Use a test email so you can spot the copies.

  3. Throttle the network

    In Chrome DevTools, open the Network tab, set throttling to Slow 4G, then submit. Slow responses are when people click again.

  4. Watch the requests

    In the Network tab, count the POST requests sent. Two means the form is not protected.

  5. Check your tags

    Use Google Tag Assistant or the GA4 DebugView to see if the conversion event fires twice.

How to fix it

Use three layers. The button fix stops most cases. The one-time key and server check catch the rest, including retries and refreshes.

Fix double-submit in three layers
  1. Disable the button on submit

    Set the button to disabled and show a loading label as soon as the form is submitted. Re-enable it only if the request fails.

  2. Guard against repeat events in code

    Keep a flag such as isSubmitting and ignore any submit event while it is true. This also covers Enter key presses.

  3. Send a one-time key

    Generate a unique ID when the form loads and send it with the request. The server stores it and refuses a second request with the same ID.

  4. De-duplicate on the server

    For leads, match on email plus form ID within a short window and update instead of inserting. For orders, use your payment provider's idempotency feature.

  5. Fire conversion tags once

    Trigger the conversion tag on the confirmation page or success event only, and avoid firing on the click itself.

Block repeat submits in the browserjavascript
const form = document.querySelector('#lead-form');
let isSubmitting = false;

form.addEventListener('submit', async (e) => {
  e.preventDefault();
  if (isSubmitting) return;
  isSubmitting = true;

  const button = form.querySelector('[type="submit"]');
  button.disabled = true;
  button.textContent = 'Sending...';

  try {
    const res = await fetch(form.action, {
      method: 'POST',
      body: new FormData(form),
      headers: { 'Idempotency-Key': form.dataset.key }
    });
    if (!res.ok) throw new Error('Request failed');
    window.location.href = '/thank-you';
  } catch (err) {
    isSubmitting = false;
    button.disabled = false;
    button.textContent = 'Try again';
  }
});

// Set a unique key when the page loads
form.dataset.key = crypto.randomUUID();
Where to apply it on each platform
  1. Check your form plugin settings

    Many form plugins have an option to disable the submit button after click or to prevent duplicate entries. Look in the form's settings or the plugin's general settings and turn it on.

  2. Add the script if there is no option

    Add the JavaScript above with a code snippets plugin or your child theme, and change the form selector to match your form.

Unprotected vs protected form

Before

  • Button stays active after click
  • No loading state
  • Every request creates a new record
  • Conversion tag fires on each click

After

  • Button disables and shows Sending
  • Repeat events ignored
  • One-time key rejects copies
  • Conversion tag fires once on success

How to confirm it's fixed

Confirmation checks
  • Double-click submit on a test form and see only one record created
  • Press Enter then click submit and see only one POST request in the Network tab
  • Run the test with Slow 4G throttling
  • Refresh the thank-you page and confirm no second record or conversion appears
  • Check GA4 DebugView or Tag Assistant for a single conversion event
  • Confirm the button re-enables if the request fails

How to prevent it happening again

Form plugins, themes and checkout scripts get updated, and a change can remove the protection. Put double-submit on your release checklist, and review your CRM for repeated emails each month.

How FunnelGuard handles this

FunnelGuard does not check for double-submit today. It is a possible future check, and there is no double-submit test in the product now.

What FunnelGuard does do is run your real journeys on a schedule, such as lead forms and checkouts, from the EU or the US. It checks each step, the tracking hits sent to ad and analytics platforms, and whether test leads reach your inbox and CRM. If a form breaks, a tag stops firing or a lead never arrives, you get one alert with a screenshot and a likely cause. That helps you spot a broken submit, but it will not tell you that one click made two records.

To watch for duplicates, use the manual checks above, a duplicate-email report in your CRM, and your browser's Network tab or Tag Assistant. You can start with the Free plan (1 site, 2 journeys, daily checks, no card) to keep an eye on the form itself.

Questions people ask

Why is my form creating duplicate leads?

Most often the visitor clicked submit twice because the page gave no sign that the first click worked. Slow servers, missing loading states and Enter-plus-click make it worse. Disable the button on submit and de-duplicate on the server.

How do I stop users from submitting a form twice?

Disable the submit button and show a Sending label as soon as the form is submitted. Add a flag in your code that ignores repeat submit events, and send a one-time key so the server rejects copies.

Why am I getting duplicate orders on my checkout?

Usually a double click on the pay button, a retry after a timeout, or a custom script that re-submits the cart. Use your payment provider's idempotency key so a repeated request cannot create a second charge.

Does a double-submit affect my Google Ads or Meta conversions?

Yes, if the conversion tag fires on each submit it counts two conversions for one person. That inflates your numbers and can mislead automated bidding. Fire the tag once, on the confirmation page or success event.

What is an idempotency key?

It is a unique ID sent with a request so the server can recognise a repeat. If the same key arrives twice, the server returns the first result instead of creating a second record or charge.

How can I find duplicate leads already in my CRM?

Export your contacts and sort by email and creation time. Entries with the same email within seconds of each other are likely double-submits. Many CRMs also have a merge or duplicate tool.

Does FunnelGuard detect double-submit?

No. FunnelGuard does not check for double-submit yet, though it is a possible future check. It does run your real forms and checkouts on a schedule and checks steps, tracking hits and lead delivery.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.