If you're a beginner to Google Analytics how to set up correctly from the start saves time and prevents data issues later.
Many site owners install the tag and assume it is working, only to find gaps in their data much later.
This GA4 setup guide explains the GA4 setup process: creating your property, generating your Measurement ID, choosing an installation method, confirming data flow, and understanding default tracking.
It is designed for website owners, marketers, and anyone managing a site who needs a reliable analytics setup.
Key Takeaways
- A proper GA4 setup requires creating a property and web data stream before adding any Google Analytics tracking code.
- Google Tag Manager is the most flexible installation method and simplifies future tracking changes.
- Always verify data collection using DebugView before relying on reports.
What You Need Before You Start
Organize your prerequisites before working in the GA4 interface to avoid backtracking.
GA4’s account, property, and data stream structure differs from older Google Analytics versions, so it is important to understand the basics before creating anything.
Google Account, Site Access, And Ownership Considerations
You need a Google account to access GA4.
If you are setting up analytics for a business, use an account owned by the business, not a personal Gmail.
Losing access to the account means losing access to the property.
You must also be able to add code to your website, either directly or via a tag manager.
If you are not the developer, confirm someone can add a snippet to the site header before you start.
For UK businesses, clarify who has data controller responsibility.
GA4 collects user data, so under UK GDPR, you need a lawful basis to process it.
This affects how you handle consent once the tag is live.
Choosing The Right Account, Property, And Data Stream Structure
GA4 uses a three-tier structure: Account, Property, and Data Stream.
The account represents a business or organisation.
A property sits inside an account and represents a specific website or app.
A data stream sits inside a property and is the source that sends data in.
For most businesses with a single website, one account, one property, and one web data stream is sufficient.
Agencies managing multiple clients should use separate properties for each client, not separate accounts unless there is a clear need to isolate billing or access.
When To Use A New GA4 Property Vs An Existing One
If you previously had Universal Analytics, that property is now inactive.
You need a GA4 property, not a continuation of the old one.
If a GA4 property already exists for your site, check the Admin section before creating a duplicate.
Duplicate properties send data in parallel but create confusion in reporting.
Before creating anything new, review what properties already exist under the account.
Create Your Property And Web Data Stream
Creating the property and data stream is your first step inside the GA4 interface.
The settings you choose affect how your data is organised and how your Measurement ID appears.
Account And Property Settings That Actually Matter
To add Google Analytics on your website, follow the how to set up GA4 setup guide to track visitors, conversions, and marketing performance accurately today.
-
You will be asked for a property name, reporting time zone, and currency.
-
Set the time zone to where your business operates or where most of your audience is.
-
For UK businesses, use London (GMT/BST). Getting the time zone wrong creates date-boundary issues in reports that are hard to fix later.
-
You will also be asked about business objectives.
-
Selecting “Get baseline reports” keeps things simple and can be adjusted later.
How To Add Your Website And Generate A Measurement ID
After creating the property, GA4 prompts you to create a data stream.
Select “Web” as the stream type.
Enter your full website URL, including the protocol (https://), and give the stream a name.
Once the stream is created, GA4 generates a Measurement ID in the format G-XXXXXXXXXX.
Copy this ID and keep it handy.
You will use it in every installation method.
You can find it again under Admin > Data Streams by clicking your stream.
Enhanced Measurement Defaults And When To Adjust Them
Enhanced Measurement is enabled by default.
It automatically tracks page views, scrolls (at the 90% threshold), outbound link clicks, site search queries, video engagement, file downloads, and form interactions.
For most sites, leaving Enhanced Measurement on is fine.
Scroll tracking only fires at 90%, missing engagement higher up the page.
Form tracking can be unreliable depending on how the form is built.
If you plan to set up custom event tracking via Google Tag Manager, disable any Enhanced Measurement events you intend to replace to avoid duplicate data.
Choose The Right Installation Method
Businesses install Google Analytics on website to track visitor behavior, measure conversions, optimize marketing campaigns, and improve overall performance effectively. How you install GA4 setup affects how easily you can add tracking later.
The main options are Google Tag Manager, the Google Tag (gtag.js) added directly to your site code, and native CMS integrations or WordPress plugins.
Using Google Tag Manager For Flexibility And Future Tracking
Google Tag Manager (GTM) is recommended for most setups.
Once the GTM container snippet is on your site, you can manage all future tracking changes inside GTM without editing site code.
Inside GTM, create a new tag, select Google Tag as the tag type, and paste your Measurement ID into the Tag ID field.
Set the trigger to “Initialization – All Pages.”
Name the tag clearly, such as “Google Tag – GA4,” and save it.
Use GTM's Preview mode to confirm the tag fires before publishing.
Only publish the container after verifying in Preview.
Installing The Google Tag Directly In Your Site Code
If you are not using GTM, you can add the GA4 tracking code (gtag.js) directly to your site.
Paste the snippet into the <head> section of every page.
The snippet includes your Measurement ID.
This method requires developer access for any future changes.
Any new event to track will need a code edit.
It is suitable for simple sites with no plans for custom tracking.
Using Native Integrations And WordPress Plugins
Some platforms and CMS tools offer built-in GA4 integration.
On WordPress, Site Kit by Google is the official plugin.
It connects GA4 and other Google products from the WordPress dashboard without manual code.
Other plugins like GA4WP provide similar features.
Plugins are convenient for beginners but can cause problems if you later use GTM alongside them.
Duplicate tag firing is common.
If you use a plugin, ensure it does not also load a GTM container snippet elsewhere on the site.
Add The Tag And Confirm Data Is Flowing
After installing the tag or publishing the GTM container, confirm that data is reaching your GA4 property.
Do not rely on reports until you verify data flow.
Where To Place The Code Or Container Snippet
The GTM container snippet has two parts: a JavaScript snippet for the <head> and a <noscript> fallback for immediately after the opening <body> tag.
Both should be on every page.
If you are adding the gtag.js snippet directly, place it in the <head>, as high as possible before other scripts.
Adding it lower on the page risks missing data if users navigate away quickly.
How To Check Realtime Reports And DebugView
Once the tag is live, visit your website and check the Realtime report in GA4.
You should see at least one active user within seconds.
For detailed debugging, use DebugView under Admin in GA4.
DebugView only shows data when debug mode is enabled.
If using GTM, GTM Preview mode activates debug signals.
You can also use the Google Tag Assistant Chrome extension to enable debug mode.
DebugView displays individual events in near real-time, making it reliable for confirming your setup.
Common GA4 Setup Mistakes That Cause Missing Data
A frequent mistake is publishing a GTM container without testing it.
A misconfigured trigger can prevent the tag from firing.
Other issues include the tag firing only on some pages because the snippet is missing from templates, duplicate tags from both a plugin and GTM, or using the wrong Measurement ID.
Always check the Measurement ID in GTM against your GA4 Data Stream settings. Learn how to use Google Analytics for website performance by tracking visitors, conversions, engagement, and marketing results effectively every day.
Understand What GA4 Starts Tracking By Default
Once the tag is live, GA4 starts collecting data immediately. Tracking GA4 conversions helps marketers measure purchases, signups, downloads, optimize campaigns, improve return on investment, through data-driven decisions consistently today.
It is important to know what is tracked by default before building reports or making business decisions.
Auto-Collected Events Vs Enhanced Measurement Events
GA4 collects data in two ways.
Auto-collected events fire as part of the core GA4 tag, including session_start, first_visit, and page_view.
Enhanced Measurement events add scroll depth, outbound clicks, site search, file downloads, video engagement, and form interactions.
These are useful but have limitations, especially with scroll thresholds and form reliability.
What Basic Website Owners Usually Need Next
For blogs or content sites, the default setup covers most basic needs.
Page views, sessions, traffic sources, and engagement metrics are available without extra configuration.
The next step is marking a key event as a conversion.
In GA4, find the event in the Events report and toggle it as a key event.
Common examples are form submissions, purchase completions, or phone number clicks.
When Default Tracking Is Not Enough
Default tracking does not include custom interactions like button clicks on specific elements, third-party form completions, or ecommerce transactions.
It also does not capture user IDs for logged-in users or business-specific events.
For ecommerce, GA4’s ecommerce schema requires custom setup via GTM or a direct data layer.
Enhanced Measurement does not provide order value, product names, or transaction IDs.
This is where a GTM-based setup is most valuable.
Practical Setup Decisions, Privacy, And Next Steps
Technical installation is only part of the process.
Consider your installation method, data accuracy, and legal compliance to ensure your GA4 data is useful and trustworthy.
GTM Vs Direct Installation Vs Plugin: Trade-Offs
GTM is the most flexible option for adding event tracking, running A/B tests, or managing multiple tags. The initial setup takes more effort, but ongoing maintenance is easier.
Direct installation is simpler and has fewer dependencies. However, it requires a developer or direct code access for any tracking changes.
Plugins like Site Kit by Google work for very basic setups. They can reduce transparency and may conflict with GTM if both are active.
For sites with more than a few pages or any ecommerce activity, GTM is generally worth the setup effort.
Consent, Data Accuracy, And Regional Compliance Considerations
In the UK, analytics data collection requires a lawful basis under UK GDPR. Most sites use a consent management platform (CMP) with a cookie consent banner.
GA4 should only fire for users who accept analytics cookies, unless you have another lawful basis. Running GA4 without consent management increases legal risk and can lead to under-reporting in markets with low consent rates.
GA4's consent mode allows cookieless pings for users who decline cookies. This helps model traffic patterns while respecting consent.
Configure consent management properly from the start. A well-configured setup makes a significant difference in data quality.
What To Configure After The Initial Setup
After confirming the tag is working, prioritize marking your key conversion events. Link GA4 to Google Search Console for organic performance data.
If you run paid campaigns, link to Google Ads to unlock additional reports and attribution data.
Review the data retention setting, which defaults to two months. Extend this to fourteen months in Admin under Data Settings to allow longer data analysis in Explore.
Frequently Asked Questions
These questions address common issues when setting up GA4 for the first time.
How do I create a new Google Analytics account and property?
How to set up Google Analytics on a website?
Go to analytics.google.com and sign in with your Google account. Click Admin, then select “Create Account” or “Create Property” under an existing account.
Follow the prompts to name the property, set your time zone and currency, and create your first web data stream.
What should I set up first to ensure accurate tracking and reporting?
How to set up Google Analytics for your website? Before installing any tag, confirm your property time zone and currency. Decide on your installation method.
For most sites, set up a GTM container first, then create the GA4 tag inside GTM for better control and fewer tracking gaps.
Where do I find the measurement ID and add it to my website?
In GA4, go to Admin, then Data Streams, and select your web stream. The Measurement ID appears at the top right in the format G-XXXXXXXXXX.
Copy this ID and add it to your GTM Google Tag, gtag.js snippet, or plugin settings, depending on your installation method.
How can I verify that data is being collected correctly after installation?
Visit your website and check the GA4 Realtime report. You should appear as an active user within seconds.
For event-level checks, use DebugView under Admin in GA4. GTM Preview mode or the Google Tag Assistant Chrome extension can also help with debugging.
Is Google Analytics free, and what are the key differences between the free and paid versions?
The standard version of GA4 is free and meets the needs of most websites. Google Analytics 360, the paid enterprise version, offers higher data limits, more granular reporting, faster processing, and dedicated support.
For small to mid-sized businesses, the free version is usually sufficient.
How do I integrate Google Analytics with a Flutter app for event tracking?
Flutter app tracking uses GA4's app data stream, not a web stream. To add Google Analytics to website, add the Firebase SDK to your Flutter project.
Connect your project to a GA4 property through Google Firebase. Event tracking is managed using the Firebase Analytics API.
This approach differs from website tracking and requires developer involvement.
How to set up Google Analytics 4?
Here are the steps on how to set up GA4:
1. Sign in to your Google account and visit Google Analytics.
2. Click Start measuring and create a new account.
3. Enter an account name and choose data-sharing settings.
4. Create a GA4 property with your website details and time zone.
5. Add a Web data stream and enter your website URL.
6. Copy the Measurement ID or install Google Tag Manager.
7. Add the tracking code to your website.
8. Verify data collection using Realtime reports.
9. Set up key events and conversions.
10. Link Google Ads and Search Console, then monitor reports regularly and optimize performance.
Is it free to set up Google Analytics?
Yes, Google Analytics is free to set up and use for most websites. Google Analytics 4 (GA4) provides core features such as traffic reporting, audience insights, conversion tracking, and event measurement at no cost.
Google also offers a paid enterprise version, Google Analytics 360, designed for organizations with more advanced needs.
Can I learn Google Analytics on my own?
Yes, you can learn Google Analytics on your own. Start with Google’s free Analytics Academy courses, then practice using a demo property.
Focus on reports, events, conversions, audiences, and traffic sources.
Combine tutorials with hands-on exercises, and gradually apply what you learn to a real website or marketing campaign.
What should you set up first for Google Analytics?
Before using Google Analytics, first create a Google Analytics account and property, then set up a data stream for your website or app.
Install the Google tag/tracking code, verify data collection, and configure key events or conversions.
Finally, establish basic settings, including reporting time zone, currency, and data retention.

Leave a Reply