=== AddonLogic Outbound Link Tracker ===
Contributors: snehalpancholi
Tags: outbound links, link tracking, analytics, external links, click tracking
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Track every click on external links across your site and view an admin report of the most-clicked outbound URLs.

== Description ==

AddonLogic Outbound Link Tracker intercepts clicks on any link pointing outside your domain and logs them silently to a custom database table. The admin report shows you exactly which external URLs your visitors are clicking, how often, and when — so you can audit affiliate links, sponsored content, and partner referrals without any third-party analytics.

**Features:**

* Detects external link clicks via a lightweight vanilla JS event listener
* Uses `navigator.sendBeacon` for reliable tracking on navigation
* Logs URL, page/post ID, timestamp, and hashed IP per click
* Admin report with per-period filtering (7d / 30d / 90d / all time)
* One-click CSV export of the full outbound URL list
* Optional admin exclusion — don't count your own browsing
* Configurable data retention with automatic daily cleanup

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`
2. Activate through **Plugins > Installed Plugins**
3. The tracking table is created on activation
4. Visit **Link Tracker** in the left admin menu

== Changelog ==

= 1.0.0 =
* Initial release
