You can have Google Analytics 4 (GA4) collecting data on a new website in roughly 20–40 minutes: create an Analytics account, create a property, add a web data stream, install the Google tag, then confirm hits in Realtime. The only prerequisites are a Google account with edit rights and access to your site's code or tag manager.
Most setup guides stop at "tag installed." That's where problems start: duplicate pageviews from a plugin plus a hard-coded tag, missing internal traffic filters, and no conversion events. The steps below cover the full path — account to verified data — with the checks that catch those issues before your first month of reporting is polluted.
Step 1: Create the Analytics account and property
Sign in at analytics.google.com with the Google account that should own the data (use a shared business account, not a personal one, so access survives staff changes). Choose Admin → Create → Account. The account is the container; the property is where data for one website or app lives. Name the account after your company and the property after the site, e.g. "Acme — acme.com".
In the property setup, set the reporting time zone and currency. Both are permanent — GA4 cannot change them later — so pick the zone where you actually make decisions, not the server's zone. Accept the data-sharing settings you're comfortable with; they don't affect collection.
- One account per business, one property per website (not per page or campaign).
- Time zone and currency are locked after creation — double-check before saving.
- Grant colleagues the least privilege they need: Viewer for reporting, Editor for tag work, Administrator sparingly.
Step 2: Add a web data stream and get your Measurement ID
Inside the property, open Admin → Data streams → Add stream → Web, enter your domain, and save. GA4 creates a stream with a Measurement ID in the format G-XXXXXXXXXX. That ID is what every installation method below uses, so copy it somewhere safe.
Enable enhanced measurement (it's on by default). It captures scrolls, outbound clicks, site search, video engagement and file downloads without extra code. You can switch individual events off later if they add noise.
Step 3: Install the Google tag (three routes)
There are three common installation routes, and the right one depends on your stack. If you're planning a rebuild, decide this early — it belongs in your developer brief alongside analytics ownership and access.
Never run two methods at once. A CMS plugin plus a hard-coded tag in the theme header is the single most common cause of doubled pageviews in GA4, and it can take weeks to notice.
- CMS plugin (WordPress, Shopify, Squarespace, Wix): paste the G- ID in the platform's analytics field or a Site Kit-style plugin. Fastest route for most small sites.
- Google Tag Manager: create a GA4 Configuration tag, trigger on All Pages, and publish. Best when you'll add pixels, consent tools or event tracking later.
- Hard-coded gtag.js: paste the snippet Google provides into the <head> of every page. Works, but requires a developer for every future change.
Step 4: Verify data is actually arriving
Open Reports → Realtime in GA4 and visit your site in a second browser or on your phone. Your visit should appear within about 30 seconds, with the page title and country. If nothing shows, the tag isn't firing: check the page source for the G- ID, ad blockers on your test browser, and any consent banner that blocks analytics until acceptance.
Standard reports (Acquisition, Engagement) lag 24–48 hours behind, so don't judge a fresh property by them on day one. Realtime is the only reliable setup check.
Step 5: Mark key events and conversions
GA4 tracks pageviews and a handful of automatic events out of the box, but a form submission or phone tap is not a conversion until you say so. Open Admin → Events, and for each action that matters — form_submit, generate_lead, call_click, purchase — toggle "Mark as key event." Build custom events in Tag Manager if your form plugin doesn't already send one.
Keep the list short. Five to eight key events covering enquiries, sales and sign-ups give you a usable funnel; thirty events nobody reviews give you nothing. This is the same discipline that keeps a launch clean in our SEO launch checklist.
Step 6: Filter internal traffic and set data retention
Your own team's visits will otherwise inflate every number. In Admin → Data settings → Data filters, create an "Internal traffic" filter using IP addresses (define them under Data streams → Configure tag settings → Define internal traffic), then set the filter state to Testing, confirm it works, and switch it to Active.
In Admin → Data settings → Data retention, change the default from 2 months to 14 months. This affects how long user-level and event data stay explorable — a one-click change most setups skip.
| Method | Setup time | Skill needed | Best for | Duplicate risk |
|---|---|---|---|---|
| CMS plugin | 10–15 min | Low | WordPress, Shopify, Wix sites | Medium if a tag is also hard-coded |
| Google Tag Manager | 30–45 min | Medium | Sites adding pixels or events later | Low with one config tag |
| Hard-coded gtag.js | 20–30 min | Developer | Custom-built sites | High if theme and plugin both fire |
| Server-side tagging | 4–8 hours | High | Large sites, strict privacy needs | Low |
Step 7: Link Search Console and Google Ads
Under Admin → Product links, connect Search Console (for query data inside GA4) and Google Ads if you run paid campaigns. Both are free to link and take minutes. If you're budgeting the wider project, our Website Project Cost Estimator helps you see where analytics fits against design and build costs.
Finally, export a simple weekly report — sessions, key events, top landing pages — and give someone ownership of reading it. Analytics only pays back when a person acts on it. For background on how the platform evolved from Universal Analytics, see Google Analytics.
Frequently asked questions
How do I set up Google Analytics for my new website? Create an Analytics account and a GA4 property, add a web data stream for your domain, then install the Google tag via your CMS plugin, Google Tag Manager, or hard-coded gtag.js. Confirm a visit appears in Realtime before you move on to events and filters.
How do I set up Google Analytics step-by-step? The sequence is: account → property (set time zone and currency) → web data stream (copy the G- ID) → install the tag once → verify in Realtime → mark key events → filter internal traffic and extend data retention → link Search Console and Ads. Each step takes minutes; skipping verification is what causes silent failures.
How to integrate Google Analytics 4? Integration means placing the GA4 Measurement ID (G-XXXXXXXXXX) where your site can fire it — usually a CMS analytics field, a Tag Manager GA4 Configuration tag, or the gtag.js snippet in the page head. Use one method only, and if you use a consent tool, make sure analytics loads after consent.
- A standard GA4 setup takes 20–40 minutes across seven steps: account, property, data stream, tag, verification, key events, and filters.
- Install the tag one way only — a plugin plus a hard-coded tag doubles pageviews and is the most common GA4 error.
- Change data retention from 2 to 14 months and activate an internal traffic filter on day one; both are easy to forget.
- Mark five to eight key events and link Search Console so the property answers real business questions, not just pageviews.
Design and UX writer
Rachel covers interface design, accessibility and mobile usability for business websites. She has spent years helping teams simplify cluttered sites into clear, usable experiences. Her writing favors checklists and concrete examples.


