=== Wysistat ===
Contributors: Wysistat
Tags: analytics, audience measurement, wysistat
Requires at least: 4.0
Tested up to: 6.9
Stable tag: 1.4
Requires PHP: 7.2.5
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Wysistat is the #1 Google Analytics alternative that gives you full control over your data and protects user privacy.

== Description ==
Audience measurement solution for websites, mobile applications, and AMP pages. The WebAnalytics solution is exempt from consent requirements by the CNIL and certified by the ACPM for publishing your traffic.
Wysistat is the #1 Google Analytics alternative that gives you full control over your data and protects user privacy and offers a powerful range of features, security and protects the privacy of your users. This enables you to learn how to improve your website, make the right decisions for your business and stand out in the crowd in a safe and trustworthy way.
It’s also easier for you to get insights from Wysistat with it’s time-saving interface design and out-of-the-box features, which require less manual configuration than Google Analytics.

== Installation ==
= Minimum Requirements =
* PHP 7.2 or greater
* MySQL 5.5 or greater is recommended
* 128MB memory or greater is recommended

= Automatic installation =
* Log in to your WordPress Admin Dashboard
* Navigate to the "Plugins" menu
* Click "Add New"
* Search for "Wysistat"
* Click "Install Now" and then "Activate"

= Manual installation =
* Downloading the plugin 
* Upload it to your web server using an FTP application. [Learn more](https://wordpress.org/support/article/managing-plugins/#manual-plugin-installation)
= Once installed = 
* Log in to your WordPress Admin Dashboard
* Navigate to the "Plugins" menu
* Click on "Activate"
* That's it! You can further customize the tracking in the settings page.


== Configuration ==
1. Go to the 'Wysistat' settings page in the WordPress admin "Réglages -> Wysistat".
2. Fill in the following details:
   - Account Name: [Your Wysistat account name]
   - Token: [Your Wysistat API token]
   - Period: [Day/Week/Month]
3. Events (optional):
   - Page Read Tracking:
     Enable automatic tracking when a user scrolls a page up to a defined percentage (default: 80%).
   - External Link Click Tracking:
     Tracks clicks on links pointing to external domains.
   - File Download Tracking:
     Tracks clicks on documents (pdf, doc, xls, ppt, zip, etc.).
   Note:
   If a file is hosted on an external domain, it will be tracked as an external link (priority rule).

== Features ==
- Automatically adds the Wysistat tracking tag with the configured account name on each pages.
- Displays a widget on the dashboard with statistics for the last 30 days.
- Adds a new column in pages/articles showing the number of views during the defined period.
- Optional automatic event tracking (page reading, external links, file downloads)

== Changelog ==
= 1.4 =
Added automatic event tracking (page read, external links, file downloads)
= 1.3 =
Update API call
= 1.2 =
Update test presence of manually placed marker
Not add Wysistat column on all content type
= 1.1 =
Update alert message on admin page
= 1.0 =
* Initial release.

== Frequently Asked Questions ==
= How do I obtain a Wysistat account ? =
Visit the Wysistat website to create an account.
https://www.wysistat.net/tarifs/?wysi_source=module_wordpress
= How do I obtain an API token ? =
On your Dashboard, click on "Profil -> Accounts" and create a new token for wordpress

Visit the Wysistat wiki to know how used the pluggin.
https://wiki.wysistat.com/fr/plan-marquage/plugin-Wordpress

== Screenshots ==
1. ![Wysistat Settings Page](screenshots/settings_page.png)
2. ![Dashboard Widget](screenshots/widget.png)

== Support ==
For support and inquiries, please contact Wysistat at support@wysistat.com.

== Developers ==
Wysistat
- Website: https://www.wysistat.net

== Privacy Policy ==
No personal data is collected by this plugin. All analytics data is managed by the Wysistat platform.

== License ==
Wysistat Pluggin is licensed under the GPLv2 or later. See https://www.gnu.org/licenses/gpl-2.0.html for more details.

== Certification and Compliance ==
Wysistat is certified by ACPM (Alliance pour les Chiffres de la Presse et des Médias) for accurate audience measurement. It is also exempted from consent requirements by CNIL (Commission nationale de l'informatique et des libertés).

== Privacy and Compliance ==
Wysistat complies with privacy regulations and respects user consent. The plugin adheres to the highest standards of data protection. No personal data is collected by this plugin. All analytics data is managed by the Wysistat platform.

== Legal Notice ==
Wysistat is a registered trademark of Idfr. ACPM certification and CNIL exemption details can be provided upon request.

== THIRD-PARTY CONTENT ==
1. ChartJS Library
Description: This library is used to make graphs on the Dashboard widget
Name: chart.js
version: 4.4.2 (latest stable)
Link: https://www.chartjs.org/
License: The MIT License (MIT)

2. External Data API : Wysistat Analytics Service
Description: We use our API to obtain your site data (visits, views, etc.).
Link: https://api.wysistat.com/
Documentation: https://api.wysistat.com/docs
Terms and Privacy Policy: https://www.wysistat.net/conditions-generales-dutilisation/
By using this plugin, you agree to the data transmission and processing as outlined in the Terms and Privacy Policy of the Wysistat Analytics Service.