=== MainWP Fathom Extension ===
Plugin Name: MainWP Fathom Extension
Plugin URI: https://mainwp.com
Description: MainWP Fathom Extension is an extension for the MainWP plugin that enables you to monitor detailed statistics about your child sites traffic. It integrates seamlessly with your Fathom account.
Version: 5.1
Author: MainWP
Author URI: https://mainwp.com

== Installation ==
1. Please install plugin "MainWP Dashboard" and active it before install Fathom Extension plugin (get the MainWP Dashboard plugin from url:https://mainwp.com/)
2. Upload the `mainwp-fathom-extension` folder to the `/wp-content/plugins/` directory
3. Activate the Fathom Extension plugin through the 'Plugins' menu in WordPress

== Screenshots ==
1. Enable or Disable extension on the "Extensions" page in the dashboard

== Changelog ==

= 5.1 - 6-11-2026 =

* Fixed: Visitor Data graph selector so changing the chart type now reloads the selected graph correctly.
* Fixed: Fathom stats cache growth by enforcing a single cached stats row per connected MainWP site.
* Fixed: Fathom stats cache updates so refreshed data updates the existing site cache row instead of creating duplicate entries.
* Added: Database migration to remove duplicate Fathom stats cache rows while preserving the newest cached data for each site.
* Added: Explicit cache clearing when using the Fathom "Refresh Data" action.
* Added: "Refresh Data" button to the "Visitor Data" tab.
* Added: Automatic sites data cleanup when removing connected Fathom accounts.
* Updated: Improved Fathom stats refresh behavior to respect the configured data refresh frequency instead of refetching data on frequent page loads.
* Updated: Reduced Fathom Aggregation API usage by combining graph metric requests into a single aggregation request, helping reduce API calls and avoid rate limits.
* Updated: Improved Fathom asset cache-busting by using the plugin header version for CSS/JS enqueue versions, with a file modification time fallback.
* Updated: Improved extension initialization timing to ensure proper loading order with other plugins and improve startup compatibility.

= 5.0.3 - 5-15-2025 =

* Fixed: Gridster load in mainwp plugin.

= 5.0.2 - 5-15-2025 =

* Added: Localization support to make the add-on available in multiple languages.
* Fixed: Missing padding in the "Overview" page widget.
* Fixed: Overview widget layout issues caused by missing CSS classes.
* Fixed: Usability problem caused by unwanted escaping of the `<a>` tag in error notices.
* Fixed: Incorrect translation domains for proper localization.
* Fixed: Default widgets layout on the add-on "Overview" page.
* Updated: Removed redundant heading from the settings page for a cleaner interface.
* Updated: Knowledge base URL to provide access to the latest documentation.

= 5.0.1 - 3-14-2024 =

* Fixed: Submenu padding problem
* Updated: Revised the notification for missing analytics data to guide users in connecting their Fathom account and assigning properties to MainWP sites.

= 5.0 - 2-27-2024 =

* Updated: MainWP 5.0 compatibility

= 4.0.1 – 9-15-2023 = 

* Updated: Increased the limit for the /sites Fathom API endpoint

= 4.0 =

* Initial Release
