How to Set Up Google Analytics 4 Properly (Step-by-Step)
Most GA4 accounts are installed but not set up. Here's the step-by-step setup we use so your reports show which marketing actually brings in leads and sales.
The short answer: To set up Google Analytics 4 properly, create one property per business with one web data stream, install it through Google Tag Manager, and change data retention from 2 months to 14 months on day one. Then filter out your own traffic, exclude payment gateways as referrals, and mark your real business actions (leads, calls, purchases) as key events. Finally, test everything in DebugView before you trust a single number.
Most GA4 accounts we audit are “installed” but not set up. The tag fires, page views come in, and that’s it. No key events, 2 months of data retention, staff visits counted as customers, and PayPal listed as a top traffic source. The reports look busy but they can’t answer the only question that matters: which marketing is bringing in money?
Here’s the setup our Perth digital marketing team uses for Australian businesses, from a Perth plumber chasing quote requests to a Shopify store. Follow it in order.
1. Get the structure right: account, property, data stream
GA4 has three levels:
- Account: the top level, usually your business (for example “Smith Plumbing Pty Ltd”). One account per business.
- Property: where your reports and settings live. One property per website or brand. Set the reporting time zone to your city (Perth, Sydney and so on) and the currency to AUD.
- Data stream: where data comes from. One website needs one web data stream. Subdomains like shop.yourbusiness.com.au go in the same stream.
Make sure the account sits under a Google login your business controls, then give agencies user access in Admin > Account access management. We regularly see businesses that don’t own their own analytics.
2. Install GA4: Google tag or Google Tag Manager
When you create a web data stream, GA4 gives you a Measurement ID (it starts with “G-“). You can install it two ways.
Option A: the Google tag (gtag.js)
A snippet pasted into every page, or added through a plugin. Fine for a basic brochure site that will never track much beyond page views.
Option B: Google Tag Manager (our recommendation)
Google Tag Manager (GTM) is a free container you install once. After that, you manage GA4, Google Ads and Meta Pixel tags inside GTM without touching site code. We recommend it because:
- You can track form submits, button clicks and calls without waiting on a developer.
- All your tracking lives in one place with version history, so you can roll back a broken change.
- Preview mode lets you test tags before they go live.
In GTM, create a Google tag using your G- Measurement ID, fire it on all pages, then publish. For help with the build, see our Google Tag Manager setup service.
One rule: install GA4 once. If it’s in your theme and in GTM, every page view counts twice.
3. Turn on enhanced measurement (and know its limits)
Enhanced measurement tracks common actions automatically. Find it in Admin > Data streams > [your web stream] > Enhanced measurement. It covers page views, scrolls (90% depth only), outbound clicks, site search, video engagement for embedded YouTube, file downloads and form interactions.
Leave it on, but don’t rely on it for leads. The form interactions option is the weak link. It often misses forms that submit without reloading the page (common with WordPress form plugins and embeds) and can fire on failed submissions. We usually switch it off and track forms properly (see step 7).
4. Change data retention to 14 months
The setting almost everyone misses. By default GA4 keeps detailed event data for only 2 months. Standard reports still show older totals, but Explorations (the custom analysis tool) can only look back as far as your retention setting.
Go to Admin > Data collection and modification > Data retention, and set event data retention to 14 months (the maximum for standard free properties). It isn’t backdated, so do it on day one. See Google’s data retention help page for the detail.
5. Clean your data: internal traffic, developers and referrals
Filter out internal traffic
Your team visiting the site all day inflates sessions. For a small business, that can be a real chunk of traffic.
- Go to Admin > Data streams > [your stream] > Configure tag settings > Show more > Define internal traffic. Create a rule with your office IP address.
- Go to Admin > Data collection and modification > Data filters. GA4 creates an Internal Traffic filter in Testing state.
- Leave it in Testing for a few days and check it only catches your office. Then switch it to Active.
Filters are permanent, so excluded data is gone for good. IP filters also won’t catch staff on mobile or home connections with changing IPs. That’s a known limit.
Exclude developer traffic
GA4 also has a Developer Traffic filter. It excludes test hits from GTM Preview mode. Activate it in the same screen so test form fills don’t count as leads.
List unwanted referrals
When a customer pays via PayPal, Afterpay or a bank verification page and returns to your thank-you page, GA4 can credit the sale to that payment site. Suddenly “paypal.com” is your best channel and your Google Ads look weaker than they are.
Fix it in Admin > Data streams > [your stream] > Configure tag settings > List unwanted referrals. Add each payment domain your checkout uses.
While you’re cleaning up channels, check how AI tools like ChatGPT show up too. GA4 now has an AI Assistant channel, but it can miss visits. Our post on the October 2026 ChatGPT tracking bug shows how to build your own AI channel.
Set up cross-domain tracking (only if you need it)
If one journey spans two separate domains (say, yourclinic.com.au to a booking system on another domain), add both in Configure tag settings > Configure your domains. Both sites must run your GA4 tag. Subdomains don’t need this. If the booking tool won’t accept your tag, redirect users back to a thank-you page on your site instead.
6. Key events: what counts as a result
In 2024, Google renamed “conversions” in GA4 to key events. A key event is any event you’ve marked as important in GA4. A conversion is now a Google Ads term: an action Google Ads counts and bids towards. You can import a key event into Google Ads as a conversion, but marking a key event in GA4 doesn’t change your bidding on its own.
To mark an event as a key event, go to Admin > Data display > Events and click the star next to the event. For an event that hasn’t fired yet, use Admin > Data display > Key events > New key event and type the exact event name. Google’s key events help page explains the counting options.
Use Google’s recommended event names
Google publishes recommended event names. Use them, because some reports and integrations expect them. The two that matter most:
- generate_lead: for enquiry forms, quote requests and booking requests. A Melbourne physio would fire this when a booking form is submitted.
- purchase: for eCommerce orders, with transaction_id, value and currency (AUD).
What good looks like: three to five key events, each tied to real money. For calls, a custom name like phone_click is fine. Scrolls and page views are not key events.
7. Track forms reliably
Forms are where most setups break. Two methods work.
Method 1: thank-you page
Set your form to redirect to a unique page, like /thank-you-quote/, after a successful submit. In GTM, fire generate_lead when that page loads. Noindex the page so it can’t be reached any other way.
Method 2: dataLayer event
If the form shows an on-page success message, have your developer or plugin push an event into the dataLayer (a message list GTM listens to) on success, for example dataLayer.push({event: 'form_success', form_name: 'quote'}). In GTM, use a Custom Event trigger on form_success to send generate_lead to GA4.
Avoid tracking the “Submit” button click. It fires even when the form fails validation, so you’ll count errors as leads.
8. Track calls and click-to-call
For a Perth plumber, most enquiries might come by phone.
- Click-to-call: in GTM, create a Click trigger where Click URL starts with “tel:”. Fire phone_click. This tracks taps, not whether the call connected.
- Actual calls: for duration, missed calls and which ad drove the call, use Google Ads call tracking or a call tracking platform. Our call tracking setup page explains the options.
9. eCommerce tracking for Shopify and WooCommerce
- Shopify: connect GA4 through the official Google & YouTube app. It sends standard eCommerce events including purchase. Don’t also add a GA4 tag to your theme.
- WooCommerce: use Google’s official Google for WooCommerce extension, or a GTM-based plugin that pushes a full eCommerce dataLayer. Check that purchase includes a unique transaction_id, value, currency and items.
Place a real test order, then compare GA4 revenue with your store’s sales over a full week. A small gap is normal. A gap of a third or more usually means something is broken.
10. Consent mode v2 and Australian privacy
Consent mode adjusts Google tags based on whether a visitor accepts cookies. Version 2 added the ad_user_data and ad_personalization signals. Google requires it for European Economic Area and UK visitors if you use its advertising features for them.
Australia has no Europe-style cookie law, but the Privacy Act 1988 applies to many businesses and reform is ongoing. At a high level:
- Have a privacy policy that covers analytics and advertising cookies.
- Get real traffic from Europe or the UK? Use a consent banner that supports consent mode v2.
- Never send names, emails or phone numbers into GA4. It breaches Google’s policies.
This isn’t legal advice. Clinics and anyone handling health data should get proper advice.
11. Link Google Ads and Search Console
- Google Ads: Admin > Product links > Google Ads links. Lets you import key events into Ads and see Ads data in GA4. Then choose in Google Ads which conversions are primary (used for bidding). Our GA4 conversion tracking service covers this properly.
- Search Console: Admin > Product links > Search Console links. Adds organic search query data to GA4.
12. Verify with DebugView before you trust anything
Open GTM Preview mode, then go to Admin > Data display > DebugView in GA4. Act like a customer: submit the form, tap the phone number, place a test order. Each event should appear within seconds with the right parameters.
Standard reports take 24 to 48 hours to fill. You can also run our free tracking checker to spot missing or duplicate tags.
GA4 setup checklist
| Setting | Where to find it | Recommended value |
|---|---|---|
| Time zone and currency | Admin > Property details | Your city, AUD |
| Installation method | Google Tag Manager | One Google tag, fires on all pages, installed once only |
| Enhanced measurement | Admin > Data streams > [stream] | On, but form interactions off if you track forms properly |
| Data retention | Admin > Data collection and modification > Data retention | 14 months |
| Internal traffic rule | Data streams > Configure tag settings > Define internal traffic | Office IP addresses |
| Data filters | Admin > Data collection and modification > Data filters | Internal Traffic and Developer Traffic set to Active after testing |
| Unwanted referrals | Configure tag settings > List unwanted referrals | PayPal, Afterpay, payment gateways |
| Cross-domain | Configure tag settings > Configure your domains | Only if the journey spans separate domains |
| Key events | Admin > Data display > Key events | generate_lead, phone_click, purchase (3 to 5 total) |
| Google Ads link | Admin > Product links > Google Ads links | Linked |
| Search Console link | Admin > Product links > Search Console links | Linked |
| Testing | Admin > Data display > DebugView | Every key event confirmed |
The reports that actually matter
Standard reports (under Reports) are pre-built summaries. Explorations (under Explore) are custom analyses like funnels. Standard reports are enough for most owners. Use Explorations for a specific question, like where people drop out of checkout. The three that matter:
- Traffic acquisition (Reports > Acquisition): sessions and key events by channel.
- Landing page (Reports > Engagement): which entry pages produce leads. Great for spotting pages with traffic but no enquiries.
- Key events by channel: in Traffic acquisition, pick one key event in the key events column dropdown to see which channel actually drives leads or sales.
To connect this to spend, see our guide on how to measure marketing ROI.
Common mistakes
- Leaving retention at 2 months. You lose year-on-year Explorations and can’t get the data back.
- Double tagging. GA4 in the theme and in GTM, or the Shopify app plus a manual tag. Page views double.
- Trusting enhanced measurement for leads. It misses forms and counts failed submits.
- Too many key events. Marking scrolls or page views as key events pollutes your data and, if imported to Ads, wrecks bidding.
- Payment gateways as referrals. Sales get credited to PayPal, not your ads.
- No testing. “Installed” isn’t “working”. Check DebugView.
- Not owning the account. If your old agency owns the property, you can lose years of history.
- Forgetting the Meta Pixel. Running Facebook or Instagram ads? Our Meta Pixel setup guide covers it.
How long it takes and what to expect
For a service business with a couple of forms and a phone number, a proper GA4 and GTM setup takes around half a day to a day, including testing. A store with full eCommerce tracking and consent mode can take one to three days.
Give it at least two to four weeks before drawing conclusions, longer for low-traffic sites. A business getting 30 leads a month needs time before channel comparisons mean anything.
GA4 will never match your CRM or store sales exactly. Ad blockers, declined cookies and device switching all cause gaps. The goal is consistent numbers you can compare over time and use to move budget toward what works. If you run ads, it’s the data our Google Ads management in Perth is built on.
If you’d rather have it done right the first time, our team sets up GA4, GTM and GA4 conversion tracking for businesses across Australia. Not sure what’s broken now? Start with a free audit and we’ll tell you what your current tracking is missing.
FAQs
Is Google Analytics 4 free?
Yes. The standard version of GA4 is free and suits almost every small and medium business. Google Analytics 360 is the paid version for very large sites.
What is the difference between a key event and a conversion?
A key event is an action you mark as important in GA4, like a form submit. A conversion is a Google Ads setting that counts an action for ad reporting and bidding. You can import GA4 key events into Google Ads as conversions, but they’re managed separately.
Should I use Google Tag Manager or just the Google tag?
Use Google Tag Manager for almost any business website. It handles forms, calls and ad platforms in one place without code changes.
Why does GA4 show fewer sales than Shopify?
Some gap is normal because of ad blockers, declined cookies and payment redirects. A large gap usually means a missing purchase event, a checkout that isn’t tagged, or payment domains not listed as unwanted referrals.
Can I get back data older than my retention setting?
Not for Explorations. Once event data passes your retention period, it’s gone from custom analysis. Standard reports still show totals. That’s why you set 14 months on day one.
Do I need a cookie banner in Australia?
There’s no Europe-style cookie consent law in Australia right now, but the Privacy Act still applies to many businesses and you need a clear privacy policy. If you get European or UK visitors, or handle sensitive data, a consent banner with consent mode v2 is the safer choice.
Find out where your growth is leaking.
A free, no-obligation audit of your SEO, AI search visibility, ads and website. Straight answers, no sales pitch.
Get your free auditKeep reading