To add Google Analytics to WordPress, create a Google Analytics 4 property and a web data stream for your site, copy the Measurement ID (it starts with G-), then connect it with Site Kit by Google, an analytics plugin such as MonsterInsights, or by pasting the Google tag into your site’s head. Check the Realtime report to confirm it works, link Search Console, and set up key events such as form submissions.
- Universal Analytics is gone. GA4 is the only Google Analytics now.
- Install the tag only once. Two tags double-count every visit.
- Key events (conversions) such as leads and purchases are what make analytics useful.
- Respect privacy laws: use a consent banner where required.
- Link Search Console to see search queries alongside behaviour.
Why does every WordPress site need Google Analytics?
Imagine a consultancy spending money on Facebook ads and blog posts with no idea which one brings enquiries. After installing GA4 and tracking form submissions, they discover most leads come from three old blog posts and almost none from ads. That single insight changes their whole marketing budget.
Analytics shows where visitors come from, which pages they read, how they move through the site and which actions they take.
How do you set up GA4 for WordPress step by step?
- Create an account at analytics.google.com, then a GA4 property with your time zone and currency.
- Add a web data stream with your website URL. Keep Enhanced measurement on to track scrolls, outbound clicks, site search and file downloads automatically.
- Copy the Measurement ID (G-XXXXXXX).
- Connect WordPress using one method from the table below.
- Test by visiting your site in another browser and checking Reports, Realtime.
- Mark key events, for example generate_lead for form submissions or purchase for WooCommerce orders.
- Link Search Console in Admin, Product links.
Which method should you use to install Google Analytics?
| Method | Best for | Pros | Cons |
|---|---|---|---|
| Site Kit by Google | Most site owners | Official, also connects Search Console and PageSpeed | Basic event tracking |
| MonsterInsights | Non-technical owners, stores | Dashboard reports, easy form and WooCommerce tracking | Best features are paid |
| Google Tag Manager | Marketers with many tags | Full control of events and pixels | Learning curve |
| Paste the tag in the head | Developers, very light sites | No extra plugin | Must handle consent and events yourself |
Technical SEO, on-page optimisation, schema and content plans for WordPress sites, from $300. Run the free SEO audit first if you like.
Which reports should you check every month?
- Traffic acquisition: which channels (organic search, social, referral, email, ads) bring engaged visitors.
- Pages and screens: your most-read pages and how long people stay.
- Key events: leads, calls, sign-ups or purchases by channel.
- Search Console queries: what people search before landing on your site.
- Devices: if most visitors are on mobile, design and test mobile first.
What about privacy and cookie consent?
If you have visitors from the EU, the UK or other regions with consent laws, use a cookie consent tool that supports Google Consent Mode so Analytics respects each visitor’s choice. Mention Analytics in your privacy policy. A tracked, compliant site is better than a site with perfect data and legal risk.
Once data flows in, use it to grow: see how to increase WordPress traffic.
Frequently asked questions
Is Google Analytics free for WordPress?
Yes. Google Analytics 4 is free. Some WordPress plugins that connect it have paid upgrades, but Site Kit by Google is free.
Where do I find my GA4 Measurement ID?
In Google Analytics go to Admin, Data streams, choose your web stream. The ID starting with G- is shown at the top.
How do I know Google Analytics is working?
Open your site in another browser or on your phone and check Reports, Realtime in GA4. You should see yourself within a minute.
Can I track contact form submissions?
Yes. Mark a form submission event as a key event, using Enhanced measurement, a plugin integration or Google Tag Manager.
Will Google Analytics slow down my site?
The tag is light. Avoid installing it twice and delay non-essential marketing scripts to keep pages fast.
Sources
Technical SEO, on-page optimisation, schema and content plans for WordPress sites, from $300. Run the free SEO audit first if you like.
More WordPress guides
Guide, 3 min readBest Keyword Research Tools for WordPress Bloggers (2026)
Guide, 3 min readHow to Add Schema Markup to WordPress for Better SEO (2026 Guide)
Guide, 4 min readHow to Use Rank Math SEO Plugin Effectively (2026 Setup Guide)
Guide, 3 min readBest Free SEO Plugins for WordPress (2026 Edition)Rather have an expert run your WordPress site?
Tanvir H is a Bangladesh-based WordPress and Elementor web designer with 7+ years of experience, 650+ projects and a 4.9 client rating. New websites, redesigns, fixes, speed, security and SEO, handled by one expert who explains everything in plain English and works with clients worldwide.



