WordPress plugin

CAOS Pro

CAOS Pro lets WordPress websites host Google Analytics 4's gtag.js file locally. After you enter a Measurement ID, the plugin can add tracking code to the theme header or footer; manual placement is also available. CAOS downloads the file to your site, and WordPress Cron keeps it updated. You can save it anywhere under wp-content and serve it through a CDN.

CAOS Pro

CAOS Pro lets WordPress websites host Google Analytics 4's gtag.js file locally. After you enter a Measurement ID, the plugin can add tracking code to the theme header or footer; manual placement is also available. CAOS downloads the file to your site, and WordPress Cron keeps it updated. You can save it anywhere under wp-content and serve it through a CDN.

Choose tracking and file delivery settings

Minimal Analytics 4 is a lighter alternative to Google Analytics' default library for websites focused on basic pageview analytics. Other settings can preconnect to Google Analytics to reduce request latency, set the cookie expiry period, disable display capabilities, and include logged-in administrators in tracking. CAOS can rename downloaded documents to random strings to help avoid ad blockers.

Use the local file with other add-ons

Compatibility Mode lets other Google Analytics add-ons use the locally hosted file. Examples include MonsterInsights Pro, ExactMetrics, Site Kit by Google, WooCommerce Google Analytics Integration, WooCommerce Google Analytics Pro, and Analytify. Cookie notice compatibility includes Complianz, CookieYes, WP Cookie Notice, Cookie Notice & Compliance, and Cookie Notice & Consent Banner. Cloudflare Compatibility Mode is also available.

Configure privacy-oriented settings

Randomize Client ID assigns each user a fresh UUID or ClientID. Stealth Mode uses a customized WordPress API described as anonymizing visitor data before it is sent to Google's servers.

Track cloaked affiliate links

CAOS Pro includes cloaked affiliate link tracking alongside its analytics settings.

Set up CAOS Pro

  1. Install and activate CAOS Pro in WordPress.
  2. Enter your Google Analytics 4 Measurement ID.
  3. Choose whether to add tracking code to the header, footer, or manually.
  4. Let CAOS download and save the local gtag.js file.
  5. Choose settings such as Minimal Analytics 4, Compatibility Mode, CDN delivery, cookie expiry, or administrator tracking as needed.
  6. Review Randomize Client ID and Stealth Mode if they apply to your setup.

WordPress Cron updates the locally hosted analytics file on its scheduled process.