LoginStart free trial
Make Money Online

How to Set Up Google Analytics on a Website

Install Google Analytics (GA4) the right way, confirm it's actually tracking, and set up the one custom event that tells you what really matters.

Burtlett Zikonde August 9, 2026 8 min read
How to Set Up Google Analytics on a Website

A website without analytics is a business with no idea who's actually showing up or what they're doing once they arrive. Setting this up takes about ten minutes and answers questions you'd otherwise just be guessing at.

Step 1: Create your GA4 property

Go to analytics.google.com, sign in, and create an account and a property (GA4 is the current standard. The older Universal Analytics has been retired) for your website.

Step 2: Get your Measurement ID

Inside your new property, find your Measurement ID. It starts with G-, you'll need this for the next step.

Step 3: Install it on your site

If you're on WordPress, install the Site Kit by Google plugin (Plugins > Add New, search for it) and connect your account, it handles the tracking install without touching any code. If you're on a different site builder, look for a "Header code" or "Tracking code" field in your site's settings and paste your Measurement ID snippet there.

Step 4: Confirm it's actually tracking

Go to Reports > Realtime in Analytics, then visit your own site in another browser tab. You should see yourself appear as an active user within a minute. If you don't, the install didn't work and needs another look before you rely on it.

Step 5: Set up one key event

GA4 tracks some things automatically, but define one custom event that actually matters to your business. A click on your "Contact" or "Sign Up" button, for example. Go to Admin > Events to set this up. Without one defined conversion, you'll have data but no clear signal of what "working" actually looks like.

Step 6: Check it weekly at first

Look at Reports > Acquisition (where your visitors are coming from) and Engagement (what they're actually doing) on a regular basis, at least weekly when you're starting out, this is where the real patterns show up over time.

Common mistakes

  • Installing it and never checking back afterward
  • Not confirming realtime tracking works before assuming it's live
  • Tracking everything with no defined key event, leaving no clear signal of success
  • Confusing GA4's event-based model with the older Universal Analytics habits, they don't work the same way
  • Checking data once and expecting a clear pattern before enough time has passed

Your first step

  • Create your GA4 property and get your Measurement ID
  • Install it on your site (via a plugin or your site builder's tracking code field)
  • Confirm it's tracking using the Realtime report
  • Define one custom event that matters to your business
  • Check Acquisition and Engagement reports weekly for the first month

Continue learning

Related Lessons

Ready To Start?

Try Linkwards free for 14 days.

Start My Trial