WordPress plugin intelligence profile

Analytics Head

A lightweight Google Analytics plugin for WordPress. Paste your Measurement ID, choose head or footer — done.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.0
Current version1.7.0
WordPress coverageTested up to WordPress 7.0
Minimum stackWP 6.3 · PHP 7.4
Directory statusactive
Last directory update28 Jul 20263mo ago
Active installations600Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 1 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Analytics Head version 1.7.0 as active, updated 3mo ago and tested up to WordPress 7.0.

Overview

About this plugin

Analytics Head is a deliberately simple WordPress plugin for Google Analytics. No dashboards, no Google account connection, no feature creep — just the tracking code, placed exactly where you want it.

Why use this plugin?

  • Lightweight — a handful of options, minimal overhead, no external dependencies
  • Easy — paste your GA4 Measurement ID (G-XXXXXXXXXX) and you are done
  • Head placement by default — required for Google Search Console verification via Analytics
  • Flexible — footer placement, role-based hiding, Consent Mode v2, optional Google Ads IDs
  • Developer-friendly — filters and actions to customize output without forking the plugin

js snippet into your site.

Features

  • Google tag / GA4 Measurement ID support (GT-…, G-XXXXXXXXXX)
  • Additional tracking IDs for separate destinations (e.g. Google Ads AW-)
  • Legacy UA- ID acceptance (with admin notice to migrate)
  • Code in <head> by default (optional footer placement)
  • Tracking never injected in wp-admin
  • Hide tracking for administrators on the front end
  • Hide tracking per user role
  • Google Consent Mode v2 defaults (for GDPR / cookie plugins)
  • Keep settings on uninstall (optional)
  • Developer hooks and filters

External services

js) to provide website analytics.

  • When: on public front-end page views only (never in the WordPress admin area), unless tracking is hidden for the current visitor by plugin settings
  • What is sent: standard Google Analytics measurement data (for example page URL, referrer, browser/device information, and IP-derived location), processed by Google
  • Who receives it: Google LLC / Google Analytics
  • Terms of Service: https://marketingplatform.google.com/about/analytics/terms/us/
  • Privacy Policy: https://policies.google.com/privacy

You are responsible for informing visitors (for example in your privacy policy) and, where required, obtaining consent. Suggested privacy policy text is also offered under Settings → Privacy when the plugin is active.

Requirements

  • WordPress 6.3 or later (compatible with WordPress 7+)
  • PHP 7.4 or later

Examples

Filter tracking IDs

add_filter( 'pp_google_analytics_head_tracking_ids', function( $ids ) { // Add a separate destination only — not a second ID for the same Google tag. $ids[] = 'AW-123456789'; return $ids; } );

Change Consent Mode defaults (PHP)

add_filter( 'pp_google_analytics_head_consent_defaults', function( $defaults ) { $defaults['wait_for_update'] = 2000; $defaults['region'] = [ 'PL', 'DE', 'US-CA' ]; return $defaults; } );

Grant consent after the user accepts cookies (JavaScript)

Call this from your consent plugin callback or custom banner “Accept” handler. Update all four types that this plugin sets to denied by default:

gtag('consent', 'update', { analytics_storage: 'granted', ad_storage: 'granted', ad_user_data: 'granted', ad_personalization: 'granted' });

If you only want basic analytics (not ads), grant analytics and keep ads denied:

gtag('consent', 'update', { analytics_storage: 'granted', ad_storage: 'denied', ad_user_data: 'denied', ad_personalization: 'denied' });

Modify the inline gtag config

= "gtag('event','page_view');"; return $script; }, 10, 2 );

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • analytics
  • ga4
  • gtag
  • lightweight
  • tracking
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 7.0

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 7.0.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.0
Minimum requirementsWordPress 6.3 · PHP 7.4
Update activity28 Jul 20263mo ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.