Google Analytics 4 Setup Guide: How to Install GA4 on Your Website in 2026

Uncategorized

If you still feel a bit lost since Universal Analytics was shut down, you are not alone. Most small business owners we work with at adhurl.com tell us the same thing: they created a GA4 property in a rush, but they are not sure if their data is actually clean, complete, or even being collected properly.

This guide fixes that. We will walk through a complete Google Analytics 4 setup in 2026, from creating the property to firing your first key events through Google Tag Manager. No jargon, no skipped steps.

What You Will Need Before Starting

  • A Google account (preferably your business Gmail, not a personal one)
  • Admin access to your website (WordPress, Shopify, Webflow, etc.)
  • About 25 to 30 minutes
  • A Google Tag Manager account (free, we will create one together)
analytics dashboard laptop

Step 1: Create Your Google Analytics 4 Property

Head over to analytics.google.com and sign in. If this is your first time, you will be prompted to create an account directly. Otherwise, click the Admin gear icon at the bottom left.

1.1 Create the Account

  1. Click Create then choose Account.
  2. Name your account after your business (for example: Adhurl Inc.).
  3. Leave the data sharing settings as default unless you have a specific compliance reason to change them.

1.2 Create the Property

  1. Enter a property name. Tip: use the website name, like adhurl.com – Main Site.
  2. Set your reporting time zone and currency. This matters: changing it later will affect how historical data is bucketed.
  3. Fill in your industry category and business size.
  4. Pick at least one business objective (Generate leads, Drive online sales, etc.). GA4 uses this to customize your default reports.

1.3 Add a Web Data Stream

  1. Choose Web as the platform.
  2. Enter your full website URL (with https://).
  3. Give the stream a name.
  4. Leave Enhanced Measurement turned ON. This automatically tracks scrolls, outbound clicks, site search, video engagement, and file downloads.
  5. Copy your Measurement ID (it starts with G-). You will need it in Step 3.
analytics dashboard laptop

Step 2: Create Your Google Tag Manager Container

You can install GA4 directly through the gtag.js snippet, but if you plan to track buttons, form submits, or purchases, Google Tag Manager (GTM) will save you hours. It also keeps your site code clean.

  1. Go to tagmanager.google.com and click Create Account.
  2. Enter your account name (your business name) and select your country.
  3. For the container, enter your website URL and choose Web.
  4. Accept the Terms of Service.
  5. You will see two code snippets. Install them on your website:
    • First snippet in the <head> section
    • Second snippet right after the opening <body> tag

WordPress Shortcut

If you use WordPress, install a plugin like GTM4WP or use your theme’s header/footer scripts feature. Paste your GTM container ID (format GTM-XXXXXXX) and you are done.

Step 3: Install GA4 Through Google Tag Manager

  1. Inside GTM, click Tags then New.
  2. Name your tag clearly: GA4 – Configuration.
  3. Click Tag Configuration and choose Google Tag.
  4. Paste your Measurement ID (the G-XXXXXXX from Step 1.3).
  5. Under Triggering, select All Pages – Initialization.
  6. Click Save.

Now click Preview at the top right of GTM. Enter your site URL. A debug window will open. Navigate your site and confirm the GA4 tag fires on every page.

Once verified, click Submit in GTM, give your version a name like v1.0 – GA4 install, and publish.

analytics dashboard laptop

Step 4: Configure Your Key Events

GA4 calls conversions key events since 2024. Enhanced Measurement already tracks the basics, but you should manually configure events that match your business goals.

Common Key Events by Business Type

Business Type Recommended Key Events
Service / Lead Gen form_submit, generate_lead, phone_click, contact_click
Ecommerce add_to_cart, begin_checkout, purchase, view_item
Content / Blog newsletter_signup, scroll (90%), file_download
SaaS sign_up, start_trial, demo_request

How to Create a Custom Event in GTM

  1. In GTM, create a new tag and select Google Analytics: GA4 Event.
  2. For Measurement ID, reuse the one from your Google Tag.
  3. Set the event name (use snake_case, like contact_click).
  4. Create a trigger (for example, a click trigger on your contact button using CSS selector).
  5. Save and test in Preview mode.

Mark Events as Key Events

  1. In GA4, go to Admin then Events.
  2. Find your event in the list (you may need to wait 24 to 48 hours for it to appear).
  3. Toggle Mark as key event.

Step 5: Final Configuration Checklist

Before you call it done, make sure you handle these settings. They are easy to forget but will save you headaches later.

  • Data retention: Admin > Data Settings > Data Retention. Switch from 2 months to 14 months.
  • Internal traffic filter: Exclude your own IP and your team’s IPs so your visits do not pollute the data.
  • Cross-domain tracking: If you use a separate checkout or booking subdomain, configure it under Data Streams > Configure tag settings.
  • Link Google Ads and Search Console: Both under Admin > Product Links.
  • Consent Mode v2: Required in the EU and UK. Use a CMP like Cookiebot, Iubenda, or Axeptio integrated with GTM.
analytics dashboard laptop

How to Verify Your Setup Is Working

  1. Open your website in one tab.
  2. Open GA4 and go to Reports > Realtime.
  3. You should see yourself as an active user within 30 seconds.
  4. Click around your site and trigger your key events. They should appear in the Event count by Event name card.

If nothing shows up, the most common culprits are: GTM not published, ad blocker enabled, or Consent Mode blocking the tag before consent is given.

FAQ

What does GA4 stand for?

GA4 stands for Google Analytics 4, the fourth and current generation of Google’s free analytics platform. It replaced Universal Analytics on July 1, 2023.

Is GA4 hard to learn?

The interface is more complex than Universal Analytics, but the core setup takes under an hour. The biggest learning curve is the new event-based data model and the Explore reports section.

How much does Google Analytics 4 cost?

The standard version is completely free for almost every small and mid-sized business. There is a paid tier called Google Analytics 360 aimed at enterprises with massive data volumes.

Do I still need Google Tag Manager if I install GA4 directly?

You can run GA4 without GTM, but as soon as you want to track custom events (button clicks, form submits, scroll depth on specific pages), GTM becomes essential. Install it now and save yourself a future migration.

How long until data appears in reports?

Realtime data shows within seconds. Standard reports update within 24 to 48 hours. Key event toggles also need up to 24 hours to take effect.

Can I import my Universal Analytics data into GA4?

No. Universal Analytics data was permanently deleted by Google in July 2024. If you did not export it back then, it is gone. Make sure you regularly export GA4 data to BigQuery if you want long-term storage.

Wrapping Up

A clean Google Analytics 4 setup is the foundation of every smart marketing decision you will make this year. Take the time to configure your key events properly. Six months from now, when you are looking at your dashboard trying to figure out what is actually driving leads, you will thank yourself.

Need help auditing your GA4 setup or migrating your tracking stack? The team at adhurl.com can run a full audit and have your analytics dialed in within a week.

Leave a Comment