To measure inquiries, distinguish a button click from a successfully saved record. A success event should correspond to an accepted server result. Preparation produces an event list and a practice check that can be compared with the inquiry store.
Step 1. Which events are needed
Start with one form path. The names below are examples for the project, not mandatory analytics service names.
| Event | When to consider it happened |
|---|---|
form_started |
Visitor started filling out form |
form_submit_attempt |
Request Sent After Field Validation |
lead_saved |
Server confirmed saved request |
form_submit_failed |
Error received or result remains unknown |
If after timeout the server already saved the request, the last line does not prove no record. Verification needs request or enquiry ID. Analytics log and working base may differ due to locks and delays.
Step 2. How to prepare and verify measurement
- Record event time, confirmation source, and necessary technical fields. Do not send message text, email, or other personal fields to analytics for debugging convenience.
- Select a service and separate test environment. Before connecting, verify its current instructions for your app.
- Send a fictional request. Find the record in storage and the event in the log, compare ID and time.
- Check incorrect fields, server refusal, and repeated requests with the same ID. An error must not be counted as success, and one result must not become two enquiries.
- If CRM transfer is needed, define matching rule and dispute handling before import. Name match alone does not confirm one person.
Use the prompt below to ask Codex to measure events. Form requirements: guide. Repeat runs: guide.
Step 3. If numbers don't match
Compare one period, time zone, and result definition. Then look for repeated handlers, resubmission, request blocking, and the wrong analytics project. Do not calculate lost revenue from clicks alone without data on actual requests and sales.
To stop collection, disable event sending. Deletion of previous data is done separately per chosen service rules.
What you will have
You can distinguish an attempted submission from a saved enquiry. Check delivery to the recipient separately. Measurement is tested with a sample enquiry.
Next: How to prepare an SEO page: text and verification.
Prompt for Codex
Paste into your project chat:
Find the source data in the available project and conversation and fill in the bracketed fields yourself. Ask me about any unknown goals, preferences or sources; do not invent them.
Set up enquiry measurement for [website project]. Distinguish opening the form, attempting submission, server acceptance and enquiry delivery. Choose a suitable measurement method and test it with a sample enquiry. Compare recorded events with the saved enquiry and identify unavailable data.