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
PricingFree downloadThe WordPress.org download is free. Pro versions, add-ons or external services may cost extra.
CompatibilityRequires WordPress 6.3 and PHP 7.4.
SourceWordPress plugins · Nov 16, 2026
01 / Source details
Aboutthistool.
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
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/
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; } );
Settings page — paste your Measurement ID and choose placement.
02 / Source details
Gettingstarted.
01Upload the analytics-head directory to /wp-content/plugins/
02Activate the plugin through the Plugins menu in WordPress
03Go to Settings → Analytics Head
04Enter your GA4 Measurement ID (G-XXXXXXXXXX)
05Save — tracking starts immediately
03 / Source details
Frequently asked questions.
How do I get a Measurement ID?
Sign in to Google Analytics , create a GA4 property for your site, and copy the Measurement ID (format G-XXXXXXXXXX ) or Google tag ID ( GT-… ) from Admin → Data Streams. Use only one ID per Google tag — do not enter both the GT- and G- IDs that belong to the same tag.
Why place the code in the head section?
Google Search Console can verify site ownership via your Analytics tag, but only when the tag is in the <head> . You can move it to the footer anytime in plugin settings.
Do I need to connect my Google account?
No. This plugin only inserts the tracking snippet — no OAuth, no API keys, no Google login.
How does Consent Mode work?
Enable Consent Mode v2 under Privacy in the plugin settings. Before gtag.js loads, this plugin sets:
analytics_storage → denied
ad_storage → denied
ad_user_data → denied
ad_personalization → denied
wait_for_update → 500 ms
The tracking script still loads (that is how Consent Mode works). Until consent is granted, Google receives only limited, cookieless signals.
When the visitor accepts cookies, your GDPR / cookie banner plugin (or custom JavaScript) should call gtag('consent', 'update', …) and grant the same four storage types (see Examples). Granting only analytics_storage and ad_storage would leave ad user data / personalization permanently denied.
Most modern consent plugins that support Google Consent Mode already do this for you. Enable Consent Mode here, then enable Google Consent Mode / Analytics support in your consent plugin.
Does this block the Analytics script until consent?
No. Consent Mode is not a hard block. The script is always injected; consent defaults start as denied and are updated later. If you need to delay or remove the script until opt-in, use a consent plugin that hard-blocks tags, or filter pp_google_analytics_head_tracking_ids to return an empty list until consent is given.
Which GDPR plugins work with this?
Any plugin that can run gtag('consent', 'update', …) after the user accepts — for example Complianz, CookieYes, Borlabs Cookie, Cookiebot (when Google Consent Mode is enabled in that plugin). There is no proprietary bridge to a single vendor; we stay lightweight and use the standard Google API.
What if I know PHP?
Available hooks and filters (see the Examples section for code):
pp_google_analytics_head_before — action, before scripts are enqueued
pp_google_analytics_head_after — action, after scripts are enqueued
pp_google_analytics_head_tracking_ids — filter, modify the list of Measurement / Ads IDs ( $ids , $options )
pp_google_analytics_head_consent_defaults — filter, modify Consent Mode defaults ( analytics_storage , ad_storage , ad_user_data , ad_personalization , wait_for_update , optional region using ISO 3166-2 region codes)
pp_google_analytics_head_roles — filter, modify roles available in visibility settings
Note: The old pp_google_analytics_head_output HTML filter was removed in 1.7.0 (it was incompatible with wp_enqueue_script ). Use pp_google_analytics_head_inline_script or pp_google_analytics_head_tracking_ids instead.
Is it free?
Yes, GPLv2 or later. Donations are welcome but never required.
FinderPress Media Auditor helps site administrators scan for broken images, missing Media Library files, unreachable media URLs, and other media issues across WordPress content. Use it to audit images, video, audio, PDFs, featured images, and attachment files without sending scan data to an external
The Accepted Payment Methods plugin is a straightforward, lightweight solution that enhances your website by displaying visually appealing icons of the payment methods you accept. This plugin is ideal for a variety of websites, including e-commerce platforms, service-oriented websites, and informati