WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Łukasz Nowicki v1.7.0

Analytics Head

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

Analytics Head

The facts

Rating
5★ from 1
Active installs
600+
Price
Free
Last updated
28 Jul 2026
Added
Jun 2011
Requires WP
6.3
Tested up to
WP 7.0.4
Requires PHP
7.4
Downloads
26,180

Our analysis

AI-assisted

Analytics Head is a WordPress plugin designed to integrate Google Analytics tracking code into your site without unnecessary features. It allows you to easily paste your GA4 Measurement ID and choose where to place the tracking code, either in the head or footer of your site.

This plugin is suitable for users who prefer a lightweight solution for analytics without the complexity of dashboards or account connections. It includes options for role-based tracking visibility and complies with GDPR requirements through Consent Mode v2.

Best for: This plugin suits website owners looking for a straightforward way to implement Google Analytics tracking.

What it does well

  • Lightweight with minimal overhead
  • Easy GA4 Measurement ID integration
  • Flexible tracking code placement options
  • Role-based tracking visibility
  • Developer-friendly with hooks and filters

Where it falls short

  • Limited feature set compared to larger analytics solutions
  • No visual dashboards or reports

Verdict

Analytics Head provides a simple and efficient method for Google Analytics integration, making it a practical choice for those who want minimalism in their analytics setup.

From the developer

Łukasz Nowicki's own description of Analytics Head, lightly tidied.

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

Unlike heavyweight analytics suites, this plugin does one job well: inject the standard gtag.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

This plugin connects to Google Analytics (via Google Tag Manager / gtag.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)

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for measuring traffic.

Under Construction

Easy to use Under Construction Page &amp; Coming Soon Page. Enable Under Construction Mode in seconds &amp; sh...

Free 600k+ installs 4.8★ (1,285)
Ad Inserter

Manage Google AdSense ads, banners, ad rotation, sticky widgets, AMP ads, ads.txt, tracking, header and footer...

Free 300k+ installs 4.9★ (2,428)
MonsterInsights

The best free Google Analytics plugin for WordPress. See how visitors find and use your website so you can gro...

Free 2M+ installs 4.5★ (3,148)
Maintenance

Great looking maintenance, coming soon &amp; under construction pages. Put your site under maintenance in minu...

Free 1M+ installs 4.4★ (860)
Header Footer Code Manager

Easily add tracking code snippets, conversion pixels, or other scripts required by third party services for an...

Free 600k+ installs 4.9★ (309)
GA Google Analytics

Adds Google Analytics tracking code to your WordPress site. Supports many tracking features.

Free 400k+ installs 4.9★ (158)