Setting up Google Analytics 4 takes about 15 to 30 minutes and costs nothing for the standard version. You create a property, add a web data stream, install the Google tag on every page, and check the Realtime report to confirm data is flowing.

Key facts

  • GA4 is free; the paid enterprise tier is Google Analytics 360, priced per customer.
  • The Measurement ID starts with G- and links your website to your GA4 property.
  • Enhanced measurement tracks page views, scrolls, outbound clicks, site search, video engagement, file downloads and form interactions without extra code.
  • User-level data is kept for 2 months by default and 14 months at most; standard reports are kept indefinitely.
  • Universal Analytics stopped collecting data in July 2023, and Google ended access to its data in July 2024.
  • Google Analytics runs on 55.49% of all websites, per Leadsie.

Setup steps at a glance

StepWhat to doWhere to find it
1. Create the propertyName the account and property, set the time zone and currencyanalytics.google.com, then Admin, then Create Property
2. Add a data streamChoose Web, enter your site URL and name the streamAdmin, then Data Streams, then Add stream
3. Copy the Measurement IDCopy the ID that starts with G-Data Streams, then your web stream
4. Install the tagAdd the Google tag with your Measurement IDGoogle Tag Manager, a plugin, or the site code
5. Verify the dataVisit your site and watch the Realtime reportReports, then Realtime

GA4 vs Universal Analytics

AreaUniversal AnalyticsGoogle Analytics 4
Data modelSession-based, built on hitsEvent-based, every interaction is an event
SessionsReset at midnight and on a new campaignContinue across midnight and campaigns
ConversionsGoals, capped at 20 per viewKey events, with no fixed cap
Data retentionUnlimited user-level data2 or 14 months for user-level data
BigQuery exportPaid GA360 onlyFree for every property

Create the property and data stream

Go to analytics.google.com and sign in. Click Start measuring, name the account, then create a property with a name, a reporting time zone and a currency. The time zone and currency affect how days and revenue are counted, so set them now.

Pick your industry, business size and objectives; these only change which default reports you see. Then choose Web, enter your website URL and name the stream.

Leave enhanced measurement switched on. It records page views, scrolls, outbound clicks, site search, video engagement, file downloads and form interactions with no extra code.

Install the Google tag

You have three ways to install the tag, and Google Tag Manager is the usual pick. In Tag Manager, create a new tag, choose the Google Tag type, and paste your Measurement ID as the Tag ID.

Set the trigger to Initialization on All Pages. Preview the container to check the tag fires, then submit and publish it.

If your site has a native GA4 integration or a plugin, enter the Measurement ID in its settings instead. Without either option, copy the snippet from Admin, then Data Streams, then View tag instructions, and paste it into the head section of every page.

Do not install the tag twice. Two copies of the tag on one page double-count page views and distort every report that follows.

Verify data is flowing

Open Reports, then Realtime, and visit your website in another tab. Your visit should appear within a few seconds. If nothing appears, check the Measurement ID in the tag matches the one in your data stream.

DebugView shows each event as it fires, which helps when a form or button event is missing. Enable debug mode, trigger the action on your site, and watch the event appear in Admin, then Data Display, then DebugView.

Wait 24 to 48 hours before judging traffic levels. GA4 processes data in batches, so the first day of reports is usually incomplete.

Configure the settings most people skip

Set data retention to 14 months in Admin, then Data Settings, then Data Retention. The default is 2 months, and the setting only affects data collected after you change it.

Filter out your own visits in Admin, then Data Settings, then Data Filters. Internal traffic inflates session counts and hides real behaviour, so define your office IP addresses and mark the filter as active.

Mark the events that matter as key events in Admin, then Data Display, then Events. A purchase, a form submission or a sign-up only counts once you mark it. GA4 has no fixed cap on key events, unlike the 20-goal cap in Universal Analytics.

Link Search Console in Admin, then Product Links, then Search Console links. The link adds search query data to GA4 reports.

Link Google Ads the same way if you run ads. Switch on the free BigQuery export early so raw events are stored beyond the 14-month limit.

For a paid alternative with different limits, see best Google Analytics alternatives.

FAQ

How long does it take to set up Google Analytics 4?

About 15 to 30 minutes for a basic setup. Creating the property and installing the tag takes most of that time, and data usually appears in the Realtime report within minutes.

Is Google Analytics 4 free?

Yes, the standard version of Google Analytics 4 is free. The paid enterprise tier is Google Analytics 360, which is priced per customer and adds higher limits and support.

What is a GA4 Measurement ID?

It is the ID that links your website to your GA4 property, and it starts with G-. You paste it into your tag manager, plugin or tracking code so data goes to the right property.

How do I know GA4 is working?

Open the Realtime report and visit your site in another tab. If your visit appears within a few seconds, the tag is installed. DebugView shows each event as it fires.

Why does GA4 keep only 14 months of user-level data?

Google limits user-level data retention to 2 or 14 months in GA4, so set it to 14 months. Standard aggregated reports are kept indefinitely, and the free BigQuery export stores raw events for longer.

Sources