Google Analytics is the most powerful free tool for understanding your website traffic. It tells you who visits your site, where they come from, and what they do once they arrive.
But for beginners, setting it up can feel overwhelming. That’s why we wrote this step-by-step guide on how to set up Google Analytics in 2026. Follow along and you’ll be tracking traffic in under 20 minutes.
Why You Need Google Analytics
Before we dive into how to set up Google Analytics, let’s talk about why it matters:
- See your traffic sources — Search, social media, referrals, direct.
- Understand your audience — Demographics, interests, devices.
- Track behavior — What pages people read, how long they stay.
- Measure conversions — Sign-ups, purchases, contact form submissions.
- Improve SEO — See which content works and which doesn’t.
Without analytics, you’re flying blind. With it, you can make data-driven decisions.
Step 1: Create a Google Account (If You Don’t Have One)
Google Analytics requires a Google account. If you already use Gmail, YouTube, or Google Search Console, you have one.
If not, create one at accounts.google.com/signup — it takes 2 minutes.
Tip: Use a business email (like you@yourcompany.com) instead of a personal Gmail if possible. It looks more professional and makes it easier to transfer ownership later.
Step 2: Sign Up for Google Analytics
- Go to analytics.google.com.
- Click “Start Measuring” (or “Mulai Mengukur” in Indonesian).
- Enter an Account Name — use your business name (e.g., “Daftech”).
- Click Next.
Google Analytics 4 (GA4) is the current version — there’s no more Universal Analytics (UA). Don’t be confused if you see old tutorials online that mention UA.
Step 3: Set Up Your Property
A “property” in Google Analytics represents your website. Fill in:
- Property Name — Your website name (e.g., “Daftech Blog”).
- Reporting Time Zone — Your local time zone.
- Currency — The currency you want to see in revenue reports (USD is recommended for global businesses).
Click Next.
Step 4: Fill In Business Information
Google will ask about your business:
- Industry Category — Choose the closest match.
- Business Size — Small (1–10), Medium (11–100), or Large.
- How do you intend to use Google Analytics? — Select all that apply.
Click Create and accept the Terms of Service.
Step 5: Set Up a Data Stream
A Data Stream is how Google Analytics receives data from your website.
- Choose Web.
- Enter your website URL (e.g., https://daftechid.com).
- Enter a Stream Name (e.g., “Daftech Blog — Web”).
- Leave Enhanced Measurement ON — it automatically tracks page views, scrolls, outbound clicks, and more.
- Click Create Stream.
After the stream is created, Google will show you a Measurement ID (format: G-XXXXXXXXXX). Copy this — you’ll need it next.
Step 6: Install the Tracking Code
You have two options for installing the tracking code:
Option A: Using a Plugin (Easiest for WordPress)
If your site runs on WordPress, the easiest way is to use a plugin that handles it for you:
- Rank Math SEO — go to Rank Math → General Settings → Analytics → paste your Measurement ID.
- MonsterInsights — a dedicated Google Analytics plugin for WordPress.
- GA Google Analytics — a lightweight free plugin.
Option B: Manual Installation (Any Website)
If you don’t use WordPress, paste this code just before the </head> tag on every page:
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XXXXXXXXXX');
</script>
Replace G-XXXXXXXXXX with your actual Measurement ID.
Step 7: Verify It’s Working
After installing the tracking code:
- Open your website in a new browser tab.
- Go back to Google Analytics.
- Click Reports → Realtime in the left sidebar.
- You should see 1 active user (that’s you).
If you see yourself in Realtime, the setup is working. If not, wait 5 minutes and refresh.
Step 8: Link Google Search Console
Linking Google Search Console to Analytics gives you search queries, impressions, and clicks in the same place.
- In Google Analytics, go to Admin → Product Links → Search Console Links.
- Click Link.
- Choose your Search Console property.
- Click Submit.
Now you’ll see organic search data combined with your Analytics reports.
Step 9: Set Up Conversions (Optional but Recommended)
Conversions tell you when someone takes a desired action: filling a form, subscribing, or purchasing.
Common conversions to track:
- Form submissions — contact forms, lead magnets.
- Newsletter signups — email subscribers.
- Purchases — e-commerce orders.
- Downloads — free guides, templates.
In GA4, go to Admin → Events → Create Event and set up triggers. Or use a plugin that handles it automatically.
Step 10: Learn the Key Reports
Once you have traffic, focus on these reports:
- Realtime — Who’s on your site right now.
- Acquisition → Traffic Acquisition — Where visitors come from.
- Engagement → Pages and Screens — Most-viewed pages.
- User Attributes → Demographics — Age, gender, location.
- Tech → Tech Details — Devices, browsers, operating systems.
Check these weekly to understand what’s working.
Common Beginner Mistakes to Avoid
- Not filtering internal traffic — Your own visits will inflate data.
- Not setting up goals — You’ll miss critical conversion data.
- Ignoring mobile data — Most traffic is mobile now.
- Not linking Search Console — You miss valuable SEO data.
- Checking analytics daily — Data is noisy day-to-day; look at trends weekly.
Frequently Asked Questions
Is Google Analytics free?
Yes. Google Analytics is free for up to 10 million hits per month. Google Analytics 360 (enterprise) is paid, but you’ll never need it as a small business.
What’s the difference between GA4 and Universal Analytics?
GA4 is the current version (launched 2020, replaced UA in 2023). It uses an event-based model, which is more flexible than UA’s session-based model.
How long until I see data?
Realtime data appears within seconds. Standard reports (like Traffic Acquisition) update within 24–48 hours.
Can I track multiple websites?
Yes. You can create multiple properties under one account, or use separate accounts for different businesses.
Final Thoughts on How to Set Up Google Analytics
Learning how to set up Google Analytics takes about 20 minutes — but the payoff lasts for years. Once installed, you’ll have data-driven insights into your traffic, audience, and conversions.
If you’re just starting out, focus on the basics: install the tracking code, link Search Console, and check the Realtime report weekly. As you grow, explore advanced features like conversions and audiences.
If you’re also building your website, check out our guide on how to improve website speed — Analytics data on slow pages will show you exactly what to fix.
Have questions about Google Analytics setup? Let us know in the comments. For more guides, check out our blog.
