The WPFolks app is out on iPhone and Android. Free, no ads. Download on the App Store Get it on Google Play
Skip to main content
Login Join

CAOS | Host Google Analytics Locally

CAOS | Host Google Analytics Locally banner
Active installs
10k+
128 ratings
4.9
Last updated
6 months ago
Version
5.0.3
Tested up to
WP 7.0.9

About this plugin

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 Mesurement 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.

Analytics

Live from WordPress.org, refreshed daily. Last refresh Nov 30, 2026.

Top 5,000 on WordPress.org Plugin rankings
  • #16 by installs among 52 tracked plugins tagged "Google".
  • Passes every health check below.
4/4

Health checks

Everything a careful site owner looks at before installing.

  • Actively maintained Last release 6 months ago
  • Tested with current WordPress Tested up to 7.0.9
  • Support questions answered 1 of 1 resolved in two months
  • Well rated 4.9 stars from 128 ratings
Active installs
10,000+ WordPress.org rounds this down
This week
424 downloads +5.5% vs the week before
Last 30 days
1,780 downloads −6.6% on a typical day
All time
2M downloads On WordPress.org since 2016
Downloads per week Every update counts as a download on WordPress.org, so release weeks spike.
Latest week
424
Typical week
5,302
Peak
14,231 Week of Dec 1, 2025
View as table
WeekDownloads
Week of Nov 23424
Week of Nov 16402
Week of Nov 9375
Week of Nov 2438
Week of Oct 26430
Week of Oct 19476
Week of Oct 12408
Week of Oct 5399
Week of Sep 28448
Week of Sep 21431
Week of Sep 14452
Week of Sep 7429
Week of Aug 31765
Week of Aug 244,773
Week of Aug 176,282
Week of Aug 106,132
Week of Aug 36,460
Week of Jul 276,463
Week of Jul 206,219
Week of Jul 136,225
Week of Jul 66,302
Week of Jun 295,822
Week of Jun 225,822
Week of Jun 156,100
Week of Jun 86,635
Week of Jun 111,383
Week of May 255,971
Week of May 186,521
Week of May 116,172
Week of May 412,356
Week of Apr 275,251
Week of Apr 205,309
Week of Apr 135,168
Week of Apr 65,201
Week of Mar 305,220
Week of Mar 235,146
Week of Mar 165,151
Week of Mar 95,703
Week of Mar 25,200
Week of Feb 235,255
Week of Feb 165,233
Week of Feb 95,294
Week of Feb 25,413
Week of Jan 265,265
Week of Jan 195,279
Week of Jan 125,395
Week of Jan 55,431
Week of Dec 29, 20255,453
Week of Dec 22, 20255,436
Week of Dec 15, 20255,804
Week of Dec 8, 20256,313
Week of Dec 1, 202514,231

Reviews

4.9 128 ratings on WordPress.org
  • 5 124
  • 4 1
  • 3 0
  • 2 0
  • 1 3

From folks on WPFolks

No reviews from folks yet. Used it? Be the first to say how it went.

Log in to leave a review

Latest on WordPress.org

Proudly supported by