Complete GA4 setup: create your account, install tracking, and verify data
A practical step-by-step guide to setting up Google Analytics 4, adding the tracking code to WordPress or a custom site, and confirming your data is coming through correctly.
Google Analytics 4 can feel more complicated than it should, especially if you are setting it up for the first time. This guide walks through the full process from creating your GA4 account to confirming that your website is actually sending data.
Before you start
You will need:
- A Google account you can use to manage analytics.
- Access to your website or CMS.
- Permission to edit your site header, install a plugin, or use your theme settings.
If you are setting this up for a client, make sure you are using a Google account they can keep access to long term.
Step 1: Create a Google Analytics account
- Go to Google Analytics and sign in with your Google account.
- Click Start measuring if this is your first account, or go to Admin and create a new account if you already use Analytics.
- Enter an Account name. This is usually your business name or website name.
- Choose the account data-sharing settings you want, then continue.
Step 2: Create your GA4 property
- Enter a Property name. Most people use the website or brand name here too.
- Choose your reporting time zone and currency.
- Click Next and fill in the business details Google asks for.
- Choose your business objectives if prompted, then finish the property setup.
Once the property is created, Google will ask you to set up a data stream.
Step 3: Create a web data stream
- Choose Web as the platform.
- Enter your website URL.
- Enter a stream name, such as your domain name.
- Leave Enhanced measurement enabled unless you have a specific reason to turn it off.
- Click Create stream.
After this step, you will see a Measurement ID that looks like G-XXXXXXXXXX. Keep that handy because you will use it when installing the tracking code.
Step 4: Install GA4 on WordPress
There are a few ways to add GA4 to WordPress, but the simplest path is usually a plugin or your theme’s built-in integrations.
Option A: Use a plugin
- In WordPress, go to Plugins → Add New Plugin.
- Search for a Google Analytics plugin or Google Site Kit.
- Install and activate the plugin.
- Open the plugin settings and connect your Google account if required.
- Paste your Measurement ID if the plugin asks for it directly.
- Save your changes.
This is the easiest option if you do not want to touch theme files.
Option B: Add the GA4 tag in your theme or header settings
Some WordPress themes or SEO plugins include a field for custom scripts in the site head.
- Copy the GA4 installation snippet from your data stream settings.
- Open your theme settings or header injection area.
- Paste the snippet inside the global head section.
- Save and publish the change.
Use this option only if you know the script will load on every page.
Step 5: Install GA4 on a custom site
If your site is custom-built, add the GA4 script to the <head> of every page, usually in your shared layout or base template.
Use the snippet Google provides in your web stream settings:
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XXXXXXXXXX');
</script>
Replace G-XXXXXXXXXX with your real Measurement ID.
If your framework has a recommended script-loading approach, use that shared layout mechanism so the tag is included site-wide instead of copied page by page.
Step 6: Verify that GA4 is collecting data
Installing the code is only half the job. You also want to confirm that events are reaching Google Analytics.
Check Realtime reports
- Open your site in a new browser tab.
- Visit a few pages yourself.
- In Google Analytics, open Reports → Realtime.
- Wait a minute and see whether your active user and page views appear.
Realtime is the quickest sanity check after installation.
Check DebugView if you need more detail
If Realtime is unclear, open Admin → DebugView and test your site while using a debugging method such as Tag Assistant or your browser’s preview mode for tags.
DebugView helps you confirm that events are firing in the right order and reaching the correct property.
Use Tag Assistant
Google Tag Assistant can help confirm that the GA4 tag is loading on your site.
- Open Tag Assistant.
- Enter your site URL and connect.
- Browse your site in the debug session.
- Confirm that your GA4 tag appears and that hits are being sent.
Common mistakes to avoid
- Installing the tag on only one page instead of your shared site layout.
- Using the wrong Measurement ID.
- Adding the GA4 script twice through both a plugin and manual code.
- Testing immediately with aggressive ad blockers enabled.
- Looking at the wrong property or data stream in Google Analytics.
- Forgetting that some reports take longer to populate than Realtime.
What to expect after setup
Realtime data usually appears quickly, but standard reports can take more time to fill in. That is normal. Start by confirming Realtime works, then check standard reports later once Google has processed more data.
Final checklist
- Your GA4 account and property are created.
- Your web data stream is active.
- Your
G-XXXXXXXXXXMeasurement ID is installed on the site. - Realtime shows your test visit.
- Tag Assistant or DebugView confirms events are being sent.
Once that is in place, your tracking foundation is live.
If you want a simpler way to actually read the numbers after setup, BetterGA gives you a cleaner dashboard without the usual GA4 maze.
Keep the setup simple
Use BetterGA to check your numbers without fighting GA4.
Once your tracking is live, BetterGA gives you a cleaner view of your traffic, top pages, and growth trends without the usual Google Analytics clutter.