Skip to content

Google Analytics

First-party v0.1.1

Google Analytics: adds the Google tag for your GA4 measurement ID to every public page, with a way to leave your own visits out.

About

Adds the Google tag (GA4) for your measurement ID to every public page, with no theme edits. Enter an ID such as G-ABC123XYZ9 (a GT- tag ID also works) in the plugin's Settings tab and save. Leave it empty to turn the tag off.

Grant the plugin settings and site scripts under Plugins, then Permissions. Without the site scripts grant the tag is never loaded. To leave your own visits out, open any public page of your site with ga-exclude added after a hash sign, once in each browser you use. That browser then stops sending visits, and the plugin page shows how to count it again.

Limits: no consent mode or cookie banner, no custom events, ecommerce or user ID, and only G- and GT- IDs. The plugin stores nothing on the server. An enforced Content Security Policy blocks the tag until you allow it.

Features

  • Measurement ID set in the plugin settings, no theme edits
  • Accepts G- and GT- IDs, checked before anything loads
  • Leave your own visits out, per browser
  • Plugin page shows whether the tag is on
  • Coexists with the Google Tag Manager plugin
  • Nothing stored on the server

Install: Admin > Plugins > Browse registry