Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Duplicate webhook delivery creating duplicate records: fix

DLV-125Low impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

A webhook is a message your form or store sends to another tool (Zapier, Make, n8n, a CRM or your own server) when something happens. Duplicate delivery is when the same message arrives more than once. The receiver then creates a new contact, row or deal each time.

Common causes: the sender retries because your endpoint answered slowly or with an error, two webhooks are configured for the same form, a form plugin and a tag both fire, the visitor double-clicks submit, or the thank-you page reloads and re-sends the event.

Why it costs you leads or sales

The impact is usually moderate rather than a lost lead, but it adds up. Sales may call the same person twice. Automated emails and SMS go out twice. Lead counts and cost per lead are wrong, and pipeline reports are inflated. Teams also start to distrust the CRM and ignore real alerts.

One submission, two records
  1. Visitor submits formOne submission
  2. Webhook sentDelivered, but reply is slow
  3. Retry sentSame payload arrives again
  4. Two CRM recordsDouble emails and double calls

The sender retries because the first reply was slow, and the receiver treats each copy as new.

How to check if your site has it

Quick checks
  • Submit your form once with a unique test email and count the new records in the CRM, sheet or automation history.
  • Open the sending tool's webhook or delivery log and look for two sends with the same payload or timestamp.
  • Check the form settings for more than one webhook, notification integration or Zap attached to the same form.
  • Check Google Tag Manager and any plugin for a second tag that posts the same data.
  • Look in the receiving tool's run history for retries after a timeout or 5xx response.
  • Sort your CRM by email and look for contacts created seconds apart.

How to fix it

Stop duplicates at the source and at the receiver
  1. Find the trigger of the second send

    Compare the delivery logs. If the two sends have different timestamps seconds apart, it is a retry. If they are at the same moment, two triggers are configured.

  2. Remove double triggers

    Delete the extra webhook, duplicate Zap or second tag. Keep one path from form to destination.

  3. Answer fast with a 2xx status

    Have your endpoint reply 200 immediately and process the work afterwards. Slow or failing replies are the main cause of retries.

  4. Add a unique ID to every submission

    Send a submission ID or generate one, and pass it in the payload so the receiver can recognise repeats.

  5. Make the receiver idempotent

    Idempotent means running the same message twice has the same result as running it once. Look up the ID first and update the record instead of creating a new one.

  6. Block double clicks

    Disable the submit button after the first click and avoid re-sending on page reload.

Dedupe in your automation tool or code
  1. Store processed IDs

    Save each submission ID in a table with a unique constraint. If the insert fails because the ID exists, return 200 and skip the work.

  2. Reply before heavy work

    Queue the job and return 200 straight away so the sender does not retry.

Node.js (Express) idempotent webhook receiverjavascript
const seen = new Set(); // use a database table with a unique key in production

app.post('/webhook', express.json(), (req, res) => {
  const id = req.body.submission_id;
  res.status(200).send('ok'); // reply fast so the sender does not retry
  if (!id || seen.has(id)) return; // ignore repeats
  seen.add(id);
  createLead(req.body); // your own function
});
Receiver behaviour

Before

  • Every incoming message creates a new record
  • Retries produce copies
  • Sales calls the same lead twice

After

  • Receiver checks the submission ID first
  • Repeats are ignored or update the record
  • One lead, one record, one follow-up

How to confirm it's fixed

Verify with a test
  1. Submit once

    Use a unique test email and submit the form a single time.

  2. Count records

    Confirm exactly one record in the CRM, sheet and any other destination.

  3. Check delivery logs

    Confirm one send, or retries that were ignored by the receiver.

  4. Try a double click

    Click submit twice quickly with another test email and confirm one record.

How to prevent it happening again

Habits that keep duplicates out
  • Always include a unique submission ID in webhook payloads.
  • Use upsert or find-then-create steps in automations.
  • Keep one documented path from each form to each destination.
  • Reply 2xx quickly and do slow work in the background.
  • Re-test after changing a form, plugin, Zap or tag.

How FunnelGuard handles this

FunnelGuard detects this today. Its robot visitor submits your real lead form on a schedule and runs a no_duplicate_delivery webhook check: it looks at whether the test lead was delivered once or more than once to your webhook destination. If it sees more than one delivery, a failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause.

Test submissions are marked (utm_source=funnelguard, fg_test=1, an fg_test cookie and a dedicated user agent), so you can filter them out of reports. FunnelGuard does not fix the receiver for you, so you still make the change described above. The Free plan covers 1 site and 2 journeys with daily checks and no card.

Questions people ask

Why is my webhook creating duplicate records?

Most often the sender retried because your endpoint replied slowly or with an error, or two webhooks or Zaps are set up for the same form. The receiver then treats each copy as a new lead. Check the delivery log for two sends and fix the cause.

Why does my form send the webhook twice?

Typical reasons are a duplicate webhook in the form settings, a plugin plus a tag both posting the data, a double click on submit, or a thank-you page that re-sends on reload. Compare timestamps in the log: identical times point to two triggers, a gap points to a retry.

What is an idempotent webhook?

An idempotent webhook receiver gives the same result whether it gets a message once or several times. It usually checks a unique ID and skips or updates the record if it has seen it before. This is the most reliable protection against duplicates.

How do I stop duplicate rows in Google Sheets from Zapier or Make?

Add a search step before the create step, looking up the row by email or submission ID, and only add a row if none is found. Also check that only one Zap or scenario is triggered by the form.

Do webhooks retry automatically?

Many senders do retry when they get a timeout or a 4xx/5xx response, though the rules differ by tool. Retries are useful because they protect against lost leads, but they make duplicates likely unless your receiver ignores repeats.

How can I tell a duplicate delivery from a real repeat lead?

Duplicates from delivery faults are identical and created seconds apart, often with the same submission ID. A real repeat lead has a different timestamp, often a different message, and a separate submission in your form log.

Can FunnelGuard detect duplicate webhook delivery?

Yes. Its no_duplicate_delivery webhook check submits a marked test lead and flags it if the destination receives it more than once. It alerts you after a second-region re-check.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: no_duplicate_delivery webhook.

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.