How to Set Up Google Analytics 4 for a Small Website
By Alex Morgan · Published · Updated · 4 minutes read

Google Analytics 4 (GA4) replaced Universal Analytics in July 2023, and if you haven't set it up yet, you're missing crucial data about how visitors use your site. GA4 is event-based, privacy-focused, and designed to work across web and apps. For small businesses, it's the free tool that tells you which pages drive enquiries and which channels bring real customers.
This guide walks you through the entire process: creating a property, installing the tracking code, defining key events, and building reports that answer practical questions. No prior analytics experience needed — just follow the steps and you'll have reliable data within a day.
Create Your GA4 Property and Data Stream
Start by signing in to your Google account and going to analytics.google.com. Click Admin (the gear icon), then Create Property. Enter your business name, select your reporting time zone and currency — these affect how dates and revenue are reported. Choose the options that match your business; you can always change them later.
Next, set up a data stream. For a website, choose Web and enter your domain (e.g., example.com) and a stream name like 'Main Website'. GA4 will generate a Measurement ID starting with 'G-'. Keep this ID handy; it's what connects your site to the property. You can also enable enhanced measurement, which automatically tracks scrolls, outbound clicks, site search, and video engagement.
- Create one property per website; avoid mixing multiple domains in one stream.
- Use a clear naming convention: 'Brand – Website – GA4'.
- Enable enhanced measurement to capture common interactions without extra code.
Install the Tracking Code on Your Website
You have two main options: paste the global site tag (gtag.js) directly into your site's <head> section, or use Google Tag Manager (GTM). For small sites, the direct tag is simpler. Copy the gtag.js snippet from the data stream's 'Installation instructions' and add it to every page, ideally via your CMS's header settings or a plugin.
If you use WordPress, a plugin like Site Kit or GA4 for WordPress can handle installation without code. After adding the tag, verify it's working: open your site in a browser, then in GA4 go to Reports → Realtime and check that your visit appears. If not, use the Google Tag Assistant extension or check your page source for the G- ID.
- Place the tag immediately before </head> on every page.
- Test with GA4 Realtime before moving on.
- If you use a cookie consent tool, ensure GA4 fires only after consent where required.
Define Key Events and Conversions
GA4 tracks everything as an event. Out of the box, you get page_view, scroll, click, and form_start. But for business insights, you need to mark important actions as conversions — such as form_submit, purchase, or phone_call_click. Go to Admin → Events and toggle 'Mark as conversion' for events that matter.
If your site doesn't send these events automatically, you can create them in GA4 using 'Create event' with conditions based on existing parameters (e.g., page_location contains '/thank-you'). For more control, implement custom events via gtag.js or GTM. Aim for 3–5 conversions that directly reflect your goals; too many dilute reporting.
- Typical small-business conversions: contact form, quote request, newsletter signup, purchase.
- Use 'Create event' for simple conditions; use GTM for complex tracking.
- Name events consistently: lowercase with underscores (e.g., generate_lead).
Configure Audiences and Data Retention
Audiences let you segment users for remarketing or deeper analysis. In GA4, go to Admin → Audiences and create audiences like 'Visitors who viewed pricing but didn't convert' or 'Customers who purchased in the last 30 days'. These audiences can be shared with Google Ads for remarketing, but only if you link your Ads account.
Data retention is critical: by default, GA4 keeps user-level data for 2 months. Change it to 14 months in Admin → Data Settings → Data Retention. Also enable Google Signals if you want cross-device reporting (subject to consent). For small sites, these settings balance insight with privacy compliance.
- Set data retention to 14 months for meaningful year-over-year analysis.
- Link Google Ads if you run campaigns; it enables remarketing and imported conversions.
- Review audience definitions quarterly to keep them relevant.
| Task | Where to do it | Time needed | Priority |
|---|---|---|---|
| Create property and data stream | GA4 Admin | 10–15 min | High |
| Install gtag.js or GTM | Website CMS / GTM | 15–30 min | High |
| Verify realtime data | GA4 Realtime report | 5 min | High |
| Mark conversions | GA4 Admin → Events | 10–20 min | High |
| Set data retention to 14 months | GA4 Admin → Data Settings | 2 min | Medium |
| Create 1–2 audiences | GA4 Admin → Audiences | 10–15 min | Medium |
| Link Google Ads (if used) | GA4 Admin → Product links | 5 min | Medium |
| Build a custom exploration | GA4 Explore | 20–30 min | Low |
Build Reports That Answer Business Questions
GA4's standard reports are useful, but custom explorations are where the value lies. Start with the 'Traffic acquisition' report to see which channels (organic, paid, social) bring users. Then check 'Engagement' → 'Pages and screens' to identify your top-performing content. For ecommerce, enable the monetisation reports by sending purchase events.
Create a custom exploration for your key question: e.g., 'Which blog posts drive contact form submissions?' Use dimensions like page_title and session_source, and metric 'conversions'. Save it as a report and schedule email delivery. For a quick health check, the 'Tech details' report shows browser and device breakdown — useful for spotting mobile usability issues that may call for a redesign.
- Use Explorations for funnel analysis and segment overlap.
- Schedule weekly or monthly email summaries for stakeholders.
- Compare GA4 data with your CRM to validate lead quality.
Avoid Common Setup Mistakes
One frequent error is duplicate tagging: installing both gtag.js and GTM with the same GA4 ID, which inflates page views. Another is missing cross-domain tracking if your checkout is on a third-party domain; set up domain lists in the data stream settings. Also, ensure internal IP addresses are excluded to keep your team's visits out of reports.
Finally, don't ignore consent. In regions like the EU, you must obtain user consent before firing analytics cookies. Use a consent management platform (CMP) that integrates with GA4's consent mode. If you're also running ads, aligning your analytics setup with your landing page optimization efforts ensures you measure what truly converts.
- Check for duplicate tags with Google Tag Assistant.
- Exclude internal traffic via IP filters in data stream settings.
- Implement consent mode v2 for compliance and better modelling.
- GA4 is event-based; define 3–5 key conversions that reflect business goals.
- Install the tag once, verify with Realtime, and avoid duplicate tracking.
- Set data retention to 14 months to enable year-over-year comparisons.
- Use custom explorations to answer specific questions like 'which pages drive leads?'
Alex Morgan is the editor at CreatickWeb with over a decade of experience in web design and digital marketing. He focuses on practical advice for small businesses and agencies, helping them navigate the digital landscape. Alex oversees all content to ensure it is accurate, actionable, and up-to-date.


