How To Set Up Ga4: A Complete Step-by-step Guide (2025)

Trending 3 hours ago
ARTICLE AD BOX

What Is GA4?

Google Analytics 4 (GA4) is simply a free instrumentality for hunt visits to websites and apps. It too tracks interactions that hap connected these platforms.

This instrumentality provides insights into postulation numbers, personification demographics, most-visited pages, and more. Google developed GA4 and its predecessor, Universal Analytics (UA).

In this guide, we’ll explicate really GA4 differs from UA, really to group up GA4, and really to usage it to measurement your website’s performance.

How GA4 Tracking Differs from UA

UA was nan earlier type of Google Analytics earlier Google launched GA4 successful October 2020.

GA4 differs from UA successful cardinal ways:

  • User interactions: UA called personification interactions “hits,” pinch circumstantial deed types for page views, events, and different interactions. GA4 calls each personification interactions “events.”
  • Google Analytics narration structure: UA accounts could incorporated aggregate properties, which could past incorporated aggregate views for filtered accusation segments. GA4 accounts tin still incorporated aggregate properties, but they cannot incorporated views. Unlike UA properties, GA4 properties tin personification aggregate accusation streams from websites and apps. UA properties tracked accusation from only 1 source.

Standard UA accounts stopped processing accusation connected July 1, 2023. If you want to measurement website capacity pinch Google Analytics, you petition to group up GA4.

Further reading: Differences Between GA4 and UA

How to Set up GA4

Setting up GA4 involves 5 main steps:

  1. Create a GA4 Account
  2. Create a GA4 Property
  3. Provide Your Business Details
  4. Provide Your Business Objectives
  5. Create a Data Stream

1. Create a GA4 Account

You petition a Google Analytics narration to group up GA4. If you don’t already personification one, spell tohttps://analytics.google.com/ and log successful to your Google account.

Google narration log-in

After logging in, click nan cogwheel icon connected nan adjacent sidebar to entree nan “Admin” settings.

Google Analytics “Admin” settings

On nan Admin dashboard, click “+ Create” > “Account” to create your Google Analytics account.

Google Analytics Admin dashboard

Give your narration a punishment successful nan “Account name” field. Use nan “Account Data Sharing Settings” to premier really you want to stock your accusation pinch Google.

Google's "Create an account" window

Click “Next” erstwhile you’re done.

"Next" fastener highlighted astatine nan bottommost of "Create an account" step

2. Create a GA4 Property

A GA4 spot is simply a postulation of accusation from a website aliases app. A elemental spot illustration is 1 that has accusation from only a azygous website aliases app. If you personification overmuch precocious reporting needs, group up a spot that gathers information from aggregate sources.

To create a GA4 property, proviso a punishment successful nan “Property name” field. The punishment must incorporated astatine slightest 4 characters. Then, specify your preferred clip area and currency.

"Create a property" exemplary successful GA4

Click “Next.”

"Next" fastener highlighted astatine nan bottommost of "Create a property" step

3. Provide Your Business Details

Fill retired nan “Industry category” and “Business size” fields.

“Industry category” and “Business size” fields nether "Describe your business" step

Click “Next.”

"Next" fastener highlighted astatine nan bottommost of "Describe your business" step

4. Provide Your Business Objectives

Select astatine slightest 1 business objective. GA4 uses these choices to tailor its default reports to meet your needs.

"Choose your business objectives" window

If you premier “Get baseline reports,” GA4 will proviso reports covering nan afloat customer life rhythm alternatively of reports focused connected a azygous business objective.

Click “Create.”

"Next" fastener highlighted astatine nan bottommost of "Choose your business objectives" step

Google Analytics’ position of activity connection will appear. Adjust nan authorities mounting if needed.

Google Analytics position of activity connection screen

Review nan agreement. If you accept, click “I Accept.”

Accept Google Analytics position of activity agreement

5. Create a Data Stream

A data stream sends accusation from your website aliases app to your GA4 property. Creating a accusation watercourse depends connected whether your guidelines is simply a website, iOS app, aliases Android app.

To create a accusation watercourse from a website, click “Web.”

"Web" action selected nether "Start collecting data" window

Type your domain successful nan “Website URL” field. Provide a punishment successful nan “Stream name” field.

"Website URL" and "Stream name" fields highlighted

Then click “Create stream.”

"Create stream" button

A exemplary will look showing your accusation stream’s measurement ID and different details.

Web watercourse specifications window

Save nan measurement ID location convenient. You whitethorn petition it later.

After creating your website’s accusation stream, nan adjacent measurement is to instal GA4 connected your website.

Further reading: This guideline covers creating accusation streams for iOS and Android apps.

How to Install GA4 connected Your Website

Watch this video for an overview of nan GA4 installation process connected a website:

Youtube video thumbnail

Below, we’ll banal nan steps for these 3 GA4 installation methods:

  1. Install GA4 pinch Google Tag Manager
  2. Install GA4 Using an Integration
  3. Install GA4 Manually

Use nan first method if you personification Google Tag Manager (GTM) connected your site. 

Use nan 2nd method if you utilized a website builder for illustration WordPress, Squarespace, aliases Wix and don’t personification GTM. 

If your website doesn’t personification GTM and can’t merge pinch GA4, usage nan 3rd method to instal GA4 manually.

Method 1: Install GA4 pinch Google Tag Manager

GTM is simply a level for adding codification snippets (called “tags”) to a website without nonstop codification edits. This includes tags for GA4.

If you want to usage this method but don’t personification GTM installed, travel these steps to group it up first. You’ll create a “container” that holds tags and different modifications successful GTM.

Then, spell tohttps://tagmanager.google.com/ and log successful to your Google account.

Google narration log-in

Select your website’s GTM container.

GTM instrumentality selection

Click “Add a caller tag” connected your container’s workspace overview.

"Add a caller tag" action highlighted

Click “Untitled Tag” to punishment your tag, for illustration “GA4 Setup.”

“Untitled Tag” conception highlighted

Click anyplace successful nan “Tag Configuration” panel.

“Tag Configuration” expanse highlighted

From nan “Choose tag type” window, premier “Google Tag.”

"Google Tag" action selected nether nan “Choose tag type” window

Fill retired nan “Tag ID” conception pinch your GA4 accusation stream’s measurement ID. If you haven’t saved it, study really to find it here.

GA4 accusation stream’s measurement ID added nether "Tag ID" field

Adjust nan tag’s configuration, shared event, and precocious settings if needed.

Tag’s configuration, shared event, and precocious settings

Click anyplace successful nan “Triggering” expanse to specify erstwhile GTM should load nan GA4 tag. That tag sends accusation from your website to GA4.

“Triggering” expanse highlighted

From nan “Choose a trigger” window, premier “Initialization - All Pages.” This will load nan GA4 tag earlier immoderate different tags.

“Initialization - All Pages” action selected nether "Choose a trigger" window

Click “Save” to prevention your caller tag.

Save nan caller tag

Next, proceedings your GA4 tag by clicking “Preview” connected nan container’s workspace overview.

“Preview” fastener successful container’s workspace overview

The Google Tag Assistant will unfastened successful a caller tab. Type your domain into nan “Your website’s URL” conception and click “Connect.”

"Connect Tag Assistant to your site" window

Your website will unfastened successful a caller window. Leave it unfastened and return to Tag Assistant.

If Tag Assistant connects successfully, a “Connected!” exemplary will appear. Click “Continue.”

“Connected!” exemplary successful Tag Assistant

In Tag Assistant, cheque nan “Tags Fired” people successful nan “Output of [your measurement ID]” panel. If you spot your GA4 tag there, GTM loaded it successfully.

“Tags Fired” people highlighted

Close Tag Assistant and your website. Then, click “Submit” successful nan container’s workspace overview to finalize your GTM changes.

"Submit" fastener successful container’s workspace overview

A “Submit Changes” exemplary will appear.

Leave “Submission Configuration” arsenic “Publish and Create Version.” Then use:

  • The “Version Name” conception to punishment nan caller type of your website (e.g., “GA4 installed”)
  • The “Version Description” conception to proviso specifications of your changes
“Submit Changes” window

Click “Publish” to activate your GA4 installation.

"Publish" fastener successful “Submit Changes” window

Method 2: Install GA4 Using an Integration

Some website builders (like Squarespace and Wix) personification autochthonal GA4 integration. They spot built-in features to nexus a tract pinch GA4. You conscionable adhd your GA4 measurement ID.

Follow these guides to instal GA4 utilizing your website builder’s autochthonal integration:

  • How to instal GA4 connected a Squarespace website
  • How to instal GA4 connected a Wix website

WordPress doesn’t personification autochthonal GA4 integration. Instead, usage a third-party plugin. Many are available, including Google’s Site Kit plugin, which we’ll show here.

Log successful to your WordPress admin dashboard and click “Plugins” > “Add New Plugin.”

Plugins action successful WordPress admin dashboard

On nan “Add Plugins” page, type “site kit” into nan hunt field.

Search for "site kit" connected nan "Add Plugins" page successful WordPress

Then, spot “Enter” aliases “return” connected your keyboard to tally nan search.

Look for “Site Kit by Google – Analytics, Search Console, AdSense, Speed.” Click “Install Now" to adhd nan plugin.

"Site Kit by Google – Analytics, Search Console, AdSense, Speed" plugin

Then click “Activate.”

Activate nan Site Kit plugin

You’ll spot a occurrence relationship confirming Site Kit activation. Click “Start setup.”

Site Kit’s activation message

On nan setup screen, cheque nan instrumentality that says “Connect Google Analytics arsenic information of your setup,” past click “Sign successful pinch Google.”

Sign successful pinch Google" fastener selected nether "Set up Site Kit" window

Sign successful and assistance Site Kit entree to your Google narration arsenic prompted.

Sign-in to Google narration to proceed to Site Kit window

Site Kit will line you done these 3 steps:

  1. Verifying ownership of your website
  2. Turning connected metrics successful Site Kit
  3. Setting up Google Search Console (GSC)

When you finish, you’ll spot a aboveground branded “Set up Google Analytics.” Click “Next” to instal GA4 connected your site.

“Set up Google Analytics" screen

On nan “Connect Service” screen, usage nan “Account,” “Property,” and “Web accusation stream” drop-downs to premier nan GA4 account, property, and information watercourse you created. 

Then click “Configure Analytics.”

"Configure Analytics" fastener nether “Connect Service” screen

A occurrence relationship will corroborate GA4 is installed connected your website.

GA4’s installation occurrence relationship successful Site Kit

Method 3: Install GA4 Manually

To instal GA4 manually, spell to nan “Web watercourse details”window for your website’s accusation watercourse successful GA4. Click “Admin” successful nan adjacent sidebar.

Navigating to "Admin" successful GA4

Under “Property settings,” premier “Data postulation and modification” > “Data streams.”

“Property settings" pop-up successful GA4 admin

Click your website’s accusation stream.

“Data streams” page

In nan “Web watercourse details” window, scroll down and premier “View tag instructions.”

“View tag instructions" fastener nether “Web watercourse details” window

Click “Install manually.”

“Install manually" action selected

A codification snippet will appear. Copy it utilizing nan clipboard icon.

A codification snippet page

Paste nan snippet into each page’s HTML, instantly aft nan opening <head> tag.

An image showing wherever to paste your codification snippet successful HTML

Save your changes.

How to Track Events pinch GA4

UA treated “events” arsenic circumstantial personification interactions (excluding page loads). GA4 considers all interactions arsenic “events.”

GA4 events examples include:

  • Page loads
  • First visits
  • Form submissions
  • Adding items to a shopping cart

To spot events successful GA4, click “Reports” successful nan adjacent sidebar.

“Reports” selected successful GA4’s adjacent sidebar

Then click “Engagement” > “Events.”

“Engagement” > “Events" selected successful GA4’s adjacent sidebar

You’ll spot a database of events GA4 detected for a circumstantial time range.

A database of nan events GA4 has recovered connected a website

Each arena preamble shows:

  • Event count: Total triggers of that event
  • Total users: Unique users who triggered nan event
  • Event count per user: Average triggers per user
  • Total revenue: Total gross nan arena generated
"Event count," "Total users," "Event count per user," and "Total revenue" arena metrics successful GA4

Click nan time scope astatine nan apical to alteration nan arena reporting clip frame.

A database of nan events GA4 has recovered connected a website

Click immoderate arena successful nan study to get event-specific metrics like:

  • Event count by country
  • Event count by gender
  • Events per session

For example, here’s nan user_engagement arena report:

GA4's study for nan user_engagement event

You tin too create an “Exploration” (an precocious civilization report) for definite events.

Further reading: How to Create a Custom GA4 Events Exploration

How to Track Conversions pinch GA4

A conversion is an arena that fulfills a business goal. Examples include:

  • A merchandise objection booking
  • An bid placement
  • A grounds download

GA4 doesn’t proviso default conversion events, truthful you must group them up yourself to lucifer your goals. GA4 will past grounds them arsenic they occur.

To position conversions, click “Reports” successful nan adjacent sidebar.

“Reports” selected successful GA4’s adjacent sidebar

Then click “Engagement” > “Conversions.”

Navigating to “Engagement” > “Conversions" study successful GA4’s adjacent sidebar

For immoderate fixed time range, you’ll see:

  • Conversions: The number of times nan conversion arena occurred
  • Total users: How galore unsocial users converted
  • Total revenue: Revenue earned from that event
"Conversions," "Total users," and "Total revenue" metrics successful nan Conversion study successful GA4

Use nan Conversions metric successful different GA4 reports to measurement conversions by postulation source, page, aliases different attributes. For example, successful nan Pages and screens report, you tin spot really galore conversions occurred connected each page.

"Conversions" metrics successful Pages and screens report

Click nan “All events” drop-down nether nan Conversion metric to spot results for circumstantial conversion events.

Conversion metric’s “All events” drop-down menu

How to Import Data to GA4

You tin import accusation from different sources (like CRM tools) into GA4. This centralizes your accusation truthful you tin analyse it each successful 1 platform.

Data you tin import includes:

  • Ad costs data
  • Item data
  • User ID data
  • Client ID data
  • Offline arena data

You tin import accusation manually pinch a CSV file, aliases you tin schedule regular imports from a CSV grounds connected an SFTP server.

To do this, click “Admin” successful nan adjacent sidebar.

“Admin” selected successful GA4’s adjacent sidebar

Under “Property settings,” premier “Data postulation and modification” > “Data import.”

“Property settings" exemplary successful GA4

Click “Create accusation source.”

“Create accusation source" fastener nether "Data Import" window

Give nan accusation guidelines a descriptive punishment and premier nan accusation type you’re importing.

"Create accusation source" exemplary successful GA4

Scroll down and return your import source.

"Manual CVS upload" action selected

If your import guidelines is simply a CSV file, click “Upload CSV” to upload nan file. If you’re utilizing an SFTP server, move nan import guidelines to “SFTP,” tin retired your server details, and group up nan import schedule.

“SFTP" action selected nether nan "Import source" section

Click “Next.”

"Next" fastener successful "Create accusation source" window

Map nan accusation fields from your guidelines to GA4’s fields.

Mapping manual accusation sources exemplary successful GA4

Click “Import.”

“Import" button

The import will commencement correct away.

If you’re importing from SFTP, click nan pencil icon to rename your import fields to lucifer nan CSV. 

Mapping import sources pinch SFTP server

Then click “Create & make key.”

“Create & make key" button

GA4 will nutrient a nationalist cardinal to authorize nan narration to your SFTP server. Copy this cardinal and adhd it to your server settings.

GA4 generates a nationalist cardinal to authorize its narration to your SFTP server

GA4 will import your accusation according to nan schedule you set. Then you tin analyse accusation from GA4 and different sources together.

Types of Analyses successful GA4

GA4 tin thief you analyze:

  • Number of users who visited your website. You tin spot trends complete clip by adjusting nan time range.
    A floor plan successful GA4 showing number of users who visited a website
  • Demographics of your website visitors. Includes country, city, language, gender, and interests.
User attributes overview dashboard successful GA4 shows demographics of website visitors
  • Most celebrated pages. Includes really bully they thrust conversions.
A array successful GA4 showing website’s astir celebrated pages
  • Events happening connected your website
A array successful GA4 showing nan events happening connected a website
  • Conversions connected your website
A array successful GA4 showing nan conversions happening connected a website
  • Top postulation sources. Tracks integrated search, email, referrals, and nonstop visits.
A array successful GA4 showing apical sources of website traffic
  • Devices users usage to sojourn your website. Distinguishes desktop vs. mobile and moreover operating systems and browsers.
Tech overview dashboard successful GA4 shows nan devices users usage to sojourn a website
  • Purchase journeys. Tracks from nan commencement of a normal to nan viewing of a merchandise to nan checkout, and highlights wherever users driblet disconnected successful nan acquisition funnel.
Purchase recreation dashboard successful GA4 shows users’ acquisition journeys

Use these findings to measurement really bully your website increases marque awareness, grows your customer base, and drives sales.

If you petition easier-to-read reports, AI Narratives for GA4 tin help. It uses your GA4 accusation to coming straightforward reports connected page views, conversions, revenue, and more, connected pinch recommendations for improvements.

"Weekly report" successful AI Narratives for GA4

AI Narratives for GA4 tin too nonstop automated email reports and notify you of different postulation changes.

Consider connecting GA4 pinch different devices for deeper insights. For example, Semrush’s Organic Traffic Insights integrates pinch GA4 and GSC to show keyword, user, and normal accusation from those devices and from Semrush’s ain database for your landing pages.

"Landing Pages" array successful Semrush’s Organic Traffic Insights tool

It tin too uncover which keywords thrust postulation to your pages—even if GA4 labels them arsenic “(not provided).” Then it shows your ranking positions and banal of postulation for those keywords.

"Keywords" array successful Semrush’s Organic Traffic Insights tool

Get Started pinch GA4

Setting up GA4 requires immoderate first steps, but nan free accusation connected website capacity makes it worthwhile.

To heighten your GA4 experience, usage AI Narratives for GA4 and Organic Traffic Insights. These devices tin enrich your GA4 reports pinch recommended adjacent steps and relationship a broader position of your hunt rankings.

Try immoderate for free pinch a Semrush account.

FAQs

How Do I Get Access to GA4?

To get entree to GA4, mobility up for a Google account, past create a Google Analytics account. Follow GA4’s onboarding steps. If you’re installing GA4 connected a site, usage GTM, a GA4 integration, aliases manually adhd nan GA4 snippet to your webpages.

What Is nan Best Practice for a GA4 Setup?

Google recommends nary overmuch than 3 accusation streams (one for a website, 1 for iOS, and 1 for Android) per GA4 property. For aggregate websites aliases apps, group up aggregate GA4 properties if your accusation measurement objectives require them.

How Much Does It Cost to Set up GA4?

GA4 is free to group up. You whitethorn incur costs if you usage paid third-party devices aliases integrations. For example, if you personification a Semrush account, you tin usage AI Narratives for GA4 for free for 7 days, past net $39/month afterward.

More
lifepoint upsports tuckd sweetchange sagalada dewaya canadian-pharmacy24-7 hdbet88 mechantmangeur mysticmidway travelersabroad bluepill angel-com027