WordPress plugin intelligence profile

Cookieless Privacy-Focused Google Analytics

Enables Google Analytics without setting cookies or storing any data in the browser. Asking for user consent in the frontend should not be necessary.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 5.4
Current version1.0.1
WordPress coverageTested up to WordPress 5.4
Minimum stackWP 4.4 · PHP 7.0
Directory statusactive
Last directory update5 Jun 20206y ago
Active installations100Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 2 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Cookieless Privacy-Focused Google Analytics version 1.0.1 as active, updated 6y ago and tested up to WordPress 5.4.

Overview

About this plugin

Cookieless Privacy-Focused Google Analytics adds the GA tracking script to your site while configuring it in such a way that no cookies or other data are stored in the end user’s browser. With this plugin, it should not be necessary to ask for user consent in order to be compliant with GDPR and other EU legislation.

Being able to use Google Analytics without having to display a cookie consent dialog was the primary motivation behind the plugin.

IP address anonymization via anonymizeIp is enabled by the plugin, too, of course.

How It Works

Google Analytics requires a client ID, a unique string that identifies the user’s browser and persists between page hits. Without this plugin, the client ID is generated by the Google Analytics script when a site is first visited and stored in a cookie.

This plugin basically does two things:

  • Disable all Google Analytics cookies by setting storage to none
  • Generate an alternative client ID on the fly whenever a page is loaded

Client ID Generation

While Google Analytics works even without a client ID, many of its features require an ID that does not change between page hits or visits. This plugin generates the client ID on the fly in JavaScript while a page is loaded.

The generated client ID does not contain any personally identifiable information. This is achieved by:

  • Hashing the components that make up the client ID.
  • Switching to a new ID every few days (configurable).

The following components are used to build the client ID (the string that is then hashed):

  • Client IP address as seen by the webserver
  • Domain of the website where the plugin is installed
  • Browser user agent
  • Browser language
  • Validity period (a number that changes every n days to force a new client ID and prevent long-term tracking)

Usage

Install the plugin and add your Google Analytics tracking code ( UA-xxxxxx-y ). That’s it.

Configurable Settings

  • Google Analytics tracking code
  • Validity period of the client ID in days (default: 4)
  • Enable the analytics script for WordPress admins (users that have the capability manage_options )? (default: no)
WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • google analytics
  • cookie
  • gdpr
  • privacy
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 5.4

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 5.4.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to5.4
Minimum requirementsWordPress 4.4 · PHP 7.0
Update activity5 Jun 20206y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.