Skip to content

Latest commit

 

History

History
85 lines (63 loc) · 5.1 KB

readme.md

File metadata and controls

85 lines (63 loc) · 5.1 KB

CAOS | Host Google Analytics Locally

WordPress version WordPress Rating WordPress Downloads

Automagically download and update gtag.js, bypass Ad Blockers with Stealth Mode, add the tracking code to your site's footer and tons of other features!

Description

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, which is basically Google Analytics Lite. 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 Tracking-ID and the plugin adds the necessary Tracking Code for Google Analytics 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,
  • 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!
  • Compatible with all Cookie Notice plugins, e.g.
    • Complianz,
    • CookieYes,
    • WP Cookie Notice,
    • Cookie Notice & Compliance,
    • Cookie Notice & Consent Banner,
    • And many more!
  • Minimal Analytics support,
  • Preconnect to google-analytics.com to reduce latency and speed up requests,
  • Send an event to your Google Analytics dashboard when a visitor is viewing your pages using an Ad Blocker,
  • Add tracking code to header, footer or manually,
  • Load the tracking snippet Asynchronous or Default (Synchronous)
  • 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,
  • Change enqueue order (prioritize order of loaded scripts),
  • Force disabling display features functionalities,
  • Anonymize IP addresses (last octet),
  • Track logged in Administrators

Features in CAOS Pro

Use Google Analytics in compliance with GDPR with:

  • Cookieless Analytics (which grants a fresh, untraceable UUID/ClientID to each visitor),
  • True IP anonymization (which anonymizes the last 2 octets of your user's IP address, e.g. 192.168.0.0 before sending it to Google Analytics),
  • Stealth Mode (a unique, customized API, designed for WordPress, which anonymizes your visitor's data before sending it overseas, i.e. the US).

Other features

  • Cloaked Affiliate Link Tracking,
  • Support for Enhanced Ecommerce when in Stealth Mode,
  • Cloudflare Compatibility Mode.

Installation

Using GIT

  1. From your terminal, cd to your plugins directory (usually wp-content/plugins)
  2. Run the following command: git clone https://github.com/Dan0sz/host-analytics-locally.git host-analyticsjs-locally

From the WordPress Repository

  1. From your WordPress administrator area, go to Plugins > Add New
  2. Search for 'Daan van den Bergh'
  3. Click the 'Install' button next to CAOS | Host Google Analytics Locally
  4. Click 'Activate'

Frequently Asked Questions

Visit the FAQ at Wordpress.org

Support

For Support Queries, checkout the Support Forum at Wordpress.org

Changelog

Visit the Changelog at Wordpress.org