WP Global Site Tag
Install a Google tag and view useful Google Analytics 4 reports inside WordPress with a guided, read-only connection.
Solid choice
WP Global Site Tag is a solid plugin choice in 2026, with a few things worth checking first. It runs on 7K+ sites, is rated 5/5 and was last updated 2 months ago, and scores 75/100 on our health check.
- Tested with the latest WordPress (7.1)
- Very few reviews so far
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where WP Global Site Tag stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| consent mode | #51 |
| ga4 | #25 |
| google analytics | >100 |
| google tag | #16 |
| google tag manager | #21 |
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 5 from 2 reviews
About WP Global Site Tag
From the official readme · v2.0.3Description
WP Global Site Tag provides two related tools without mixing their state:
- Tracking installs a Google tag or Google Tag Manager container on the public site.
- Reporting connects an administrator to Google Analytics with read-only access and displays reports inside WordPress.
You can use either tool independently. Connecting Analytics never enables tracking or silently replaces an existing tag.
Free features
- Guided Google Analytics connection and property and website data-stream selection.
- Analytics overview, daily traffic trend, and top-five content reports.
- An inclusive last-7-days range, with one dated trend point per day. Free rejects longer ranges on the server.
- Persistent managed Google connection, plus an advanced self-managed OAuth option.
- Plugin-managed, externally managed, or disabled tag installation modes.
GT-,G-,AW-, andDC-identifiers through gtag.js.- Official Google Tag Manager head and body snippets for
GTM-identifiers. - Existing legacy
UA-tracking IDs remain visible and continue rendering, including when Google routes the installed tag to a connected GA4 destination. - Multiple Google tag destinations and optional Consent Mode v2 denied defaults.
- Backward compatibility for existing trusted custom gtag commands.
Pro features
WP Global Site Tag Pro is a separately installed add-on that extends the Free Analytics dashboard while keeping tracking settings and the Google connection in Free.
- Last 30 days, last 90 days, last 6 months, last 12 months, year-to-date, and custom date ranges.
- Period-over-period and previous-year comparisons.
- Realtime active users, advanced totals, and selectable trend metrics.
- Traffic acquisition, UTM campaign, country, and device reports with expanded rows.
- Protected CSV export for the current report.
Settings are available under Settings > WP Global Site Tag. The Analytics dashboard tab contains the recommended connection route. The Tracking settings tab preserves the manual route.
Recommended Google connection
Click Connect with Google, choose an account, approve read-only Analytics access, and return to WordPress to choose a property and website data stream. The recommended connection uses the Digital Apps connection service so administrators do not need to create a Google Cloud project or handle OAuth credentials.
Digital Apps exchanges the authorization code and retains the Google refresh token while the connection is active. WordPress stores an encrypted opaque connection token and short-lived Google access tokens. The plugin then calls the Google Analytics Admin and Data APIs directly, so Analytics property, stream, and report requests and responses do not pass through Digital Apps.
Because Digital Apps retains the refresh token, it is technically able to request Analytics access while the connection remains active. The advanced self-managed route below is available for administrators who do not accept that trust boundary.
Administrators who require no Digital Apps token custody can open Advanced: use your own Google OAuth application. That route provides the Google Cloud instructions and exact callback URL. Credentials may be saved encrypted or defined in wp-config.php as WP_GLOBAL_SITE_TAG_GOOGLE_CLIENT_ID and WP_GLOBAL_SITE_TAG_GOOGLE_CLIENT_SECRET. Constants take precedence.
After Google returns to WordPress, choose an Analytics property and its website data stream. The plugin recommends hostname and exact existing-Measurement-ID matches, but an administrator confirms every selection.
Identifier guide
- Property ID is the numeric GA4 reporting property used by the Data API.
- Data Stream ID is the numeric identifier of one stream inside a property.
- Measurement ID begins with
G-and identifies the website tag for that stream. - Google Tag Manager container ID begins with
GTM-and is a separate tracking integration. - A legacy Universal Analytics tracking ID begins with
UA-. Version 2 preserves it as the frontend tag but does not use it as the GA4 reporting Measurement ID.
These values are stored separately. Choosing a reporting stream does not overwrite the generic tracking ID unless the administrator explicitly chooses replacement after a mismatch warning.
Installation modes
- Install with WP Global Site Tag lets this plugin output the saved tag.
- Tracking is installed elsewhere keeps reporting available but prevents duplicate tag output.
- Do not install a tag disables tag output while preserving the reporting connection.
Existing users
Version 2 preserves the existing option name, manual tag ID, additional destinations, Consent Mode setting, trusted custom commands, hooks, and frontend behavior. This includes legacy UA- identifiers that Google may route to a connected GA4 destination. Existing sites default to plugin-managed installation so an update does not stop measurement. Analytics reporting remains disconnected until an administrator completes the new read-only connection.
Consent and privacy
Consent Mode is not a consent banner. You still need a consent management platform or your own consent interface to collect a visitor’s choice and update Google’s consent state.
When Consent Mode defaults are enabled, this plugin still loads gtag.js. Google may receive consent-state and cookieless requests before consent is granted. If your requirements prohibit loading Google before consent, use the wp_global_site_tag_should_render filter to prevent output until your consent system allows it.
When using a GTM container, configure consent initialization and defaults inside Google Tag Manager. The plugin’s Consent Mode setting applies only to gtag.js output.
With the recommended connection, Digital Apps stores the Google refresh token and WordPress stores an opaque connection token and short-lived access tokens. With the advanced self-managed connection, OAuth credentials and Google refresh and access tokens stay on WordPress. Locally stored connection data is encrypted with keys derived from WordPress salts and saved in non-autoloaded options. Administrators can disconnect at any time, which requests revocation and removes local connection data and report caches. The saved frontend tag remains unchanged.
External services
When tracking is enabled, visitors’ browsers request Google tag resources from https://www.googletagmanager.com. These requests disclose standard web request information such as the visitor’s IP address, browser details, and referring page to Google. Configured Google products may send additional measurement or advertising events.
The recommended connection sends the site URL, hostname, plugin and protocol versions, callback URL, a short-lived state and code challenge, and later an opaque connection token to https://connect.digitalapps.com/v1/. Digital Apps uses this information only to complete Google authorization, retain the refresh token, renew short-lived access, and revoke the connection. It does not receive Analytics property, stream, or report requests or responses.
When an administrator views reports, the plugin communicates directly with these Google services:
- Google authorization at
accounts.google.com. - Google Analytics Admin API at
analyticsadmin.googleapis.com. - Google Analytics Data API at
analyticsdata.googleapis.com.
The advanced self-managed route additionally communicates directly with Google token and revocation services at oauth2.googleapis.com.
The plugin requests the analytics.readonly scope. Google receives the administrator’s authorization request and normal request metadata. Reporting requests include the selected property, date range, and allowlisted report fields. The plugin does not add telemetry. Review the Digital Apps Privacy Policy and Terms.
Review Google’s Privacy Policy, Terms of Service, OAuth terms, and Google Analytics terms.
Installation
- Upload the
wp-global-site-tagfolder to/wp-content/plugins/, or install the plugin through WordPress. - Activate WP Global Site Tag.
- Open Settings > WP Global Site Tag.
- For reports, click Connect with Google, choose an account, property, and website data stream.
- For manual tracking only, open Tracking settings, enter a valid tag or container ID, choose the installation mode, and save.
- Verify public tag behavior with Google’s Tag Assistant and verify your consent workflow.
Changelog
Preserves escaped custom JavaScript and corrects report metric validation. If you use Pro, update Pro to 2.0.2 before updating Free so extended ranges and comparisons remain available.
2.0.3
- Preserved JavaScript string and regular-expression escapes when saving tracking settings.
- Moved extended date-range controls and comparison calculations into the separately distributed Pro add-on.
- Preserved case-sensitive Analytics metric names and rejected unsupported metric selections before caching or requesting reports.
2.0.2
- Fixed property search so nonmatching Analytics properties are hidden as the administrator types.
- Removed an OAuth Client ID example placeholder that could be mistaken for remotely hosted plugin content.
2.0.1
- Redesigned the Free Analytics dashboard for faster traffic, content, and engagement scanning.
- Added engagement rate, views per session, and sessions per user summaries without additional Analytics requests.
- Replaced the top-content table with a responsive top-pages ranking and refined date-range and refresh controls.
- Added server-owned Analytics dimension filters for compatible Pro reports without accepting arbitrary request fields.
- Updated WordPress compatibility metadata and the factual Pro feature summary.
2.0.0
- Added a persistent Connect with Google flow, advanced self-managed OAuth, property selection, and website data-stream setup.
- Added Free overview, trend, and top-content reports for an inclusive 7-day range.
- Added encrypted local connection storage, optional self-managed credentials, safe token refresh and revocation, fixed-host Google API adapters, caching, stale fallback, and refresh controls.
- Added explicit plugin-managed, externally managed, and disabled installation modes without changing existing tracking on upgrade.
- Preserved legacy
UA-tracking IDs during upgrades and added guidance for connected GA4 destinations. - Added centralized entitlements and extension points for the separate Pro add-on.
- Added responsive, keyboard-accessible setup and dashboard interfaces with live status announcements.
- Expanded privacy, external-service, troubleshooting, uninstall, developer, test, and release documentation.
1.1.0
- Added correct, separate rendering for Google tags and GTM containers.
- Added structured multiple destinations and Consent Mode v2 defaults.
- Restricted custom JavaScript editing to trusted users and blocked script-tag breakout content.
- Fixed missing-option warnings, incomplete saves, duplicate configuration, escaping, accessibility, and translation issues.
- Added complete uninstall cleanup, including multisite support and an opt-out constant.
- Replaced legacy Docker, Gulp, and Webpack tooling with wp-env and smoke tests.
1.0.7
- Removed warning messages.
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best WP Global Site Tag alternatives
All consent mode plugins →FAQ
WP Global Site Tag: quick answers
Straight answers, pulled from live WordPress.org data.
Live data from WordPress.org · checked Nov 16, 2026
Is WP Global Site Tag free?
Yes. WP Global Site Tag is free to download and use from the official WordPress.org plugin directory.
Is WP Global Site Tag safe to use in 2026?
WP Global Site Tag is a solid plugin choice in 2026, with a few things worth checking first. It runs on 7K+ sites, is rated 5/5 and was last updated 2 months ago, and scores 75/100 on our health check.
How many websites use WP Global Site Tag?
WP Global Site Tag is active on 7K+ WordPress websites and has been downloaded 97,270 times since it launched in December 2017. It was downloaded 1,473 times in the last 30 days.
Does WP Global Site Tag work with WordPress 7.1?
Yes. The developer has tested WP Global Site Tag up to WordPress 7.1.4, the latest release. It requires WordPress 6.3 or newer.
What PHP version does WP Global Site Tag need?
WP Global Site Tag requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was WP Global Site Tag last updated?
The latest version, 2.0.3, was released on September 5, 2026 (2 months ago).
Who makes WP Global Site Tag?
WP Global Site Tag is developed and maintained by digitalapps.
What are the best alternatives to WP Global Site Tag?
The most popular alternatives to WP Global Site Tag are tarteaucitron.io (10K+ installs), Cookie Choices (for EU Cook… (9K+ installs) and GAinWP Google Analytics Int… (7K+ installs).
Powered by PageForge
Want thousands of pages that rank like these? Build them in an afternoon.
This directory runs on the same engine as PageForge. Turn any spreadsheet, CSV or API into thousands of fast, SEO-ready WordPress pages — with schema, internal links and AI-written copy baked in.
- CSV, Google Sheets & API data sources
- AI content, schema & internal links per page
- Works with Elementor, Gutenberg, Yoast & Rank Math
- Free on WordPress.org — no credit card


