=== Web-Tracking.eu ===
Contributors: tplund
Tags: analytics, statistics, tracking, page-views, visitors
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.0
License: MIT
License URI: https://opensource.org/licenses/MIT

Connects your WordPress site to a Web-Tracking.eu account by injecting the tracking script in the page head.

== Description ==

This plugin connects your WordPress site to a Web-Tracking.eu account
(https://web-tracking.eu). After saving your Site ID in the plugin settings,
the plugin injects the tracking script tag into the `<head>` of your
front-end pages.

The plugin itself does not collect or transmit any data. It only outputs a
`<script>` tag pointing to your configured Web-Tracking.eu endpoint.

= What this plugin does =

* Adds a settings page under Settings → Web-Tracking.eu where you can paste your Site ID
* Injects the tracking script tag on front-end pages when a Site ID is configured
* Optionally skips the script when the visitor is a logged-in administrator or editor
* Optionally accepts a comma-separated list of URL path prefixes to mark as excluded (passed as a `data-exclude` attribute on the script tag for the tracker to read)
* Optionally accepts a custom domain so the script can be loaded from your own subdomain (requires a CNAME you set up separately at your DNS provider)

= What this plugin does not do =

* It does not collect, store, or transmit any data on its own
* It does not modify your post content, templates, or theme files
* It does not write to the `wp_options` table beyond a single settings entry
* It does not load any external resources from the WordPress admin

= Requirements =

* A Web-Tracking.eu account at https://web-tracking.eu (free tier available)
* WordPress 5.0 or newer
* PHP 7.4 or newer

== Installation ==

1. Upload the plugin via WordPress admin → Plugins → Add New → Upload Plugin
2. Activate the plugin
3. Go to Settings → Web-Tracking.eu
4. Paste your Site ID from your Web-Tracking.eu account dashboard
5. Save

The tracking script will be injected on subsequent front-end page loads.

== Frequently Asked Questions ==

= Where do I find my Site ID? =

Sign in to your account at https://web-tracking.eu and open the dashboard
for the site you want to track. The Site ID is shown under Settings →
Tracking code.

= How do I exclude certain URLs from being tracked? =

Enter the URL path prefixes (comma-separated) in the "Exclude paths" field
on the settings page. The plugin will pass these to the tracking script via
a `data-exclude` attribute, and the tracker reads that attribute and skips
matching pages.

= How do I exclude logged-in admins and editors? =

Tick the "Exclude admins" checkbox on the settings page. When ticked, the
plugin will not output the tracking script for users with the
`administrator` or `editor` role.

= How do I use a custom subdomain for the tracking script? =

Enter your subdomain (e.g. `track.example.com`) in the "Custom domain" field.
You must also create a CNAME record at your DNS provider that points the
subdomain to the Web-Tracking.eu endpoint shown in your account settings.

= Does this plugin store anything in my database? =

The plugin stores a single options-table row containing your Site ID,
optional custom domain, the "exclude admins" checkbox value, and the
"exclude paths" string. No visitor data is stored by the plugin.

== Changelog ==

= 1.0.0 =
* Initial release.

== Privacy Policy ==

This plugin does not collect, store, or transmit any data on its own. It
only outputs a `<script>` tag that loads the Web-Tracking.eu tracking
script from the URL configured in your settings. Any data handling
performed by the loaded script is governed by the Web-Tracking.eu
privacy policy at https://web-tracking.eu/privacy.
