Start with the event you count, then inspect the lead you received. A button click is an attempt. A stored enquiry is a received lead. A reachable person who needs your service is a different stage again. Mixing those stages makes spam look like growth and hides broken forms behind healthy conversion totals.
Not every fake submission came from a charged ad click, and not every submission fires a conversion. Establish both paths before calling the problem click fraud. A genuine person outside your service area can be a poor lead without being a bot.
1. Locate the failure before blocking traffic
| What you see | What to check | What it establishes |
|---|---|---|
| Google Ads conversions, no stored enquiries | Button triggers, failed form requests, thank-you reloads and duplicate actions | A measurement or delivery problem can exist without fake leads |
| Repeated identical lead records | Double clicks, browser retries, webhook retries and request keys | Duplicate transport is not automatically multiple people or bots |
| Stored enquiries with invalid details | Server validation, challenge verification and contact confirmation | A passed format check does not prove a reachable person |
| Reachable people who cannot buy | Service area, search intent, offer and qualification | Poor fit is different from fabricated contact details |
| Many rejected leads from one source | Campaign, network, timestamps and the corresponding visits | A pattern worth investigating; not proof that every click was billed or fraudulent |
Run the conversions-but-no-leads diagnostic if the first row matches. It covers tag testing, native Google Ads versus imported GA4 actions, primary goals and the custom-goal exception. Fix the event path before changing bids.
2. Make acceptance a server decision
Browser validation helps people complete a form. Your server must independently parse and validate the request, enforce field types and length limits, check allowed choices and verify any anti-bot challenge with its provider. A hidden field or a client-supplied accepted: true is not authorization to create a lead.
- Validate the actual service request. Check required fields and allowed service/location values against your business rules. Support legitimate Unicode names and international phone formats instead of assuming every customer has an ASCII name or US number.
- Verify contact separately. Email syntax is not deliverability, ownership or purchase intent. Confirmation can establish access to that inbox; it still does not qualify the lead.
- Layer abuse controls. Use server-verified challenges and sensible rate limits. A honeypot can contribute evidence, but one filled hidden field alone is a weak reason to label a person fraudulent.
- Keep consent and source information intact. Apply your form's consent rules and preserve the matching information your supported measurement setup needs. Do not treat passing validation as permission to send every field to an ad platform.
Implementation reference: OWASP Input Validation Cheat Sheet. Validation checks structure and business rules; it is not a complete bot detector.
3. Store the lead once, even when the response is lost
A common failure is simple: the server stores an enquiry, the browser loses the response, and a retry creates a second record and conversion. Give one intentional submission a request key, bind it to a server-owned form/session scope, and reuse that key for retries. Generate a new key for a new intentional enquiry.
The database needs a unique constraint on that scope and key. Comparing normalized payloads also stops a retry key from silently accepting changed details. Return an accepted response only after the lead and its pending job have committed together.
Runnable Python and SQLite example
Download the complete lead acceptance and retry demo. Run it locally with Python 3.9+ and SQLite 3.24+. It uses synthetic data in an in-memory database, makes no network calls and writes no files.
python3 lead-acceptance-retry-demo.pyThe download includes the schema and eight checks. This is its storage routine, called after your server has normalized the payload, validated the form and verified the challenge:
def store_accepted_lead(db, trusted_scope, submission_key, normalized_payload,
*, server_validated, server_challenge_passed):
# These decisions come from your server, never request-body flags.
if server_validated is not True or server_challenge_passed is not True:
return {"accepted": False, "reason": "validation_or_challenge_failed"}
# Scope is bound to a trusted form/session. A key identifies ONE attempt.
if any(not isinstance(value, str) or not 1 <= len(value) <= 200
for value in (trusted_scope, submission_key)):
return {"accepted": False, "reason": "invalid_scope_or_key"}
payload = json.dumps(normalized_payload, sort_keys=True,
separators=(",", ":"), ensure_ascii=False, allow_nan=False)
digest = hashlib.sha256(payload.encode("utf-8")).hexdigest()
db.execute("BEGIN IMMEDIATE")
try:
db.execute("""
INSERT INTO leads
(id, trusted_scope, submission_key, payload_hash, payload_json)
VALUES (?, ?, ?, ?, ?)
ON CONFLICT (trusted_scope, submission_key) DO NOTHING
""", (str(uuid.uuid4()), trusted_scope, submission_key, digest, payload))
lead_id, previous_digest = db.execute("""
SELECT id, payload_hash FROM leads
WHERE trusted_scope = ? AND submission_key = ?
""", (trusted_scope, submission_key)).fetchone()
if previous_digest != digest:
db.execute("ROLLBACK")
return {"accepted": False, "reason": "key_payload_conflict"}
# A pending local job is not a delivered or attributed conversion.
db.execute("""
INSERT INTO conversion_outbox (lead_id, event_name)
VALUES (?, 'lead_received')
ON CONFLICT (lead_id, event_name) DO NOTHING
""", (lead_id,))
db.execute("COMMIT")
except Exception:
if db.in_transaction:
db.execute("ROLLBACK")
raise # No accepted response on a storage/queue failure.
return {"accepted": True, "leadId": lead_id, "stage": "received"}The two Boolean arguments represent trusted server results, never values copied from the request body. The digest compares normalized payloads; it is not authentication or anonymization. The database stores the payload as well as the digest so a received record contains the enquiry.
On an HTTP service, map a changed-payload conflict to a clear failure such as HTTP 409. Map storage failure to a retryable failure without an accepted response. Keep the original key for that retry. For single-use challenge tokens, design retries around a previously verified, bound server session rather than replaying a consumed token or trusting a browser flag.
Storage references: Python sqlite3 transaction control and SQLite ON CONFLICT. The example uses explicit SQL transactions. Adapt the transaction and unique constraints to your production database; this is not a drop-in public form endpoint.
What the eight local checks prove
- A failed validation decision creates no lead or job.
- A failed challenge decision creates no lead or job.
- Truthy strings cannot stand in for trusted Boolean decisions.
- A lost-response retry returns the same lead ID, with one lead and one job.
- Changed details under the same key conflict without creating another record.
- The same key in a different trusted session has a separate identity.
- A new intentional enquiry with a new key gets its own record.
- An injected queue-insert failure rolls back the lead and returns no success.
These are local storage checks. Before using the pattern, also exercise your real form's double clicks, timeouts, concurrent requests, challenge expiry and CRM outage in a test environment. Do not use real customer data in the downloadable demo.
4. A pending job is not a delivered conversion
The example deliberately stops at a pending lead_received outbox record. That name describes a received enquiry; it does not declare it qualified or make it a primary bidding goal. A worker still has to deliver the chosen event through the destination's supported interface, handle failures and record delivery results.
One local job does not guarantee one attributed conversion
A worker can time out after the platform receives a request but before your system records success. Retrying needs the destination's documented deduplication or reconciliation strategy. A local lead ID alone does not deduplicate separate native Google Ads and GA4 conversion actions.
Choose the delivery owner for each destination and outcome. If a server integration owns the conversion, do not also send another copy through a browser tag by accident. If the browser owns it, trigger only after the committed accepted response, then test retries and thank-you reloads. The browser acceptance pattern shows that boundary.
Track four checkpoints separately: lead stored, CRM received, platform accepted and conversion attributed. A storage success cannot certify the other three. For calls and imports, use the call-conversion reconciliation guide.
5. Teach bidding which leads became business
Keep received, verified contact, qualified and closed sale distinct in your CRM. Define qualification in terms your team can apply consistently: reachable person, eligible service area, relevant request and a genuine need. A low budget or a missed call is not enough to prove a bot.
Use a supported enhanced-conversions-for-leads or offline-import setup to return the chosen downstream outcome. Choose a bidding stage that fits your business and data volume, monitor delays and import diagnostics, and keep uploads regular. Moving a form action to secondary does not remove historical data or guarantee its exclusion from a campaign-specific custom goal.
Google's high-quality lead guidance recommends business-aligned lead goals and regular downstream imports. Selecting a goal does not replace your own qualification process.
Use the qualified-lead cohort example to compare an earlier accepted outcome with qualification before changing the bidding goal.
6. Audit the conversion actions your campaign counts
Use the free audit below with a conversion-action CSV, or load its sample first. It flags overlapping funnel stages, possible duplicate actions and lead-counting settings. Check campaign goal settings alongside the report: action metadata alone does not establish which goals an individual campaign uses.
Runs in this browser. Your action names and settings stay here.
Check campaign goals to confirm bidding eligibility. Custom goals can include secondary actions. Match transaction or lead IDs to verify repeated events.
Get the read-only Google Ads conversion-action export script and its full audit instructions. The tool processes your pasted CSV locally in your browser.
Where AdProtektor fits
AdProtektor adds visit-level fraud evidence to this workflow. Its dashboard associates captured form submissions and phone clicks with flagged visitors. With ConversionOS and fraud protection enabled, conversions from blocked visitors are withheld from configured destinations instead of being forwarded as clean outcomes.
That protection does not certify every unblocked lead, replace your CRM or repair an unrelated browser tag. Review your actual form integration, delivery owner and goal settings. Website enforcement and Google Ads IP exclusions are separate controls; neither proves that Google charged for a flagged visit. Use the invalid-click review guide when you need to reconcile billing evidence.
If a confirmed spam event already counted, trace the original action and identity in the Google Ads conversion adjustment guide.
Start a free AdProtektor trial to inspect flagged visits and the conversion events your configured integration withholds. Judge the result by qualified enquiries and sales, not a larger raw conversion count.
For repeated purchase sends or native Google Ads plus GA4 imports, follow the duplicate-conversion diagnostic to inspect transaction identity, campaign goals and supported multi-source delivery.
For CRM outcomes uploaded successfully but absent from reports, follow the offline-conversion diagnostic to separate row results, matching, processing and the selected reporting scope.
To separate browser capability from visitor identity, run the local JavaScript and browser-signal lab. A shared header, a received page report and an automation flag answer different questions.
Before the storage step, test the challenge-verification acceptance boundary. Its twelve-request local lab distinguishes client flags, chosen provider failures and one accepted but unqualified record.
A lead containing a click-ID field still needs provenance and business validation. Use the GCLID evidence guide for a local parameter counterexample and a scoped optional account lookup.