=== Traffic Mind Analytics ===
Contributors: mausamxd, sharpmindtechnologies
Tags: analytics, traffic, stats, pageviews, counter
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A lightweight, cookieless WordPress analytics plugin and visitor counter. Track pageviews, traffic stats, referrers, devices & outbound link clicks.

== Description ==

**Traffic Mind Analytics** is a lightweight, privacy-first, cookieless **WordPress analytics plugin** and **visitor counter** developed by **Sharp Minds Technologies**. Designed for high speed and simplicity, Traffic Mind Analytics delivers deep website traffic insights directly inside your WordPress admin dashboard — without slowing down your site, placing tracking cookies, or sharing data with third parties.

### Key Features

* **🛡️ 100% Cookieless & Privacy-First**: No cookie consent banners needed! Visitor IP addresses are anonymized using SHA-256 cryptographic hashing with secret site salts, satisfying strict GDPR, CCPA, and PECR privacy regulations.
* **⚡ Sub-10KB Lightweight Performance**: The tracking script is tiny (under 10KB), loads asynchronously in your site footer, and uses `navigator.sendBeacon()` for zero impact on page load times.
* **📊 Visual Line vs. Bar Chart Switcher**: Toggle between clean line trends and bar charts instantly in your main analytics dashboard without reloading the page or making extra API calls.
* **📈 Live 48-Hour Admin Bar Sparkline**: Monitor traffic trends from anywhere in your WordPress dashboard with an inline 48-hour hourly trend sparkline widget right inside the top Admin Bar.
* **🔗 Outbound Exit Link Tracking**: Automatically track external links clicked by your visitors to measure affiliate link performance and exit traffic journeys.
* **📝 Posts & Pages List Columns**: View total pageview counts directly in your WordPress Posts and Pages admin tables, complete with intelligent batch preloading to prevent database lag.
* **⚙️ Role, IP & Path Exclusions**: Easily exclude administrators, editors, custom IP addresses, and specific URL paths from skewing your traffic statistics.
* **🌍 Opt-in Country Geolocation**: Privacy-compliant country lookup (disabled by default) to view top visitor countries without leaking user data.

== External services ==

This plugin optionally connects to an external geolocation API service (ip-api.com) to determine visitor countries if Country Geolocation is explicitly enabled in the plugin settings.

* **What the service is used for**: Optional visitor country lookup.
* **What data is sent and when**: The visitor IP address is sent over HTTP/HTTPS only when the site administrator explicitly enables the "Country Geolocation" toggle in Traffic Mind settings.
* **Service Provider**: ip-api.com
* **Terms of Service**: https://ip-api.com/docs/legal
* **Privacy Policy**: https://ip-api.com/docs/legal

== Installation ==

1. Upload the `traffic-mind` folder to the `/wp-content/plugins/` directory, or install directly via the WordPress Admin **Plugins > Add New** menu.
2. Activate **Traffic Mind Analytics** through the **Plugins** screen in WordPress.
3. Go to **Traffic Mind** in your WordPress admin menu to view your analytics dashboard.

== Frequently Asked Questions ==

= Does Traffic Mind Analytics require a cookie consent banner? =
No! Traffic Mind Analytics is completely cookieless. Visitor IP addresses are anonymized using SHA-256 cryptographic hashing with site-specific secret salts, making it fully compliant with GDPR and CCPA without cookie popups.

= Does Traffic Mind Analytics track outbound link clicks? =
Yes! Outbound link tracking is included. Traffic Mind Analytics automatically records when visitors click links pointing away from your website.

= Does Traffic Mind Analytics slow down page load times? =
Not at all. The tracking script is under 10KB, executes asynchronously in the page footer, and uses native browser beacon APIs (`navigator.sendBeacon()`) so site loading speed is never affected.

== Screenshots ==

1. Main Traffic Mind analytics dashboard with overall summary cards, line/bar chart switcher, and date range filters.
2. Detailed metrics breakdown showing top visited pages, traffic referrers, outbound link clicks, and devices.
3. Top WordPress admin bar showing live 48-hour hourly traffic sparkline widget.
4. Settings page for role exclusions, IP blacklists, path exclusions, and opt-in country geolocation.

== Changelog ==

= 1.1.4 =
* Updated vendor library to latest standalone Chart.js release for security and compliance.
* Replaced raw inline style tags with wp_enqueue_style and wp_add_inline_style.
* Removed remote CDN URL fallbacks for 100% strict WordPress Plugin Directory Rule #8 compliance.

= 1.1.3 =
* Added line vs bar chart visual toggle in main analytics dashboard.
* Added 48-hour hourly traffic sparkline widget in WordPress Admin Bar.
* Added free outbound link tracking engine.
* Added opt-in country geolocation toggle.
* Added pageview columns with batch preloading in Posts and Pages lists.
* Updated attribution to Sharp Minds Technologies.
