CAOS | Host Google Analytics Locally
The fastest, lightest way to integrate Google Analytics in WordPress.
Choix solide
CAOS is a solid plugin choice in 2026, with a few things worth checking first. It runs on 10K+ sites, is rated 4.9/5 and was last updated 6 months ago, and scores 73/100 on our health check.
- Prouvé à grande échelle sur plus de 10 000 sites actifs
- Loved by users — 4.9/5 from 128 reviews
Comment s'accumule-t-il ?
Côte à côte sur les installations, les mises à jour, les évaluations et le supportTéléchargements quotidiens
Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.
Classements
Where CAOS stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| analytique | #33 |
| GDPR | >100 |
| #79 | |
| gtag | #1 |
| minimal | #4 |
Adoption de version
Part de sites actifs par version.
Répartition des notes
★★★★★★★★★★ 4.9 from 128 reviews
About CAOS | Host Google Analytics Locally
From the official readme · v5.0.3Description
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.
Traits
- 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),
- ExactMerics
- 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.
Installation
- Upload the plugin files to the
/wp-content/plugins/host-analyticsjs-localdirectory, or install the plugin through the WordPress plugins repository directly. - Activez le plugin via l'écran "Plugins" dans WordPress
- Use the Settings -> Optimize Google Analytics screen to configure the plugin
Journal de modifications
5.0.3
- Tested with WP 7.0.
5.0.2
- Fixed: Preconnect attribute shouldn’t be added when Allow Tracking is set.
- Added: custom wrapper for Gtag that makes sure custom gtag() events keep working.
5.0.1
- Tested with WP 6.9.
- Fixed: syntax error in the Update Available message would break JS execution on the Plugins overview page.
- Fixed: on some instances an Uncaught TypeError would appear on every page in the admin screen.
5.0.0
- Improved: new settings screen fully aligned with Daan.dev’s new look!
- Improved: possible XSS vulnerability.
- Improved: CAOS’ settings can now be found under Settings > CAOS (instead of Optimize Google Analytics)
- Minor code improvements to MA4-template.
4.8.7
- Improved PHP 8.3 compatibility.
- Tested with WP 6.8.
4.8.6
- Fixed: Minimal Analytics would stop working in 4.8.5.
Pour les développeurs
Est-ce votre plugin ? Montrez les chiffres.
Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.
Best CAOS alternatives
Tous les plugins d'analyse →FAQ
CAOS | Host Google Analytics Locally: quick answers
Réponses directes, extraites des données en direct WordPress.org.
Source : WordPress.org
Is CAOS free?
Yes. CAOS is free to download and use from the official WordPress.org plugin directory.
Is CAOS safe to use in 2026?
CAOS is a solid plugin choice in 2026, with a few things worth checking first. It runs on 10K+ sites, is rated 4.9/5 and was last updated 6 months ago, and scores 73/100 on our health check.
How many websites use CAOS?
CAOS is active on 10K+ WordPress websites and has been downloaded 2,045,077 times since it launched in May 2016. It was downloaded 1,780 times in the last 30 days.
Does CAOS work with WordPress 7.1?
CAOS is officially tested up to WordPress 7.0.9, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does CAOS need?
CAOS requires PHP 7.0 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was CAOS last updated?
The latest version, 5.0.3, was released on June 4, 2026 (6 months ago).
Who makes CAOS?
CAOS is developed and maintained by Daan van den Bergh.
What are the best alternatives to CAOS?
The most popular alternatives to CAOS are Site Kit by Google (5M+ installs), MonsterInsights (2M+ installs) and WP Statistics (500K+ installs).
Propulsé par PageForge
Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.
PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.
- CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
- Son propre titre, URL, SEO champs et schéma pour chaque page
- Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
- Gratuit sur WordPress.org, pas de carte de crédit
