WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Daan van den Bergh v5.0.3

CAOS

The fastest, lightest way to integrate Google Analytics in WordPress.

CAOS

The facts

Rating
4.9★ from 128
Active installs
10k+
Price
Free
Last updated
4 Jun 2026
Added
May 2016
Requires WP
4.6
Tested up to
WP 7.0.4
Requires PHP
7.0
Downloads
2,038,680

Our analysis

AI-assisted

CAOS (Complete Analytics Optimization Suite) is a WordPress plugin that allows you to host Google Analytics' gtag.js file locally. It automates the process of downloading and updating this file using WordPress' Cron-schedule, which can improve your site's performance by reducing load times and enhancing caching capabilities.

This plugin is suitable for users who want a lightweight alternative to standard Google Analytics libraries and those who need to comply with GDPR regulations. It supports Minimal Analytics 4 and offers compatibility with various other analytics and cookie compliance plugins.

Best for: This plugin suits website owners looking to optimise Google Analytics performance while ensuring GDPR compliance.

What it does well

  • Hosts gtag.js locally to improve site performance
  • Automated updates using WordPress' Cron-schedule
  • Supports Minimal Analytics 4
  • Compatibility with multiple analytics and cookie compliance plugins
  • Renames downloaded files to avoid ad blockers

Where it falls short

  • Limited information on advanced features and settings
  • No details on user support or documentation

Verdict

CAOS is a practical solution for hosting Google Analytics locally, particularly for those prioritising site speed and compliance. However, detailed support information is lacking.

From the developer

Daan van den Bergh's own description of CAOS, lightly tidied.

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!
    • Complianz,
    • CookieYes,
    • WP Cookie Notice,
    • Cookie Notice & Compliance,
    • Cookie Notice & Consent Banner,
    • And many more!

    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.

    Read the full description on the official page →

Tagged as

Alternatives

Other plugins for measuring traffic.

Under Construction

Easy to use Under Construction Page & Coming Soon Page. Enable Under Construction Mode in seconds & sh...

Free 600k+ installs 4.8★ (1,285)
Ad Inserter

Manage Google AdSense ads, banners, ad rotation, sticky widgets, AMP ads, ads.txt, tracking, header and footer...

Free 300k+ installs 4.9★ (2,428)
MonsterInsights

The best free Google Analytics plugin for WordPress. See how visitors find and use your website so you can gro...

Free 2M+ installs 4.5★ (3,148)
Maintenance

Great looking maintenance, coming soon & under construction pages. Put your site under maintenance in minu...

Free 1M+ installs 4.4★ (860)
Header Footer Code Manager

Easily add tracking code snippets, conversion pixels, or other scripts required by third party services for an...

Free 600k+ installs 4.9★ (309)
GA Google Analytics

Adds Google Analytics tracking code to your WordPress site. Supports many tracking features.

Free 400k+ installs 4.9★ (158)