Repository navigation
Setup
- Install and activate Open Web Analytics from Plugins > Add New.
- Go to OWA > Settings. A new install shows only the OWA Server Endpoint and Check.
- Enter your OWA server's URL (its
OWA_PUBLIC_URL) and click Check. Check finds OWA at that URL and detects the version it runs, and that version's settings appear. The URL becomes the one OWA answers at, after any redirect, with a trailing/. Withouthttps://orhttp://, https is tried first, then http. If OWA is not found there, the page says so under the field. - Enter the credentials:
-
1.x: the API Key (OWA: Settings > Users > Edit) and the Secret Auth Key (
OWA_AUTH_KEYin the server'sowa-config.php). - 2.x: an Application Password (OWA: My Preferences > Application Passwords). A read-only password is enough.
-
1.x: the API Key (OWA: Settings > Users > Edit) and the Secret Auth Key (
- Save Changes appears once the credentials are entered. Save. The Observation Profile list appears once OWA accepts the credentials. If OWA refuses them, the page shows OWA's error instead.
- Select the Observation Profile to track and save again. The plugin stores its site ID. In 1.x the field is labeled Website ID.
The tag is added once Enable OWA is on and the endpoint and Observation Profile are saved. Notices at the top of the settings page list what is still missing.


With 2.x, Configure this Observation Profile's tracking tag in OWA opens the Observation Profile's tracker options on the OWA server.
The plugin asks the OWA server for one of OWA 2.x's REST routes, without credentials. An answer only OWA 2.x gives means 2.x. Any other answer means 1.x. When the server does not answer at all (a network error, a timeout or a server error), the version found at that URL before is kept, and the page says the server did not answer.
The plugin checks:
- when you click Check or Check again,
- when a changed endpoint is saved,
- once a day, when an administrator opens an admin page,
- on the first admin page load after the plugin is updated.
When the version changes, the site's tag changes with it, and cached pages are purged (see Page Caches).
The next check finds 2.x. Tracking continues with the 2.x tag and the same site ID. If no application password is saved, the dashboard, the Plugins screen and OWA > Settings ask for one. The notice goes away when you save a password or dismiss it. The 1.x keys stay saved.
-
WordPress 5.2+, PHP 8.2+.
-
OWA 1.14 or later.
-
The theme calls
wp_head(). -
2.x over http: application passwords are sent only over https. To use an http OWA server, turn off Application Passwords Need HTTPS on the server and add this to a must-use plugin or the theme:
add_filter( 'owa_wp_sdk_config', fn( $config ) => [ 'allow_insecure_app_password' => true ] + $config );