=== Metrimato ===
Contributors: phenomenaldevelopment
Tags: analytics, statistics, privacy, gdpr, cookieless
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.2
Stable tag: 1.1.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Cookieless, GDPR-compliant web analytics. Adds the Metrimato tracking snippet to your site with no code changes.

== Description ==

Metrimato is a replacement for Google Analytics that sets no cookies and stores
nothing identifiable about a visitor. The IP address and the browser identifier
are never written anywhere: the visitor hash is computed with a salt that
changes daily, so the same visitor cannot be recognised the next day or on
another site.

Because there are no cookies, tracking needs no consent banner.

The plugin does three things:

* Adds the tracking snippet to every public page of the site.
* Tells the status code of a 404 page, so missing addresses collect into a list
  of their own on the dashboard.
* Sends the site's own search term also when the search uses pretty URLs
  (`/search/word/`) and the term is not a query parameter.

The plugin collects and sends nothing on its own. All measurement happens in the
tracking script, which is about 2.5 kilobytes compressed and loads deferred.

Using the service requires an account at [metrimato.com](https://metrimato.com).

= Privacy =

The tracking script sends an event to Metrimato's API. The data sent is: the
site key, the event name, the page URL, the referring page, the browser width,
the reading time and the scroll depth. The visitor hash is computed on the
server and cannot be recomputed afterwards.

* Privacy policy: https://metrimato.com/privacy
* Terms of service: https://metrimato.com/terms
* Data processing agreement: https://metrimato.com/dpa

== Installation ==

1. Install and activate the plugin.
2. Open **Settings → Metrimato**.
3. Paste the site key (it starts with `mm_`). You will find the key in Metrimato
   on the site's **Install** page.
4. Save. Visit the site and refresh the Metrimato dashboard.

== Frequently Asked Questions ==

= Does the site need a cookie banner? =

No. Metrimato sets no cookies and uses no browser storage.

= Why doesn't my own visit show up in the stats? =

Administrators and editors are excluded by default. You can change the selection
in the settings. Note that a page cache may serve a signed-in user a
pre-rendered page, in which case the exclusion does not apply.

= Why doesn't my local development environment collect stats? =

Tracking skips localhost and addresses ending in `.local`.

= Can I send custom events? =

Yes, through the tracking script:

`metrimato("form_submitted", { plan: "starter" });`

== Changelog ==

= 1.1.2 =
* Tested up to WordPress 7.1.

= 1.1.1 =
* The plugin URI and the author URI are separate, as WordPress.org requires.

= 1.1.0 =
* The service address is fixed to https://metrimato.com and is no longer a
  setting. A wrong address meant tracking that broke silently.
* The settings page links to the privacy policy and the terms of service.

= 1.0.0 =
* First release: tracking snippet, 404 measurement, the site's own search,
  role-based exclusion and support for a custom server address.
