
If you want to understand how visitors find and interact with your WordPress site, Google Analytics is essential. But setting it up doesn’t have to be complicated — especially if you use the Really Simple Google Analytics plugin. In this guide, we’ll show you exactly how to add Google Analytics to WordPress, including installing, configuring, and verify Google Analytics on your WordPress site using this lightweight plugin.
Why Use Google Analytics in WordPress?
Google Analytics helps you:
- Track visitor behavior (page views, session duration, bounce rate, etc.)
- Identify your top-performing content
- Understand traffic sources (search, social, referral, direct)
- Measure conversions and marketing goals
- Make data-driven decisions to grow your website
The Really Simple Google Analytics plugin streamlines the setup process — no need to edit theme files or manually paste tracking codes. Everything happens right from your WordPress dashboard.
How to Add Google Analytics to WordPress Using Really Simple Google Analytics
Step 1: Install and Activate the Plugin
- Download the plugin.
- Log in to your WordPress admin dashboard.
- Go to Plugins → Add Plugin.
- Click Upload Plugin.
- Click Choose File and browse to the file you downloaded in Step 1.
- Click Install Now, then Activate once the installation completes.
You’ll now see a new menu option under Settings → Google Analytics.
Step 2: Get Your Google Analytics Tracking ID
If you haven’t created a Google Analytics property yet, do this first:
- Visit analytics.google.com and sign in with your Google account.
- Click Admin in the lower-left corner.
- Under the Property column, click Create Property.
- Enter your website name, URL, and select your reporting time zone.
- When finished, you’ll be given a Measurement ID (looks like
G-XXXXXXXXXX).
Copy this tracking ID — you’ll need it in the next step.
Step 3: Add Your Tracking ID in WordPress
- Go back to your WordPress dashboard.
- Navigate to Settings → Google Analytics.
- Paste your Tracking ID into the provided field.
- Choose whether to track:
- Logged-in users (optional)
- Administrators (optional)
- Click Save Changes.
That’s it! The plugin automatically adds the tracking code to your site header.
Step 4: Verify That Google Analytics Is Working
To confirm that the tracking code is active:
- Open your website in a new tab or device.
- In Google Analytics, go to Reports → Real-time → Overview.
- You should see at least one active user (that’s you).
If you don’t see data immediately, give it up to 24 hours for Google Analytics to process new traffic.
Step 5: Exclude Logged-In Users (Optional but Recommended)
By default, Google Analytics counts every page view — including yours.
To get more accurate visitor data, exclude logged-in users:
- In the plugin settings, find the option to “Exclude logged-in users” or “Ignore admin traffic.”
- Enable it and save changes.
This way, your personal visits won’t skew your analytics reports.
Step 6: Monitor Your Performance
Now that Google Analytics is live, you can start tracking key insights like:
- Which pages get the most traffic
- What devices and countries your visitors use
- How users move through your site
- How well your marketing campaigns perform
Check your Google Analytics dashboard regularly to guide your content and SEO strategy.
Troubleshooting Tips
If data isn’t showing up:
- Make sure the tracking ID is correct and active.
- Clear your website cache if you use a caching plugin.
- Verify that your theme or other plugins aren’t overwriting the header script.
- Use the Google Tag Assistant Chrome extension to confirm the tag is firing properly.
How to Install Google Analytics on WordPress Without a Plugin
Adding Google Analytics to a WordPress site without using a plugin is a clean and efficient way to track your traffic while keeping your site lightweight. Instead of relying on extra tools, you’ll manually insert the tracking code so it loads on every page. The following steps will show you how to install Google Analytics on WordPress without a plugin.
- Get Your Google Analytics Tracking Code
Log into your Google Analytics account and go to the Admin panel. Under your property, select “Data Streams” and choose your website. Copy your Measurement ID (it will look like “G-XXXXXXXXXX”), then open the manual installation option to access the full tracking script. - Open Your WordPress Theme Files
In your WordPress dashboard, navigate to Appearance → Theme File Editor. Locate and open theheader.phpfile, which controls the top section of your site that loads on every page. - Paste the Tracking Code
Insert the Google Analytics script just before the closing</head>tag in theheader.phpfile. This ensures the tracking code loads properly across your entire site without affecting visible content. Save your changes once the code is added. - (Optional) Use a More Stable Method
If you want to avoid losing your changes during theme updates, consider adding the code through a child theme or placing it in your theme’sfunctions.phpfile using a WordPress hook. This keeps your setup cleaner and more update-proof. - Verify the Installation
Return to Google Analytics and open the Realtime report. Visit your website in another tab, and within a few seconds, you should see your visit appear as an active user, confirming everything is working correctly. - Clear Cache if Needed
If your site uses caching or a CDN, clear the cache to ensure the new tracking code is being served to visitors.
By following these steps, your WordPress site will start collecting accurate visitor data without the need for additional plugins, giving you full control over your analytics setup.
Final Thoughts
Setting up Google Analytics doesn’t have to be a technical nightmare. In this post, we showed you how to add Google Analytics to WordPress using our Really Simple Google Analytics plugin. With Really Simple Google Analytics, you can integrate your WordPress site with Google Analytics in just a few minutes — no coding, no hassle.
Start tracking your site’s performance today and unlock the insights you need to grow your audience.
Now Read Our WordPress Google Analytics Beginners Guide
Now that you’ve successfully added Google Analytics to your WordPress site, it’s time to start using it effectively. Whether you installed tracking with our Really Simple Google Analytics plugin or followed a manual setup, the next step is learning how to interpret your data and turn it into real growth. That’s where our WordPress Google Analytics Beginner Guide comes in.
Dive into our WordPress Google Analytics Beginner Guide to learn how to track traffic, understand user behavior, and optimize your content for better performance. This guide walks you through exactly how to use Google Analytics after setup so you can make smarter decisions and grow your WordPress site with confidence.
One thought on “How to Add Google Analytics to WordPress”