=== AlpStats.ch — Cookieless Analytics ===
Contributors: pixelizedch
Tags: analytics, cookieless, privacy, statistics, gdpr
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Cookieless, privacy-first web analytics for your WordPress site with AlpStats.ch. Paste your site key — no cookie banner needed. See your stats inside WordPress.

== Description ==

AlpStats.ch is a cookieless, privacy-first web analytics service hosted in Switzerland. This plugin adds the AlpStats.ch tracking snippet to your WordPress site automatically: you only enter your **site key**, no need to paste any `<script>` tag by hand (which also avoids being blocked by security plugins like Wordfence). It also shows your statistics right inside the WordPress admin.

* No cookies, no consent banner to manage.
* Lightweight script, loaded asynchronously — it does not slow down your pages.
* GDPR and Swiss nFADP friendly; data hosted in Switzerland.
* Option to exclude logged-in administrators, so your own visits don't skew the stats.
* **Statistics inside WordPress**: a dedicated "AlpStats.ch" menu with KPIs, a trend chart, and top lists (choose a view: Classic, Marketing, Content, Audience, Technical).
* **Dashboard widget** with a compact 7-day summary.
* Chart color configurable to match your site. Interface in English or Italian (follows your WordPress language).

You need an account and a site key on [AlpStats.ch](https://alpstats.ch). The plugin only injects the snippet; all statistics live in your AlpStats.ch dashboard.

== Installation ==

1. Install and activate the plugin.
2. Go to **AlpStats.ch → Settings** (menu in the WordPress admin sidebar).
3. Paste your **site key** (from your AlpStats.ch dashboard: site settings).
4. Tick **Enable tracking** and save.

That's it — the snippet is now added to every front-end page, and your statistics appear under **AlpStats.ch → Statistics**.

== Frequently Asked Questions ==

= Where do I find my site key? =
In your AlpStats.ch dashboard, open your site's settings: the tracking snippet contains a `data-site="..."` value — that value is your site key.

= Does this store any personal data on my site? =
No. The plugin only outputs the AlpStats.ch snippet with your site key. Analytics are cookieless and processed by AlpStats.ch.

= Will it track me while I'm logged in? =
You can enable "Exclude administrators" to keep logged-in administrators out of the statistics.

== Changelog ==

= 1.2.0 =
* Shows an admin notice when AlpStats.ch's legal documents have changed and re-acceptance is needed (with a link to your dashboard).

= 1.1.0 =
* New "AlpStats.ch" admin menu with a Statistics page: KPIs with period comparison, a switchable Visitors/Pageviews chart, and top lists by view (Classic, Marketing, Content, Audience, Technical).
* New Dashboard widget with a compact 7-day summary.
* Settings moved under the AlpStats.ch menu; added a configurable chart color.
* Interface available in English and Italian (follows the WordPress language).
* Reads data through a single aggregated API call, cached for a few minutes.

= 1.0.3 =
* Active installs are now counted accurately, using an anonymous random install ID (no URL, domain or IP) sent with update checks.

= 1.0.2 =
* Tested up to WordPress 7.0.

= 1.0.1 =
* The site key field now also accepts the full tracking snippet: the data-site value is extracted automatically.

= 1.0.0 =
* First release: automatic snippet injection with settings (site key, enable/disable, exclude administrators) and self-hosted automatic updates.
