
CAOS | Host Google Analytics Locally Security & Risk Analysis
wordpress.org/plugins/host-analyticsjs-localThe fastest, lightest way to integrate Google Analytics in WordPress.
Is CAOS | Host Google Analytics Locally Safe to Use in 2026?
Generally Safe
Score 99/100CAOS | Host Google Analytics Locally has a strong security track record. Known vulnerabilities have been patched promptly.
The "host-analyticsjs-local" plugin version 5.0.1 exhibits a mixed security posture. On the positive side, the static analysis reveals a very small attack surface with only one AJAX handler, which importantly, appears to have a nonce check. All SQL queries utilize prepared statements, and there are no reported critical or high-severity vulnerabilities currently unpatched. The absence of taint flows with unsanitized paths and critical/high severity issues in the taint analysis is also encouraging, suggesting a generally good effort in preventing common code injection and path traversal vulnerabilities within the analyzed flows.
However, several areas warrant attention. While the output escaping is at 77%, this still means a significant portion of outputs (23%) are not properly escaped, which could lead to cross-site scripting (XSS) vulnerabilities. The plugin also performs external HTTP requests and file operations, which can be vectors for further compromise if not handled securely. The historical vulnerability data is a significant concern, with two medium-severity CVEs related to Missing Authorization and Path Traversal. Although none are currently unpatched, this history indicates a pattern of past security weaknesses, suggesting a need for continued vigilance and potentially more robust internal security testing.
In conclusion, while the current version shows improvements with protected entry points and secure SQL handling, the past vulnerability history and the less-than-perfect output escaping are weaknesses. The plugin developers have addressed past issues and show good practices in some areas, but the potential for XSS due to unescaped output and the historical pattern of authorization and path traversal vulnerabilities mean users should remain cautious and ensure the plugin is always updated to the latest secure version.
Key Concerns
- 23% of outputs are not properly escaped
- History of medium severity vulnerabilities (2 total)
- Vulnerabilities found: Missing Authorization
- Vulnerabilities found: Path Traversal
CAOS | Host Google Analytics Locally Security Vulnerabilities
CVEs by Year
Severity Breakdown
2 total CVEs
CAOS | Host Google Analytics Locally <= 4.7.14 - Missing Authorization to Unauthenticated Plugin Settings Update
CAOS <= 4.1.8 - Admin+ Arbitrary Folder Deletion via Path Traversal
CAOS | Host Google Analytics Locally Code Analysis
Output Escaping
Data Flow Analysis
CAOS | Host Google Analytics Locally Attack Surface
AJAX Handlers 1
WordPress Hooks 80
Maintenance & Trust
CAOS | Host Google Analytics Locally Maintenance & Trust
Maintenance Signals
Community Trust
CAOS | Host Google Analytics Locally Alternatives
Flying Analytics: Self-Host Google Analytics v4 with Speed Optimization
flying-analytics
Self-host Google Analytics v4 or use Minimal Analytics, a lightweight gtag.js alternative, to improve site speed and enhance privacy.
Google Analytics Opt-Out
google-analytics-opt-out
Provides opt-out functionality for Google Analytics.
Opt-Out for Google Analytics (DSGVO / GDPR)
opt-out-for-google-analytics
Allows the user to opt-out of Google Analytics tracking. DSGVO / GDPR.
Tracking and Consent Manager – WP Full Picture
full-picture-analytics-cookie-notice
All-in-one tracking and consent management. Use Google Analytics, Google Ads, Meta Pixel, and more - without breaking privacy laws.
Surbma | GDPR Proof Cookie Consent & Notice Bar
surbma-gdpr-proof-google-analytics
This plugin helps your website to comply with GDPR cookie regulations by asking every visitors to accept or decline cookie tracking.
CAOS | Host Google Analytics Locally Developer Profile
3 plugins · 311K total installs
How We Detect CAOS | Host Google Analytics Locally
Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.
Asset Fingerprints
/wp-content/plugins/host-analyticsjs-local/assets/js/gtag.min.js/wp-content/plugins/host-analyticsjs-local/assets/js/minimal-analytics.min.js/wp-content/plugins/host-analyticsjs-local/assets/js/gtag.min.js/wp-content/plugins/host-analyticsjs-local/assets/js/minimal-analytics.min.jshost-analyticsjs-local/assets/js/gtag.min.js?ver=host-analyticsjs-local/assets/js/minimal-analytics.min.js?ver=HTML / DOM Fingerprints
/* * * * * * * * * * * * * * * * * * * *
* ██████╗ █████╗ ██████╗ ███████╗
* ██╔════╝██╔══██╗██╔═══██╗██╔════╝
* ██║ ███████║██║ ██║███████╗
* ██║ ██╔══██║██║ ██║╚════██║
* ╚██████╗██║ ██║╚██████╔╝███████║
* ╚═════╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝
*
* @author : Daan van den Bergh
* @url : https://daan.dev/wordpress/caos/
* @copyright: © 2021 - 2024 Daan van den Bergh
* @license : GPL2v2 or later
* * * * * * * * * * * * * * * * * * * */data-codestats-enableddata-codestats-iddata-codestats-positiongtagcaos_consent_modecaos_consent_mode_listenerconsent_grantedwindow.dataLayer