How to Set Up Conversion Tracking for a Small Business Website (GA4 + Google Tag Manager)
If you run ads or invest in SEO, there’s one number that matters more than clicks or visits: how many people actually got in touch. Without conversion tracking, you can’t tell which campaigns, keywords or pages bring in leads, and Google Ads can’t optimize toward them.
Here’s exactly how I set up lead tracking on this website with Google Tag Manager and Google Analytics 4. The same approach works for most small business sites.
What you’ll need
- A Google Analytics 4 property for your website.
- A Google Tag Manager account and container, installed on every page of your site.
- A contact form, booking form or other action you want to count as a lead.
- Optional: a Google Ads account, if you want to send leads to your campaigns.
All of these are free.
How the pieces fit together
- A visitor submits your contact form.
- Your website confirms the submission succeeded, then sends a small message called a dataLayer event, for example
generate_lead. - Google Tag Manager listens for that event with a trigger.
- The trigger fires a GA4 Event tag, which sends the lead to Google Analytics.
- In GA4, you mark
generate_leadas a key event (what GA4 now calls a conversion), and optionally import it into Google Ads.
Step 1: Send an event when the form succeeds
The most reliable way to track a form is to have your website announce a lead only after the submission actually succeeded. Tag Manager’s built-in “Form Submission” trigger often misfires on modern forms that submit in the background, or counts attempts that failed.
On this site, the contact form sends this line once the form service confirms the enquiry was received:
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({ event: 'generate_lead', form: 'contact' });
generate_lead is Google’s recommended event name for a lead, so GA4 and Google Ads recognize it. The form value lets you tell different forms apart later.
If you use a website builder or form plugin, look for a “thank-you redirect” or “on success” setting. If you can’t add code, redirect successful submissions to a thank-you page and track visits to that page instead.
Step 2: Create the trigger in Google Tag Manager
In Tag Manager, go to Triggers → New and set up:
- Name:
CE - generate_lead - Trigger type: Custom Event
- Event name:
generate_lead(it must match exactly, including lowercase) - This trigger fires on: All Custom Events
If you have several forms, first create a Data Layer Variable for form under Variables → New, then choose Some Custom Events and fire only when that variable equals contact.
Step 3: Create the GA4 Event tag
Go to Tags → New:
- Name:
GA4 Event - generate_lead - Tag type: Google Analytics: GA4 Event
- Measurement ID: your GA4 ID, starting with
G- - Event name:
generate_lead - Event parameters (optional):
form_name= yourformvariable - Triggering:
CE - generate_lead
Save it. Make sure your container also has a Google tag for GA4 that fires on all pages, so page views are recorded too.
Step 4: Test before you publish
Never publish tracking you haven’t tested:
- In Tag Manager, click Preview and enter your website address. Your site opens with Tag Assistant connected.
- If your site has a cookie banner, accept analytics cookies first, or nothing will load.
- Submit a real test enquiry.
- In Tag Assistant, you should see a
generate_leadevent appear, with your GA4 tag listed under Tags Fired. - In GA4, open Admin → DebugView to watch the event arrive.
When it works, click Submit in Tag Manager, add a version name like “Lead tracking”, and Publish.
Step 5: Mark the lead as a key event in GA4
GA4 takes up to a day to list a new event. Then:
- Go to Admin → Events (or Admin → Key events).
- Find
generate_leadand toggle Mark as key event. If it isn’t listed yet, create a new key event named exactlygenerate_lead.
From now on, GA4 reports show which channels, campaigns and pages produce leads.
Step 6: Send leads to Google Ads (if you advertise)
To let Google Ads optimize your campaigns toward real enquiries:
- Link GA4 and Google Ads under GA4 Admin → Product links → Google Ads links.
- In Google Ads, go to Goals → Conversions → New conversion action → Import → Google Analytics 4 properties, and select
generate_lead.
Alternatively, add a Google Ads Conversion Tracking tag in Tag Manager that uses the same trigger. Either way, give it a few weeks of data before judging campaigns on it.
Don’t forget consent
If you use a cookie banner, set it up with Google Consent Mode v2. Analytics and ad tags then wait for the visitor’s choice and respect it automatically. On this site, Tag Manager only loads after a visitor accepts, and the banner tells Google tags exactly what each visitor allowed.
The trade-off: visitors who decline won’t be counted, so GA4 will show fewer leads than your inbox. That’s expected, and it’s the right way round.
Other things worth tracking
The same trigger-and-tag pattern works for other actions that signal a lead:
- Phone number clicks: a Click trigger where the Click URL starts with
tel:. - Email link clicks: the Click URL starts with
mailto:. - Bookings: an event from your booking tool, or a visit to its confirmation page.
- Direction requests or quote downloads on sites that offer them.
Keep the list short. Track the handful of actions that genuinely mean “this person might become a customer”, not every click.
Common mistakes to avoid
- Counting form attempts instead of successful submissions, which inflates your numbers.
- Event names that don’t match exactly between your site, the trigger and GA4.
Generate_Leadandgenerate_leadare different events. - Publishing without testing in Preview mode.
- Tracking the same lead twice, for example both a form event and a thank-you page visit.
- Judging campaigns before the data has had time to build up.
Want it done for you?
Setting up tracking properly takes an afternoon if everything goes smoothly. If you’d rather have it done right the first time, along with dashboards that show leads by channel, see Tracking, Dashboards & Reporting. If your Google Ads account is already running without conversion tracking, start with an audit, and read how much a small business should spend on Google Ads once you can measure your cost per lead.
Frequently asked questions
What's the difference between Google Analytics 4 and Google Tag Manager?
Google Analytics 4 (GA4) is where your data is stored and reported. Google Tag Manager (GTM) is the tool that decides which tracking code runs on your site and when. You can use GA4 without Tag Manager, but Tag Manager makes it far easier to add and change tracking without editing your website each time.
Why does GA4 show fewer leads than I actually received?
That's normal. Visitors who decline cookies, use ad blockers or have strict browser privacy settings may not be counted, and GA4 reports can take up to a day to fill in. Use GA4 for trends and comparing channels, and your inbox or CRM for the exact count.
Should I track a thank-you page or a form event?
Either works. A thank-you page is simple: count visits to /thank-you. An event that fires only after a successful submission is more precise, can't be triggered by someone landing on the thank-you page directly, and lets you send extra details such as which service the enquiry was about.
Do I need a cookie banner to track conversions?
It depends on where your visitors are and which tools you use. Visitors in the EU and UK must agree before analytics and advertising cookies are set, and several US states give people the right to opt out of targeted advertising. A consent banner with Google Consent Mode handles both, and it's what I use on this site. If you're unsure what applies to you, get legal advice.