=== Okidoki Analytics ===
Contributors: okidoki
Tags: analytics, statistics, privacy, gdpr, cookieless
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Cookieless analytics for people who are not analysts. Press Connect and every page is counted. No cookies, no personal data, no consent banner.

== Description ==

Okidoki shows how many people visit your site, where they come from, what they read and what they buy, in plain words.

* No cookies and nothing stored in the visitor's browser, so no consent banner is needed for it.
* No IP addresses and no visitor IDs. Nothing that can point to a person.
* One click to set up: press **Connect to Okidoki**, sign in or create a free account, and you are done. No code to paste.
* A script under 1.5 KB, loaded with defer, so your pages stay fast.
* On a WooCommerce store, every sale shows up next to where the buyer came from (Okidoki Plus). Connect does it, nothing to set up.

== External service ==

This plugin connects your site to Okidoki Analytics (https://okidoki.sh), run by Adrbl AB in Sweden.

* On every page of your site, it loads the script https://okidoki.sh/js/okidoki.js. The script sends the page address, the referrer, the screen width and how long the page was visible to https://okidoki.sh/api/event. No cookies, no IP addresses, no visitor IDs.
* When you press Connect, your browser goes to okidoki.sh to sign in, and the plugin calls okidoki.sh to find or add your site. It stores only the site key. The temporary key from the sign-in is turned off right away and never saved.
* On a WooCommerce store with Okidoki Plus, Connect also adds two WooCommerce webhooks that send each order to okidoki.sh: its number, status, total, currency, dates, the order attribution source (referrer and UTM tags) and a SHA-256 of the buyer's email, so repeat buyers can be told apart. Never names, addresses or products. Disconnecting or deleting the plugin removes the webhooks.

Terms: https://okidoki.sh/terms
Privacy policy: https://okidoki.sh/privacy

== Installation ==

1. Upload the plugin under Plugins → Add New Plugin → Upload Plugin, or install it from the plugin directory.
2. Activate it.
3. Press **Connect to Okidoki** and sign in.

Have a site key already? Open Settings → Okidoki Analytics and paste it under "Have a site key already?".

== Frequently Asked Questions ==

= Do I need a cookie banner for Okidoki? =

No. Okidoki sets no cookies and collects no personal data.

= Does it work with caching plugins? =

Yes. Clear the cache once after connecting, so every page gets the script.

= What happens when I deactivate or delete the plugin? =

The script is no longer added to your pages. Deleting the plugin also removes the site key from WordPress. Your statistics stay in your Okidoki account until you remove the site there.

== Changelog ==

= 1.1.0 =
* WooCommerce: Connect also counts sales, with where the buyer came from. Only what the report needs is sent.

= 1.0.0 =
* First version: one-click connect and the script on every page.
