CAOS | Host Google Analytics Locally
CAOS can be downloaded for free without any paid subscription from the official WordPress repository. CAOS (Complete Analytics Optimization Suite) for Google Analytics allows you to host gtag.js locally and keep it updated using WordPress’ built-in Cron-schedule. Fully automatic! Not a big Google Analytics user and just curious about your pageviews? CAOS fully supports Minimal Analytics 4. An extremely lightweight alternative to Google Analytics’ default libraries (gtag.js). Minimal Analytics also helps you get rid of that annoying Unused JS notice in Google PageSpeed Insights! Whenever you run an analysis of your website on Google Pagespeed Insights, Pingdom or GTMetrix, it’ll tell you to leverage browser cache when you’re using Google Analytics. Because Google has set the cache expiry time to 2 hours. This plugin will get you a higher score on Pagespeed and Pingdom and make your website load faster, because the user’s browser doesn’t have to make a roundtrip to download the file from Google’s external server. Just install the plugin, enter your Measurement ID and the plugin adds the necessary Tracking Code for Google Analytics 4 to the header (or footer) of your theme, downloads and saves the gtag.js-file to your website’s server and keeps it updated (automagically) using a scheduled script in wp_cron(). Or if you’d like to use the locally hosted file with another plugin, check Compatibility Mode under Advanced Settings, Either way, CAOS is a set and forget plugin. For more information: [How to setup CAOS](For more information: How to setup CAOS. Features Host gtag.js for Google Analytics 4 locally, Downloaded files are renamed to random strings to avoid ad blockers, Minimal Analytics 4 support, Compatibility Mode allows you to use the locally hosted file with all Google Analytics plugins, e.g. MonsterInsights (Pro), ExactMetrics Site Kit by Google, WooCommerce Google Analytics Integration, WooCommerce Google Analytics Pro, Analytify, And many more! Compatible with all Cookie Notice plugins, e.g. Complianz, CookieYes, WP Cookie Notice, Cookie Notice & Compliance, Cookie Notice & Consent Banner, And many more! Preconnect to google-analytics.com to reduce latency and speed up requests, Add tracking code to header, footer or manually, Save gtag.js anywhere within the WordPress content (wp-content) directory to avoid detection by WordPress security plugins (such as WordFence) or removal by caching plugins (such as WP Super Cache), Serve gtag.js from your CDN, Set Cookie Expiry Period, Force disabling display features functionalities, Track logged in Administrators, Features in CAOS Pro Use Google Analytics in compliance with GDPR with: – Randomize Client ID (which grants a fresh, untraceable UUID/ClientID to each visitor), – Stealth Mode (a unique, customized API, designed for WordPress, which anonymizes your visitor’s data before sending it to Google’s servers). Other features: – Cloaked Affiliate Link Tracking, – Cloudflare Compatibility Mode.
Post Views Counter
Post Views Counter allows you to collect and display how many times a post, page, or other content has been viewed in a simple, fast and reliable way. Post Views Counter gives you clear, accurate post view stats — right inside WordPress. No external tools. No bloat. Just the numbers you need to see what’s working. Key Benefits Clarity, speed, and control: Clear, Focused Metrics — You get a clear picture of how your posts are performing. Made for WordPress — Runs entirely in your site. No GA, no third-party pipes; accurate counts in your Dashboard. Privacy-first — Data lives on your server, with controls that respect visitors’ rights and privacy regulations. Works at scale — Minimal overhead, no external scripts, Multisite-ready. Display anywhere — Automatically show counts, or place them exactly where you want via blocks or shortcode. Features Practical features that matter: Count & display views for any post type you select. Three counting modes: PHP, JavaScript, REST API Dashboard post views stats widget Sortable Post Views admin column Exclude bots, logged-in users, specific roles, or IPs Manually adjust a post’s views when needed. Query and order content by views (developer-friendly) Custom REST API endpoints Option to set count interval One-click data import from WP-PostViews, Statify and Page Views Count Post views display position, automatic or manual via shortcode Multisite compatibile WPML/Polylang compatible; translation-ready (.pot) Post Views Counter Pro More capability without extra complexity: Fast AJAX counting for more accurate data. Caching optimization that guarantees performance even under heavy traffic. Reports: Views by Date, Post, Author to spot winners, trends, and top contributors. Customizable Views Period (e.g., last 7/30 days) to control the views count timeframe. Export to CSV/XML to download and share data. Integrations for ordering by views in popular builders (e.g., Elementor Pro, Divi, GenerateBlocks). Learn more about Pro →