WordPress plugin
CAOS Pro
CAOS Pro brings local Google Analytics 4 file hosting, tracking setup and compatibility controls into one WordPress plugin. It downloads the gtag.js file to your server and keeps it updated through WordPress’ scheduled Cron process. Enter your Measurement ID to have CAOS add tracking code to your theme’s header or footer, or add the code manually.
CAOS Pro brings local Google Analytics 4 file hosting, tracking setup and compatibility controls into one WordPress plugin. It downloads the gtag.js file to your server and keeps it updated through WordPress’ scheduled Cron process. Enter your Measurement ID to have CAOS add tracking code to your theme’s header or footer, or add the code manually.
Choose a tracking library and delivery settings
Use the standard Google Analytics 4 library or pick Minimal Analytics 4, a lightweight alternative intended for sites focused on basic pageview analytics. CAOS can preconnect to Google Analytics to reduce request latency. You can also set the cookie expiry period, force-disable display capabilities, and track logged-in administrators. Downloaded files can be renamed to random strings to help avoid ad blockers.
The local file can be saved anywhere in the WordPress wp-content directory and served from your CDN. WordPress’ scheduled Cron process keeps the downloaded analytics file updated automatically.
Connect analytics and cookie add-ons
Compatibility Mode lets other Google Analytics add-ons use CAOS’ locally hosted file. Listed examples include MonsterInsights Pro, ExactMetrics, Site Kit by Google, WooCommerce Google Analytics Integration, WooCommerce Google Analytics Pro, and Analytify.
CAOS also supports compatibility with cookie notice plugins such as Complianz, CookieYes, WP Cookie Notice, Cookie Notice & Compliance, and Cookie Notice & Consent Banner. Cloudflare Compatibility Mode is available for sites using Cloudflare.
Configure privacy and affiliate tracking
CAOS Pro includes Randomize Client ID, which assigns a fresh UUID or Client ID to each visitor, and Stealth Mode, which uses a customized WordPress API to anonymize visitor data before sending it to Google. These are analytics configuration controls; site owners can set their analytics and cookie behavior to match their requirements.
Pro also includes cloaked affiliate link tracking, adding affiliate tracking to the same analytics workflow.
Set up CAOS Pro
- Install and activate CAOS Pro in WordPress.
- Enter your Google Analytics 4 Measurement ID.
- Choose whether CAOS should add tracking code to the header or footer, or add the code manually.
- Let CAOS download and save the local gtag.js file.
- Choose settings such as Minimal Analytics 4, Compatibility Mode, CDN delivery, cookie expiry, or administrator tracking as needed.
- Review Randomize Client ID and Stealth Mode if you want to use those privacy-oriented controls.
WordPress Cron updates the locally hosted analytics file on its scheduled process.
