Analytics · Integration guide

Google Analytics 4 (GA4) on Website Killer

GA4 is the current generation of Google Analytics — the most-used analytics platform on the web. On a Website Killer site, install GA4 via a single script tag in the head; events fire automatically (page views, scroll depth, outbound clicks). Setup takes 5 minutes. For privacy-conscious sites, consider Plausible or Cloudflare Web Analytics instead — both are cookie-free.

Google Analytics 4 (GA4) home: analytics.google.com

The pitch

Why connect this

  • Industry-standard analytics (the default reference everyone compares to)
  • Free — no cost for sub-10M-event-per-month sites
  • Cross-device user tracking via Google Signals
  • Integration with Google Ads for conversion tracking
  • Demographic and interest data from Google's signed-in users

6 steps · ~15 minutes

Step-by-step setup

  1. 1

    Create a GA4 property

    In Google Analytics (analytics.google.com) → Admin → Create Property → Choose 'Web' platform. Enter your site URL and pick a time zone. GA4 issues a Measurement ID (G-XXXXXXXX).

  2. 2

    Copy the GA4 install snippet

    GA4 shows you a `<script>` block with two tags — the gtag.js script and the gtag('config', 'G-XXXXXXXX') call. Copy both.

    <!-- Google tag (gtag.js) -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXX"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());
      gtag('config', 'G-XXXXXXXX');
    </script>
  3. 3

    Add the snippet to your Website Killer site

    Open chat: 'Add Google Analytics with measurement ID G-XXXXXXXX'. The AI inserts the snippet into the site's <head>. Publish to push live.

  4. 4

    Configure key conversion events

    GA4 → Admin → Events → Mark as conversion: 'sign_up', 'purchase', and any custom event you care about. Conversion events get prioritized reporting and feed into Google Ads.

  5. 5

    Add a cookie banner if your audience is in the EU/UK

    GA4 sets tracking cookies which require consent under GDPR/ePrivacy. In Website Killer chat: 'Add a GDPR cookie consent banner that defers GA4 until consent is granted'. The AI wires it up using gtag('consent') APIs.

  6. 6

    Verify data is flowing

    GA4 → Reports → Real-time. Open your site in another tab. You should appear as an active user within 30 seconds. If not, check the snippet is in the <head> (not the <body>) and the measurement ID is correct.

FAQ

Frequently asked questions

GA4 or Plausible?

GA4 if you need the most-detailed analytics and the Google Ads integration. Plausible if you want privacy-first analytics (no cookies, no GDPR banner needed) with a simpler interface. Most marketing sites are well-served by Plausible at $9-19/mo; GA4 is more powerful but more complex.

Does GA4 need a cookie banner?

In the US: not legally required, but recommended. In the EU/UK: yes, GA4 sets tracking cookies which require explicit opt-in consent under GDPR / ePrivacy. The banner should default to denied; only fire GA4 after the user accepts.

Can I track form submissions?

Yes — GA4 auto-tracks 'form_submit' events on most forms. For custom tracking, use the chat: 'Fire a GA4 event called signup_completed when the contact form submits'. The AI wires the gtag('event', ...) call to your form handler.

What about Google Tag Manager (GTM)?

GTM is a container for managing multiple tracking scripts (GA4 + Meta Pixel + Hotjar + etc.). If you only need GA4, skip GTM and install GA4 directly. If you need 3+ scripts, GTM consolidates them into one install and simplifies cookie consent management.

Related pages

Keep exploring

Ready to connect Google Analytics 4 (GA4)?

Generate a site on Website Killer, then add Google Analytics 4 (GA4) via chat. Free for one project.