How to Set Up Google Analytics 4 (GA4) in 2026: A Step-by-Step Guide
Google Analytics 4 is the current version of Google's free website analytics platform, and it's the foundation almost every other piece of marketing measurement builds on. If you're setting it up for the first time, or setting it up correctly after a rushed first attempt, this walks through the full process as it actually works right now.
Before You Start
You'll need a Google account, ideally a business Gmail address rather than a personal one, since this account will own the property going forward. You'll also need admin access to your website, whether that's a page builder like Webflow, Shopify, or WordPress, or direct access to edit your site's header code.
Step 1: Create Your Google Analytics Account
Go to analytics.google.com and sign in with your Google account. If this is your first property, click “Start measuring.” You'll be asked to name your account, typically your company name, and configure data-sharing settings. Review these settings deliberately rather than accepting the defaults without looking, since they control what Google can do with your data beyond your own reporting.
Step 2: Create a Property
A property in GA4 represents a single website or app you want to track. Name the property after your website address, set your correct reporting time zone and currency, and select your industry category and business size when prompted. Click Create, then accept Google's Terms of Service to proceed.
Step 3: Choose Your Platform and Create a Data Stream
When prompted to choose a platform, select Web unless you're specifically tracking a mobile app. Enter your website's URL and give the data stream a clear name. You'll be asked whether to enable Enhanced Measurement, which automatically tracks page views, scrolls, outbound clicks, and a handful of other common events without any additional setup. Leaving this on is the right default for almost every business, since it captures useful baseline data immediately.
Step 4: Install Your Tracking Code
After creating the data stream, click “View tag instructions” to get your actual tracking code. You have two installation paths depending on your platform. Many website builders and CMS platforms, including Shopify, Wix, and Squarespace, have a native field specifically for pasting your GA4 Measurement ID, which starts with “G-”, without needing to touch any code directly. If your platform doesn't have a native integration, select “Install manually” to get the full tracking snippet, then paste it into your site's header, immediately before the closing tag.
If you're not comfortable editing site code directly, this is a reasonable moment to hand the snippet to whoever manages your website rather than risk breaking something in a header file you don't fully understand.
Step 5: Confirm Your Measurement ID
You'll reference this ID repeatedly, so it's worth knowing where to find it again later. In GA4, go to Admin, select Data Streams, choose your web data stream, and your Measurement ID is displayed at the top, always starting with the letter G followed by a hyphen and a string of characters.
Step 6: Set Up Post-Installation Basics
Once your tracking code is live, two settings are worth configuring immediately rather than leaving for later. Exclude your own internal traffic under Admin, Data Streams, so your own visits while working on the site don't distort your real visitor data. Extend your data retention setting from the 2-month default to 14 months, under Admin, Data Settings, Data Retention, so you retain enough historical data for meaningful year-over-year comparison.
What Comes Next
Installing the tracking code is the beginning of the setup, not the end. Once your tag is live, the next step is confirming the data is actually flowing correctly, which is a distinct process from installation itself and catches a surprising number of setups that look correct but silently aren't recording anything.
Frequently Asked Questions
How long does it take for data to start appearing in GA4?
Real-time data appears within minutes of a successful install, visible in the Realtime report. Standard reports, the ones showing trends over days or weeks, typically take 24 to 48 hours to begin populating fully.
Can I recover old Universal Analytics data if I never migrated to GA4?
No. Universal Analytics stopped processing new data in mid-2023, and Google permanently deleted historical Universal Analytics data in 2024. If that data wasn't exported before deletion, it's not recoverable, which is exactly why setting up GA4 correctly now, including extended data retention, matters for anyone starting fresh.
Do I need Google Tag Manager to set up GA4?
No, Google Tag Manager is optional. Many websites install GA4 directly using either a platform's native integration field or the manual tracking snippet. Tag Manager becomes more useful once you're tracking multiple tools or custom events beyond what Enhanced Measurement captures automatically, but it isn't required for a standard GA4 setup.
Once your GA4 property is live, the next step in a complete tracking setup is connecting Google Search Console, which shows you the actual search queries bringing people to your site. If you'd rather have your full tracking stack set up and verified by someone who does this daily, that's exactly what our paid media team handles as part of a free Growth Gap Analysis.