In short
On a services site, the quote request or the contact form is the main conversion. Tracking these conversions means sending the analytics tool an event on every successful submission, with the form name, then declaring it as a goal: a key event in GA4, a goal in Matomo. Once this is done, you know how many requests arrive, from which pages and which sources, including organic search and AI assistants.
Why it matters
Traffic does not pay the bills. Without measured conversions, an SEO or GEO report stops at visits: there is no way to know whether a well-ranked page, or one cited by ChatGPT, brings in requests or just curious visitors.
Tools do not guess what a conversion is. GA4 can detect form submissions through enhanced measurement (form_start and form_submit), but this automatic detection does not know whether the submission succeeded, does not always see forms submitted with JavaScript, and does not distinguish a quote form from a newsletter sign-up. Reliable measurement starts from a success signal you control: a thank-you page, a confirmation message or the server's response.
Since 2024, GA4 calls these actions “key events”; the word “conversion” is reserved for actions imported into Google Ads. The principle does not change: an ordinary event becomes a goal when you mark it as one.
What it improves
- SEO and GEO management Conversions and conversion rate by landing page and by source, the basis of the task track conversions and conversion rate (opens in a new tab).
- Editorial priorities The pages that generate requests deserve to be updated and linked first.
- AI traffic Visits from ChatGPT, Perplexity or Copilot can be judged on the requests they produce, not just on their volume. See measure identifiable AI visits, conversions and revenue (opens in a new tab).
- Paid campaigns A reliable key event can be imported into Google Ads.
- Rankings No effect. Measurement influences neither Google nor generative engines.
How to check
- Submit a test on each form, with an identifiable address (
[email protected]). - Watch the submission in Tag Assistant or in Google Tag Manager's preview: a dedicated event must be sent only once, after the confirmation message, and not when a submission is rejected (required field left empty).
- Check reception in GA4,
Admin > Data display > DebugView, or in Matomo's visits log. - Check the status: in
Admin > Data display > Events, “Key events” tab, the event has the star. In Matomo,Goals > Manage Goalslists the goal. - Reconcile the figures: over 30 days, compare the number of key events with the number of requests received by email or in the CRM.
A gap of a few tens of percent below is normal when visitors refuse measurement or block scripts. A figure higher than the actual requests indicates duplicates: see fix duplicate conversions (opens in a new tab).
How to implement
Before you start
Choose one success signal per form:
| Signal | Reliability | When to use it |
|---|---|---|
| Event pushed by the code after the server's positive response | Excellent | You control the code (framework, custom theme) |
| JavaScript event from the form plugin (Contact Form 7, Gravity Forms) | Good | WordPress with a plugin that publishes one |
Dedicated thank-you page (/merci-devis/) |
Good if it is accessible only after submission | Every CMS, no code |
| Tag Manager “Form Submission” trigger with validation | Medium | Classic HTML form, not submitted with JavaScript |
GA4 enhanced measurement form_submit |
Low | For spotting only, never as the sole key event |
Then name the events. For GA4, use the recommended generate_lead event, with a parameter that distinguishes the forms:
| Form | Event | Parameters | Goal |
|---|---|---|---|
| Quote request | generate_lead |
form_name: devis, lead_source: site |
Yes |
| General contact | generate_lead |
form_name: contact |
Yes |
| Callback request | generate_lead |
form_name: rappel |
Yes |
| Newsletter | newsletter_signup |
form_name: newsletter_pied_de_page |
Depending on your goals |
Keep this table in your tracking plan. Newsletter submissions and sign-ups have their own guide: track downloads and sign-ups (opens in a new tab).
Warning: never send the content of the fields (name, email, phone, message) to GA4 or in the thank-you page URL. Google Analytics policies prohibit collecting personally identifiable information.
With GA4 and gtag.js
Call gtag when the server confirms the submission, not when the button is clicked:
// Example for a form submitted with fetch
const form = document.querySelector('#form-devis');
form.addEventListener('submit', async (event) => {
event.preventDefault();
const response = await fetch(form.action, {
method: 'POST',
body: new FormData(form),
});
if (! response.ok) {
return;
}
gtag('event', 'generate_lead', {
form_name: 'devis',
lead_source: 'site',
});
form.replaceWith('Thank you, your request has been sent.');
});
If you assign an average value to a request (for example an estimated €150), add value: 150 and currency: 'EUR': GA4 requires the currency whenever a value is sent.
With Google Tag Manager
Three setups, from most to least reliable:
- Event in the
dataLayer: the site pushesdataLayer.push({ event: 'generate_lead', form_name: 'devis' });after success. In Tag Manager, create aform_nameData Layer Variable, a “Custom Event” trigger namedgenerate_lead, then a “Google Analytics: GA4 Event” tag with the event namegenerate_leadand the parameterform_name={{form_name}}. - Thank-you page: a “Page View” trigger restricted to
Page Pathequals/merci-devis/, and the same event tag. - Form submission:
Triggers > New > Trigger Configuration > Form Submission, tick “Check Validation”, then “Some Forms” with a condition onForm ID. Enable the Form ID and Form Classes built-in variables beforehand. This trigger does not see forms submitted with JavaScript and can fire even if the server then rejects the submission.
Test in “Preview” mode, then publish.
With Matomo
Two routes, both in Goals > Manage Goals > Add a new goal:
- Without code: “Visit a given URL” trigger on
/merci-devis/. - With an event: send the event from the site, then choose the “Send an event” trigger with the category
Formulaireand the actiondevis.
_paq.push(['trackEvent', 'Formulaire', 'devis', 'page-tarifs']);
Leave the “Allow multiple conversions per visit” option turned off for a quote request: a visitor who submits the form again counts only once per visit. The goal's revenue field accepts an estimated average value.
WordPress
Versions WordPress 6.4 and later; Contact Form 7 5.x and Gravity Forms 2.x, November 2026 versions.
Place the code in a JavaScript file in your child theme, in a code block of your snippets plugin, or in a Tag Manager “Custom HTML” tag.
Contact Form 7
Contact Form 7 emits the wpcf7mailsent DOM event when the message has actually been sent:
document.addEventListener('wpcf7mailsent', (event) => {
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'generate_lead',
form_name: `cf7_${event.detail.contactFormId}`,
});
});
Do not use wpcf7submit, which also fires when validation fails.
Gravity Forms
For a form submitted via AJAX, Gravity Forms triggers the gform_confirmation_loaded jQuery event when the confirmation message is displayed:
jQuery(document).on('gform_confirmation_loaded', (event, formId) => {
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'generate_lead',
form_name: `gf_${formId}`,
});
});
Without AJAX, set the form confirmation to redirect to a thank-you page and track that page.
Other plugins
WPForms, Formidable Forms, Fluent Forms and Elementor all offer a redirect confirmation: it is the simplest route. Check the plugin's documentation to find out whether it publishes a JavaScript success event.
Laravel
Versions Laravel 11 to 13.
The controller validates, saves, then redirects with flashed session data. The view pushes the event only once, since flashed data disappear on the next request:
// app/Http/Controllers/QuoteRequestsController.php
public function store(StoreQuoteRequest $request): RedirectResponse
{
QuoteRequest::create($request->validated());
return to_route('quoteRequests.create')->with('analyticsEvent', [
'event' => 'generate_lead',
'form_name' => 'devis',
]);
}
{{-- resources/views/layouts/app.blade.php, after the tag code --}}
@if(session('analyticsEvent'))
<script>
window.dataLayer = window.dataLayer || [];
window.dataLayer.push(@json(session('analyticsEvent')));
</script>
@endif
With gtag.js without Tag Manager, replace the push with gtag('event', 'generate_lead', { form_name: 'devis' });.
Next.js
Versions Next.js 15 and 16 (App Router).
With the GoogleAnalytics component from @next/third-parties, send the event from the client component once the Server Action has completed without error:
'use client';
import { useActionState, useEffect } from 'react';
import { sendGAEvent } from '@next/third-parties/google';
import { submitQuote } from './actions';
export function QuoteForm() {
const [state, formAction, isPending] = useActionState(submitQuote, { ok: false });
useEffect(() => {
if (! state.ok) {
return;
}
sendGAEvent('event', 'generate_lead', { form_name: 'devis' });
}, [state]);
return (
<form action={formAction}>
{/* form fields */}
<button type="submit" disabled={isPending}>Request a quote</button>
</form>
);
}
With Tag Manager, use sendGTMEvent({ event: 'generate_lead', form_name: 'devis' }).
Mark the event as a key event
In GA4, once the event has been received at least once:
Admin > Data display > Events, “Recent events” tab.- Click the star on the
generate_leadrow. The marking applies from that moment on; it does not change past data. - To read the
form_nameparameter in reports, create a custom dimension with the “Event” scope inAdmin > Data display > Custom definitions.
Without code, you can also create an event from page views: Events > Create event, condition event_name equals page_view and page_location contains /merci-devis/, new event name generate_lead, then mark it as a key event.
For Google Ads, link the two accounts and then import the key event; do not also keep a Google Ads conversion tag that measures the same action as a primary conversion.
Track the results
Build a monthly table, in a spreadsheet or in Looker Studio:
| Month | Form | GA4 key events | Requests received (CRM or mailbox) | Gap | From organic search | From AI assistants |
|---|---|---|---|---|---|---|
| October 2026 | Quote | 42 | 51 | −18% | 23 | 3 |
| October 2026 | Contact | 30 | 34 | −12% | 14 | 1 |
The gap is calculated with =(C2-D2)/D2. Watch its stability rather than its value: a sudden jump signals a measurement failure. To isolate AI assistants, rely on a dedicated channel for AI traffic (opens in a new tab).
Common mistakes
- Measuring the click on the “Submit” button: every attempt counts, including rejected submissions and double clicks.
- Relying only on enhanced measurement's
form_submit: it distinguishes neither forms nor successful submissions. - Thank-you page accessible without submitting: linked in the menu, included in the sitemap or indexed, it receives visits that inflate conversions.
- Putting the visitor's email or name in the thank-you URL: these data are sent to GA4 with the page view.
- Marking both
form_submitandgenerate_leadas key events for the same form: each request counts twice. - Forgetting consent: an event pushed before the visitor's choice can be blocked or collected without a legal basis. See handle applicable consent requirements (opens in a new tab).
- Never reconciling with the CRM: a measurement failure then goes unnoticed for months.
Frequently asked questions
How do I track a contact form in GA4 without a developer?
Create a thank-you page that the form redirects to after submission, then, in GA4, create an event from page views whose URL contains that page's path. Then mark it as a key event. Check that the page is accessible only after an actual submission: remove it from the menus and the sitemap, otherwise every direct visit will be counted as a request.
What is the difference between a key event and a conversion in GA4?
A key event is an event you have marked as important in GA4, for example a quote request. Since 2024, the term conversion has been reserved for actions used in Google Ads, which can be imported from GA4 key events. To measure requests coming from SEO or AI assistants, a key event in GA4 is enough.
Why does GA4 count fewer requests than my mailbox?
GA4 counts only visitors whose browser loaded the tag and, depending on your banner, accepted measurement. Consent refusals, ad blockers and submissions made before the page has fully loaded lower the figure. A stable gap is normal; a gap that changes suddenly from one month to the next signals a measurement failure.
Should a quote request be given a value in euros?
It is not mandatory, but it is useful for comparing forms of different value. Estimate an average value from your close rate and average deal size, send it with the value parameter and the EUR currency, and document the calculation. To measure actual revenue, connect the requests to the CRM instead, since it knows which quotes were signed.
Resources
- Google Analytics Help: Enhanced measurement eventssupport.google.com
- Google Analytics Help: Mark events as key eventssupport.google.com
- Google Analytics: Recommended events reference (
generate_lead)developers.google.com - Tag Manager Help: Form submission triggersupport.google.com
- Matomo: Create a goalmatomo.org
- Gravity Forms:
gform_confirmation_loadeddocs.gravityforms.com - Next.js: Third-party libraries (
sendGAEvent)nextjs.org
Updated on
Topic checklist (PDF)