Analytics Head
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 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) 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 );
Top keywords
- google19×3.97%
- analytics16×3.34%
- tracking8×1.67%
- consent7×1.46%
- google analytics7×1.46%
- ids7×1.46%
- ad6×1.25%
- defaults6×1.25%
- gtag6×1.25%
- 'granted'5×1.04%
- head5×1.04%
- privacy5×1.04%
Tracking and Consent Manager – WP Full Picture
WP Full Picture is a tracking manager for WordPress and WooCommerce. It lets you install tracking tools, display a GDPR-compliant consent banner and block tracking until visitors give their consent. WP Full Picture replaces: Tracking plugins, like PixelYourSite, Pixel Manager for WooCommerce or Google Site Kit, GTM plugins, like GTM4WP, Consent Management Platforms, like CookieBot, CookieYes, Complianz and others. 🎁 WHAT’S INCLUDED 16 ready-to-use integrations with tools like Google Analytics, Google Ads, Meta Pixel, and more Built-in, pre-configured consent banner Google Consent Mode v2 and Microsoft UET Consent Mode support Google Tag Manager integration Comprehensive WooCommerce tracking …and much more 🧩 INTEGRATIONS Connect all your favorite tracking and analytics tools in minutes — no coding, no chaos. WP Full Picture comes with ready-to-use integrations that help you understand your visitors, optimize your campaigns, and grow your business — all while staying compliant. Google Analytics learn more Google Ads learn more Meta Pixel learn more Pinterest Ads tag learn more Hotjar learn more Twitter / X learn more Microsoft Advertising learn more Microsoft Clarity learn more LinkedIn Insights Tag learn more TikTok Pixel learn more Plausible Analytics learn more Matomo learn more Inspectlet learn more Crazy Egg learn more PostHog (installation only) Simple Analytics (installation only) Need something else? Install more tools with the built-in Google Tag Manager integration (advanced) or a Custom Integrations module (quick and simple). All tools installed with outhese modules work seamlessly with the built-in consent banner and consent management system — so every tool runs in full compliance. 🍪 CONSENT BANNER WP FP comes with a GDPR-compliant consent banner that just works — no setup headaches, no cookie scans, no limits. It comes with Google Consent Mode v2 and Microsoft UET Consent Mode built-in, so you can safely collect traffic insights, run ad campaigns and track conversions. The banner automatically manages all your tracking tools that you installed with WP Full Picture, ensuring your site stays compliant with privacy laws while you keep gathering valuable data. No complicated setup. No third-party cookie scanners. 👁️ ADVANCED TRACKING With WP Full Picture you can track: WooCommerce events (see below) Clicks in affiliate links, contact links, buttons and other page elements Form submissions Views of popups, ads and pricing tables Page types, categories, tags User roles and statuses and more You can track it with the tools installed with WP FP or push this data to Google Tag Manager’s dataLayer. Whatever you prefer. [PRO] With WP Full Picture Pro, you go one step further and unlock business-oriented features like: Server-side tracking with Meta CAPI and Measurement Protocol Google Tag Gateway via Cloudflare Advanced Matching / Enhanced conversions tracking Custom events builder Visitor scoring (for measuring the quality of traffic sources) Metadata tracking JavaScript error tracking and more 🛒 WOOCOMMERCE TRACKING WP Full Picture tracks all major WooCommerce events in 14 tracking tools, including Google Analytics, Google Ads, Meta Pixel, and Google Tag Manager. It tracks key actions like: Product views and list views Additions to cart Starting checkout Completed purchases Coupon usage and more Every event includes detailed product information for accurate conversion tracking and smarter ad targeting. [PRO] The Pro version adds: Status-based order tracking (for higher accuracy) Server-side tracking with Meta Capi and Measurement Protocol (to better avoid ad blockers) Enhanced conversions and advanced matching (for better conversion attribution and ad optimisation) 📈 STATISTICS IN WP ADMIN With WP Full Picture, you can embed reports with statistics from Google Looker Studio, Databox, and other BI platforms – directly in your WP admin. 💎 WP FULL PICTURE FREE vs PRO See Free vs Pro comparison Quizz: Check if Pro is for you