How to Add Google Analytics to WordPress Without Duplicating Tags
Check for an existing Google tag or Tag Manager setup before connecting Site Kit, then verify that the intended GA4 property receives page data.

Adding Google Analytics to WordPress starts with checking whether the site already has a tag. A Google tag may be installed directly, through Google Tag Manager or by a plugin. Adding another implementation without checking can complicate tracking, so identify the active plugin, theme settings and Tag Manager owner before making changes.
Google’s Site Kit plugin can connect a WordPress site to Analytics and display its metrics. But connecting Site Kit does not necessarily mean it should insert another tag: Google says the plugin can show metrics while an existing implementation supplies the code. The key is to confirm which Analytics property and web stream the site is meant to measure.
How to connect Site Kit
In WordPress, install and activate Site Kit by Google from the Plugins screen. Start its setup, select the option to connect Analytics and sign in with a Google account that can access the intended property. Follow the ownership-verification and permissions steps, then select the right Analytics account and property—or use the setup option to create one.
Google’s stated requirements include a publicly accessible production site and a working WordPress REST API. Google has a separate setup workflow for staging sites. After connecting Analytics, check Site Kit’s service settings to confirm that they point to the intended destination.
How to check the installation
Before installing a new tag, determine which tool currently places the code. If Site Kit detects an existing tag for the selected property, its code-placement toggle turns off. Keep that setup if the existing tag is intentional. If you are transferring code placement to Site Kit, treat it as a controlled change: identify the old installation and check data collection afterward.
A GT- tag ID and a G- measurement ID are not interchangeable clues, and finding two IDs alone does not prove duplicate events. Check the actual event and its destination before removing code. Google’s documentation also says existing direct implementations, including older config-based snippets, remain supported.
To test a page, use a browser’s Network panel to inspect the Analytics collection request. Confirm its destination and page location, and account for the site’s consent settings. Then check the intended GA4 property’s Realtime pages for the page path. A loaded Google script or a successful network response by itself does not confirm that the correct property received the page data. Test an article, a standard page and other important templates before treating the setup as site-wide.
This report draws on information from Digital Boom.
Editorial checks passed Facts, figures and quotes checked against 1 source
Add WordPress Themes & Plugins as a preferred source on Google


