WP Global Site Tag icon
Actively maintained Tested with WP 7.1 #4 in consent mode

WP Global Site Tag

Install a Google tag and view useful Google Analytics 4 reports inside WordPress with a guided, read-only connection.

Active installs7K+5K+ tier
Downloads · 30d1.5K▼ -23.2% vs prev. 30d
Rating5/52 reviews
Health score75/100Good
All-time downloads97.3KSince Dec 2017
Support resolved—No recent threads
RequiresWP 6.3PHP 7.4+
Downloads · 7d295▼ -2.6% week over week
Our verdict

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 & support

Daily downloads

4278551.3KAug 18Oct 1Nov 15
Yesterday46
Daily average (1y)73
Peak day2,317Jul 17, 2026
Last 12 months26.6K

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where WP Global Site Tag stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
consent mode #51 1,969 Best consent mode plugins →
ga4 #25 642 Best ga4 plugins →
google analytics >100 4,515 Best google analytics plugins →
google tag #16 6,265 Best google tag plugins →
google tag manager #21 2,066 Best google tag manager plugins →

Version adoption

Share of active sites per release.

  • 2.056.1%
  • 1.043.2%
  • 1.10.79%

Rating breakdown

★★★★★★★★★★ 5 from 2 reviews

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About WP Global Site Tag

From the official readme · v2.0.3

Description

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-, and DC- 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

  1. Upload the wp-global-site-tag folder to /wp-content/plugins/, or install the plugin through WordPress.
  2. Activate WP Global Site Tag.
  3. Open Settings > WP Global Site Tag.
  4. For reports, click Connect with Google, choose an account, property, and website data stream.
  5. For manual tracking only, open Tracking settings, enter a valid tag or container ID, choose the installation mode, and save.
  6. 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.

Full changelog on WordPress.org →

Screenshots

The connected Free Analytics dashboard shows key metrics, a seven-day traffic trend, top pages, and engagement summaries.
The connected Free Analytics dashboard shows key metrics, a seven-day traffic trend, top…
Guided read-only Google connection explains data access and managed authorization before the administrator proceeds.
Guided read-only Google connection explains data access and managed authorization before…
Tracking settings support Google tags, Google Tag Manager containers, additional destinations, Consent Mode v2 defaults, and explicit installation modes.
Tracking settings support Google tags, Google Tag Manager containers, additional…

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.

Active installs badge Rating badge Health score badge

Best WP Global Site Tag alternatives

All consent mode plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 tarteaucitron.io – Cookie Banner & GDPR Consent Management tarteaucitron.io – Cookie Banner & GDPR Consent Management Add a customizable cookie banner and manage GDPR consent with tarteaucitron.io CMP… by Amauri 10K+ ★★★★★★★★★★ 4.5 (13) 2 months ago 68
2 Cookie Choices (for EU Cookie Law & GDPR) Cookie Choices (for EU Cookie Law & GDPR) Ask the cookie consent by category and block third party scripts, videos and maps until the… by overclokk 9K+ ★★★★★★★★★★ 4.5 (35) 4 days ago 87
3 GAinWP Google Analytics Integration for WP GAinWP Google Analytics Integration for WP Google Analytics 4 for WordPress that tracks results: form leads, sign-ups and goal values… by tomdude 7K+ ★★★★★★★★★★ 4.8 (126) 2 weeks ago 88
5 GDPR Compliance & Cookie Consent GDPR Compliance & Cookie Consent Cookie consent banner and GDPR tools: consent checkboxes, data access and erasure requests… by Mortgage Calculator 4K+ ★★★★★★★★★★ 2.7 (10) 3 weeks ago 75
6 Tracking and Consent Manager – WP Full Picture Tracking and Consent Manager – WP Full Picture Set up consent management and tracking tools in minutes instead of days. Integrations with… by Krzysztof Planeta 3K+ ★★★★★★★★★★ 5 (21) 2 weeks ago 92
7 Tag Pilot FREE – Google Tag Manager Integration for WooCommerce Tag Pilot FREE Complete GTM plugin for WooCommerce (Consent Mode v2 and Server-Side). Ready for GA4 and FB… by Tag Concierge 1K+ ★★★★★★★★★★ 5 (8) 4 months ago 67
8 Simple Google Analytics Tag Manager Simple Google Analytics Tag Manager Adds Google Analytics GA4 and Google Tag Manager snippets with simple privacy-friendly… by Miguel Fuentes 1K+ ★★★★★★★★★★ No reviews 4 months ago 55
9 Consent Mode Banner Consent Mode Banner Lightweight (~3kB) Consent/Cookies Banner compatible with Google Consent Mode (GTM & Google… by Tag Concierge 400+ ★★★★★★★★★★ 3.3 (4) 12 months ago 44
10 Simple Consent Mode Simple Consent Mode Simple Consent Mode helps integrate GTM Consent Mode v2 on your website. by iworks (Marcin Pietrzak) 400+ ★★★★★★★★★★ No reviews 4 months ago 52
11 Lightweight Google Analytics Lightweight Google Analytics Easily add Google Analytics 4 to WordPress using just your Measurement ID. by Andy Feliciotti 400+ ★★★★★★★★★★ 5 (2) 1 month ago 73

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
Sarah is here to help!
Hi there! 👋 Need help finding what you're looking for?
Sarah
Sarah
Online & Ready to Help
Hi there! 👋 Need help finding what you're looking for?

We'll use this to continue our conversation

Just now ✓ Verified

Join 500+ SEO Pros Scaling Their Strategy

Get exclusive programmatic SEO tactics, AI content workflows, and the latest PageForge updates delivered straight to your inbox. Stay ahead of the algorithm.

We care about your data in our privacy policy.