Analytics Head
A lightweight Google Analytics plugin for WordPress. Paste your Measurement ID, choose head or footer — done.
Solide Wahl
Analytics Head is a solid plugin choice in 2026, with a few things worth checking first. It runs on 600+ sites, is rated 5/5 and was last updated 4 months ago, and scores 62/100 on our health check.
- Kleine Benutzerbasis (600+ aktive Installationen)
- Bisher sehr wenige Bewertungen
Wie stapelt es sich?
Side-by-side bei Installationen, Updates, Bewertungen und SupportTägliche Downloads
Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.
Ranglisten
Where Analytics Head stands todayWordPress.org Ranglisten suchen
Live-Position in der Plugin-Suche, Top 100| Stichwort | Position |
|---|---|
| analytics | #41 |
| GA4 | #41 |
| gtag | #4 |
| lightweight | #68 |
| tracking | >100 |
Versionsübernahme
Anteil aktiver Sites pro Release.
Bewertungsaufschlüsselung
★★★★★★★★★★ 5 from 1 reviews
About Analytics Head
Aus der offiziellen Readme · V1.7.0Beschreibung
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.
Merkmale
- 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
Externe Dienste
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.
Bedarf
- WordPress 6.3 or later (compatible with WordPress 7+)
- PHP 7.4 or later
Beispiele
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
add_filter( 'pp_google_analytics_head_inline_script', function( $script, $ids ) {
$script .= "gtag('event','page_view');";
return $script;
}, 10, 2 );
Installation
- Upload the
analytics-headdirectory to/wp-content/plugins/ - Activate the plugin through the Plugins menu in WordPress
- Go to Settings → Analytics Head
- Enter your GA4 Measurement ID (G-XXXXXXXXXX)
- Save — tracking starts immediately
Änderungsprotokoll
Major update: GA4 support, Consent Mode, role-based hiding, lighter codebase. WordPress 6.3+ and PHP 7.4+ required. The legacy pp_google_analytics_head_output filter was removed — use the new filters. Replace UA- IDs with GA4 G- IDs.
1.7.0
- Release date: 2026-07-28
- Renamed display name to Analytics Head (WordPress.org naming guidelines)
- Google tag / GA4 ID support (GT-, G-) and Google Ads IDs (AW-)
- WordPress 6.3+ and PHP 7.4+ requirement; async script strategy; tested with WordPress 7+
- Translations via WordPress Polyglots (removed bundled language files)
- Output via wp_enqueue_script with real async strategy (inline gtag queued as before)
- Tracking IDs resolved once during wp_enqueue_scripts (late filters / conditional tags work)
- Consent Mode v2 defaults for GDPR / cookie plugin integration (including optional region)
- No wp-admin tracking; role-based front-end visibility via wp_roles()
- Optional keep settings on uninstall (batched multisite cleanup)
- External service documentation and privacy policy helper text
- Invalid IDs no longer wipe previously saved values; filter validation hardened
1.6.7
- Release date: 2018-11-21
- Set compatibility tag
Für Entwickler
Ist das dein Plugin? Zeigen Sie die Zahlen.
Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.
Best Analytics Head alternatives
All analytics plugins →Fragen und Antworten
Analytics Head: quick answers
Gerade Antworten, gezogen von Live WordPress.org Daten.
Quelle: WordPress.org
Is Analytics Head free?
Yes. Analytics Head is free to download and use from the official WordPress.org plugin directory.
Is Analytics Head safe to use in 2026?
Analytics Head is a solid plugin choice in 2026, with a few things worth checking first. It runs on 600+ sites, is rated 5/5 and was last updated 4 months ago, and scores 62/100 on our health check.
How many websites use Analytics Head?
Analytics Head is active on 600+ WordPress websites and has been downloaded 27,003 times since it launched in June 2011. It was downloaded 364 times in the last 30 days.
Does Analytics Head work with WordPress 7.1?
Analytics Head is officially tested up to WordPress 7.0.9, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does Analytics Head need?
Analytics Head requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Analytics Head last updated?
The latest version, 1.7.0, was released on July 28, 2026 (4 months ago).
Who makes Analytics Head?
Analytics Head is developed and maintained by Łukasz Nowicki.
What are the best alternatives to Analytics Head?
The most popular alternatives to Analytics Head are Site Kit by Google (5M+ installs), MonsterInsights (2M+ installs) and WP Statistics (500K+ installs).
Angetrieben von PageForge
Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.
PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.
- CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
- seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
- Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
- Kostenlos auf WordPress.org, keine Kreditkarte

