Blog / Adding Google Analytics to WordPress: 2026 Guide

SEO

Adding Google Analytics to WordPress: 2026 Guide

C Me Online, WordPress support, website and E Commerce developers & graphic designers in Ireland.

Ciaran Meagher

Founder & CEO · Oct 5, 2026

What if the simplest way to add Google Analytics is the one that avoids extra code altogether? If you’re adding google analytics to wordpress, pause before pasting a tracking snippet into your site. A plugin, Google Tag Manager or a manual setup can all work, but installing the tracking code twice can muddy your data.

Google Analytics 4 (GA4) is the current version; Universal Analytics has been discontinued. This guide explains how to choose a setup method, connect it to a GA4 property and check that visits and events are being recorded before relying on your reports.

We’ll also cover privacy considerations for your site, including how cookie consent fits into an analytics setup in Ireland. Then you can focus on useful events and reports, with a clearer picture of what your data can and can’t tell you. A little care at the start makes for a cleaner, more dependable setup.

Key Takeaways

  • Understand how a GA4 property, web data stream and WordPress tracking work together before choosing a setup.
  • See how Site Kit can simplify adding google analytics to wordpress, and what to consider if you use another plugin or manual tagging.
  • Confirm that the correct property is receiving data and check for duplicate tracking.
  • Know what to consider about cookie consent and privacy before relying on analytics data from your site.
  • Build a manageable measurement routine around useful business questions, events and reports.

What adding Google Analytics to WordPress actually involves

Google Analytics 4 (GA4) is Google’s analytics platform for measuring activity on a website, including page views and events such as clicks or form submissions. Adding it to WordPress means connecting a GA4 property and its web data stream to your site so tracking sends activity to the right place. For a wider overview of the platform’s background and features, see Google Analytics.

Think of the property as the reporting space for your website, the web data stream as the source of incoming site activity, and the tracking tag as the link between your WordPress site and that stream. The measurement ID identifies the stream and usually starts with G-. You can add tracking through a plugin, Google Tag Manager or a manual code method, depending on your site and how much control you need.

Installing tracking is only the first step. It can take time for collected data to appear in reports, and those reports become useful when you know what activity matters to your business. First confirm that the connection is correct, then test it before drawing conclusions from the data.

What do you need before connecting GA4 to WordPress?

Before you begin, make sure you have:

  • Access to the Google account that will manage analytics.
  • A GA4 property for the website, or permission to use an existing one.
  • Administrator access to the WordPress site so you can install a plugin or add tracking.

In Google Analytics, create or select the property for the correct website, then set up or choose its web data stream. Check the website address carefully, especially if you manage several sites. Open the stream’s details to find its measurement ID. Google’s interface labels can change, so follow the current prompts rather than relying on an old screenshot or set of instructions.

Does WordPress.com differ from a self-hosted WordPress site?

Yes. Your hosting setup can affect which installation methods are available. WordPress.com is a hosted service, and its available integrations can depend on your plan and site configuration. A self-hosted WordPress site uses the WordPress software on hosting you manage, where plugin and code access may differ.

Before choosing a plugin or code-based method for adding google analytics to wordpress, identify which setup you have and what access it allows. This helps you avoid following steps that don’t match your site.

How to add Google Analytics to WordPress with Site Kit

Site Kit by Google is Google’s official WordPress plugin for connecting eligible sites to services such as Analytics. It offers a guided route for adding google analytics to wordpress, without requiring you to paste tracking code into your theme. Before installing it, check that your WordPress and PHP versions meet the plugin’s current requirements, and confirm that your Google account can access the intended Analytics property.

Connect Site Kit to the correct GA4 property

Work through the connection in order, matching the property and web data stream to your website’s domain:

  • Install the plugin. In your WordPress dashboard, open the plugin installer, search for Site Kit by Google, then install and activate it.
  • Start setup. Open Site Kit from the dashboard and follow its setup prompts to sign in to the Google account you want to use.
  • Review permissions. Read the Google authorisation screen and approve the permissions required to connect the services you intend to use.
  • Choose the Analytics property. Select the GA4 property for the correct website. If prompted to select a web data stream, check its website address before continuing. If no suitable property exists, create one for the site through the setup flow.
  • Complete the connection. Follow the remaining prompts and return to Site Kit to confirm that Analytics is connected.

Google’s menus and permission prompts can change, and the account you use must have the necessary access to the property. If a step looks different, use the official Google Analytics guide alongside the current Site Kit instructions rather than guessing which option to select.

Check the connection before relying on reports

Once setup is complete, open Site Kit’s settings and confirm that Analytics is connected to the intended property. Then open your website in a separate browser session and visit a page. In Google Analytics, check the Realtime report for activity. Your test visit may not appear immediately, and a quiet report on its own doesn’t prove the installation has failed. Allow for processing delays, then review the setup and test again if needed.

Keep the setup tidy: don’t add a second Analytics tag through another plugin or directly into your theme unless you’ve confirmed the existing tag won’t also fire. If analytics is part of wider WordPress upkeep, WordPress website support can help maintain your site’s configuration.

Which WordPress Google Analytics method should you choose?

For most site owners who want a guided setup, Site Kit by Google is a sensible starting point. Other analytics plugins may add dashboard reports or extra configuration, whilst manual code and Google Tag Manager offer more control but need careful implementation. Choose one route for installing the GA4 tag. Running multiple methods at once can send duplicate data and make reports harder to trust.

MethodSetupFlexibilityMaintenance and duplicate risk
Site KitGuided; little or no codeSuited to standard Google service connectionsSimple to manage, but check for tags added elsewhere
Another analytics pluginUsually guided through plugin settingsVaries; may offer additional reporting and optionsPlugin updates require attention; can duplicate tags if another method is active
Manual code or Google Tag ManagerMore technical to configureGreater control over tag placement and configurationRequires ongoing checks; conflicts or duplicate tags are possible

When is Site Kit the most practical choice?

Site Kit suits WordPress site owners who want a guided connection to Google services without editing theme files. It’s a practical choice for adding google analytics to wordpress when the site is compatible and the setup is straightforward. Review which services and settings you connect rather than assuming every available feature is needed. If analytics is part of a wider WordPress maintenance task, explore WordPress website support.

When might manual tagging or Google Tag Manager suit the site?

Manual tagging can suit a controlled setup where someone is comfortable adding and maintaining code. Google Tag Manager is a separate tag-management layer. It can manage the GA4 tag and other tags, but it doesn’t replace the GA4 property. Both approaches need careful configuration. Check the site’s existing plugins, theme code and tag setup first, so the same GA4 tag isn’t firing through more than one route.

Choose based on your site configuration, existing tags and technical confidence. If you’re unsure what already installs tracking, investigate before adding anything. One correctly configured method is easier to maintain and gives you a cleaner foundation for checking your data.

Adding Google Analytics to WordPress: 2026 Guide

How to test WordPress analytics and avoid common tracking problems

A successful setup needs more than a connected account. Before relying on your reports, check that the tag is on the site, sending data to the right GA4 property and behaving as intended when a visitor makes a consent choice.

  • Check the destination: confirm the selected GA4 property and web data stream match your website.
  • Look for one active tag: check your analytics plugin, Site Kit, Google Tag Manager and any theme code for overlapping installations.
  • Test consent behaviour: verify tracking follows the choices shown by your consent tool and the configuration you’ve selected.
  • Make a test visit: open the site in a separate browser session, visit a page and check the GA4 Realtime report for activity.

Realtime activity can help confirm that a test visit is being received. If your setup provides diagnostic tools, use them to inspect whether the tag is present and reporting an error. Product names and interface labels can change, so refer to current Google and plugin documentation for tool-specific instructions. A successful test confirms the connection is sending activity, but it doesn’t mean every report will be populated immediately. Data processing takes time, and a quiet report alone doesn’t prove tracking is broken.

Why is GA4 not showing WordPress visits?

Start with the basics. Compare the measurement ID on your site with the ID for the intended web data stream, then check that the tag is installed through your chosen method. A wrong ID sends activity elsewhere; a second tag can cause duplicate measurement. Also consider cached pages serving an older version of the site, plugin conflicts, browser extensions that block analytics scripts, or a test session where consent settings prevent tracking.

Try a clean browser session, make one test visit and change only one setting at a time. This makes it easier to identify what fixes the issue without introducing several new variables at once.

How should cookie consent affect analytics tracking?

Your consent tool and analytics configuration need to work together. Test what happens when a visitor accepts, declines or changes a choice, and check that the site behaves as configured. Consent requirements can depend on the audience, business and implementation, so verify current guidance for your circumstances rather than treating this as legal advice. Scripts and site behaviour are also worth reviewing as part of WordPress website support.

If adding google analytics to wordpress involves conflicting tags, consent settings or a complex site configuration, talk to our team about your WordPress website.

Turn GA4 data into a useful, maintainable WordPress measurement routine

Keep these terms straight:

  • Page view: a visit to a page, such as someone opening your services page. In GA4, page_view is an event that records this activity.
  • Event: an interaction recorded by Analytics, such as a page view or a click. A form submission can also be tracked as an event if your setup is configured to capture it.
  • Key event: an event you identify as important to your business goals. For example, you might designate a successfully submitted enquiry form as a key event, provided your tracking records that submission accurately.

Keep a short record of the property and web data stream in use, how tracking is installed, how it behaves with your consent settings, and any key events you’ve configured. Revisit that record after changing plugins, themes, forms or consent tools. These changes can affect tracking, so retest important actions rather than assuming data collection remains unchanged.

Which GA4 reports should a beginner review first?

When can WordPress support make analytics easier to maintain?

Complex plugins, custom themes and multiple tags can make tracking harder to understand, particularly after updates or site changes. Including analytics checks in your wider website maintenance and support routine can help keep configuration and site behaviour aligned. C Me Online provides dedicated WordPress website maintenance and support, including 24/7 technical support.

Make your WordPress analytics work for you

Adding google analytics to wordpress is only the first step. Choose one tracking method, connect it to the right GA4 property, then test that visits are being recorded and tracking behaves as intended with your consent settings. From there, focus on a few business questions and review the reports that help answer them.

Keep a note of how analytics is installed and revisit it after significant site, plugin or theme changes. That habit can help you spot tracking issues before relying on incomplete or duplicated data. If your setup involves several plugins, custom code or wider maintenance needs, WordPress support can help keep the pieces working together.

C Me Online has more than 850 clients in its portfolio and provides dedicated WordPress website maintenance and support, including 24/7 technical support. To discuss your setup, talk to our team about your WordPress website. With a clear setup and regular checks, you can build a more dependable foundation for better-informed website decisions.

Frequently Asked Questions

How do I add Google Analytics to WordPress without a plugin?

A developer can add the GA4 tag directly to your site or manage it through Google Tag Manager, depending on your setup. Use the measurement ID for the correct web data stream, and make sure the tag is installed only once. Test a visit in GA4 Realtime and check that tracking behaves as intended with your consent settings. Code-based implementations need reviewing after theme changes or other updates to the site.

Is Site Kit by Google the easiest way to add Google Analytics to WordPress?

Site Kit can guide many WordPress users through connecting Google Analytics, though whether it’s the best fit depends on the site and its available integrations. Broadly, install and activate the plugin, authorise the Google account with access to Analytics, select the intended GA4 property and confirm that tracking is connected. Before starting, look for tags already added through another plugin, Google Tag Manager or your theme to avoid duplicate tracking.

How can I tell if Google Analytics is working on my WordPress website?

Confirm that your site’s measurement ID matches the intended GA4 property, then visit the website in a separate browser session and check the Realtime report or relevant diagnostic tools. Processing delays can affect what appears, as can consent choices, browser blockers and cached pages. If Realtime is quiet, review those factors and verify the tag’s configuration before deciding that tracking is broken.

Can I add Google Analytics to WordPress.com?

WordPress.com may offer different analytics options depending on your plan, the platform’s current features and your site configuration. Review the integrations and plugin capabilities available in your dashboard, then connect an appropriate option to the intended GA4 property and web data stream. Don’t assume the same plugin or code-based steps apply to both WordPress.com and self-hosted WordPress, as their setup options can differ.

Why is Google Analytics not tracking my WordPress visitors?

Start by checking that the selected property and measurement ID are correct, and that a tag is installed and firing only once. Consent settings, caching, browser blockers or plugin conflicts can also affect tracking. Test a visit in a clean browser session, then review Realtime or diagnostic tools. Reporting can take time, so verify your setup and allow for processing before changing several settings at once.

Do I need a cookie banner when using Google Analytics on WordPress?

Whether a cookie banner is needed depends on your audience, implementation and applicable privacy requirements. A banner alone doesn’t show that analytics tracking follows the choices your site presents. Review the consent tool and analytics tag configuration together, then test the behaviour for different visitor choices. For guidance on what applies to your website and audience, seek appropriate privacy advice; this article isn’t legal advice.

Ready to bring your next digital project to life?

C Me Online, WordPress support, website and E Commerce developers & graphic designers in Ireland.

Written By

Ciaran Meagher

Founder & CEO, C Me Online

Founded C Me Online in 2010 having spotted a gap in the market for a client-centric agency built for the SME sector. Still acts as project manager on many client builds, and writes regularly on the business side of running a website well.