Feature guide
Feature guide5 min read

How to add Google Analytics to your website

Google Analytics tells you who's visiting your site and what they're doing. Here's exactly how to set it up — and which reports are worth your time vs noise.

Quick answer

Adding Google Analytics 4 to a website takes 10–15 minutes. Create a Google Analytics account at analytics.google.com, set up a property for your website, and install the tracking code on every page (most modern website builders including Adviita have a one-field input for this). For small businesses, the key reports are: visitor count, top pages, traffic sources, and goal completions (form submissions). Most other reports are noise.

Step-by-step

  1. 1

    Decide if you actually need Google Analytics

    Google Analytics is powerful but adds tracking cookies that require consent under GDPR/CCPA (cookie banner needed), and the interface is overkill for most small businesses. The alternative: privacy-first analytics like Plausible, Fathom, or Adviita's built-in analytics — no cookie banner needed, simpler interface, the metrics that actually matter for small businesses. For most service businesses, simpler privacy-first analytics is the better choice. Use Google Analytics if you specifically need ad-platform integration (Google Ads, Facebook Ads attribution) or you're scaling beyond basic reporting.

  2. 2

    Create a Google Analytics 4 account

    Go to analytics.google.com and sign in with a Google account (use a permanent business account, not a personal one — losing access is painful). Click 'Start measuring' and create an account (your business name). Then create a property (your website) and add a data stream for 'Web'. Enter your website URL and stream name. Google generates a Measurement ID (G-XXXXXXXXXX) — copy this; you'll need it in the next step. Note: GA4 replaced the older Universal Analytics in 2023; if guides reference 'UA-' codes, they're outdated.

  3. 3

    Install the tracking code on your website

    Three installation methods. Modern website builders: Adviita, Wix, Squarespace, and most others have a Google Analytics field in settings — paste your Measurement ID and you're done. WordPress: install a plugin (Site Kit by Google, MonsterInsights, or Google Tag Manager) and connect via Measurement ID. Hand-coded sites: paste Google's provided tracking script into the head section of every page. Adviita handles this in one field — pop in the G-XXXXXXXXXX code and tracking starts within minutes.

  4. 4

    Verify tracking is working

    After installation, go to Analytics > Reports > Realtime in your Google Analytics dashboard. Visit your own website in another browser tab. You should see yourself appear as a 'Realtime user' within 60 seconds. If you don't see traffic, three common issues: ad blockers (test in incognito with ad blocker disabled), wrong Measurement ID (re-check from your data stream settings), or tracking code installed on only some pages (verify it's in your header template, not a single page).

  5. 5

    Set up cookie consent

    Google Analytics sets cookies that require consent under UK/EU GDPR. Install a cookie consent tool (Cookiebot, CookieYes, Termly — free tiers available, or use your website builder's built-in option if available). Configure it to block Google Analytics until users accept. Many small business sites lose 30–60% of analytics data to consent rejection, which is one reason privacy-first alternatives are increasingly preferred.

  6. 6

    Configure goals and events

    Default GA4 tracks page views and basic engagement. To track actual business outcomes, configure 'events' for the things that matter: contact form submissions, phone number clicks, WhatsApp button clicks, booking widget interactions. GA4's event tracking is more flexible than the older Universal Analytics — most builders including Adviita auto-track common events. For more advanced tracking, use Google Tag Manager (free, more complex). Without configured events, GA4 shows you traffic but not whether traffic converts.

  7. 7

    Focus on the reports that matter

    GA4 has dozens of reports; most are noise for small businesses. The four worth checking weekly. Realtime — confirms tracking is live. Acquisition > Traffic acquisition — where your visitors come from (search, social, direct). Engagement > Pages and screens — which pages get the most traffic. Engagement > Events — which conversion actions (form submissions, etc.) happened. Ignore demographics, devices, and most other reports unless you have a specific question they answer.

Tips & best practices

  • Use a permanent Google account for Analytics, not your personal one. Losing access (someone leaves the company, password compromised) is one of the worst things that can happen — set up multiple admin users to protect against this.
  • Set up Google Search Console alongside GA4. They're complementary — GA4 tells you what people did on your site, Search Console tells you what searches brought them there.
  • Privacy-first analytics (Adviita's built-in, Plausible, Fathom) skip the consent banner entirely and give you the same useful information without the complexity. Consider them before defaulting to Google Analytics.

Common questions

Is Google Analytics free?

+

Yes, free for small to medium businesses. There's a paid GA4 360 enterprise tier ($150,000+/year) but ordinary GA4 is genuinely free with no usage caps that affect typical small businesses.

Do I need Google Analytics if I have Adviita's built-in analytics?

+

Probably not. Adviita's built-in analytics covers the metrics that matter for most small businesses (visitor count, top pages, traffic sources, form submissions) without requiring cookie consent. Add Google Analytics only if you need ad-platform attribution or more advanced reporting.

How long does it take Google Analytics to start showing data?

+

Realtime data appears within 60 seconds of installation. Aggregate reports populate over 24–48 hours as data accumulates. Don't judge your traffic patterns from the first week — give it a month for meaningful trends.

Why does my Google Analytics show fewer visitors than my web host's analytics?

+

Two main reasons. GA4 only counts visitors who accept cookies (consent rejection typically removes 30–60%). Web host analytics counts bots and crawlers GA4 filters out. The truth is usually closer to what GA4 shows, but with adjustment for consent rejection.

Read next

Ready to build your site?

Free to start. No credit card required. Live in under 60 seconds.

Get started free