=== PayCall Analytics ===
Contributors: PayCall
Donate link: https://www.paycall.co.il/
Tags: google analytics, ga4, analytics, paycall, attribution
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 5.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

PayCall Google Analytics 4 integration for cross-channel lead attribution.

== Description ==

PayCall Google Analytics 4 (GA4) integration. Relays GA4 session data to PayCall so calls and leads can be attributed back to the originating campaign/source.

**Requires Google Analytics 4 to be installed on the site** (Universal Analytics, sunset by Google in July 2023, is no longer supported by this plugin).

For contact us: [PayCall](https://www.paycall.co.il/en/%d7%a6%d7%95%d7%a8-%d7%a7%d7%a9%d7%a8/)

Paycall is a leading company in the online payments and management systems fields for measuring advertising, leads and calls. The advanced systems that we have developed are based on much professional experience and know-how, and an understanding of the market and changes taking place in it, which enable us to provide solutions for a broad range of customers commencing from websites, television channels, radio stations, and the press through small and large business proprietors. At Paycall, you will receive systems that are adapted to your needs, advanced and stable systems and personal, quality and reliable service.


 
== Installation ==
 
1. Upload `paycall-analytics.php` to the `/wp-content/plugins/paycall-analytics` directory
1. Activate the plugin through the 'Plugins' menu in WordPress
 
== Upgrade Notice ==

= 5.0 =
GA4 support. After updating, open the plugin settings and paste your GA4 Measurement ID (G-XXXXXXXXXX). The plugin no longer relays Universal Analytics data — Google sunset UA in July 2023.

== Changelog ==

= 5.0 =
* Added Google Analytics 4 (GA4) support — new Measurement ID field on the settings page.
* Replaced the legacy Universal Analytics endpoint with the GA4 endpoint (`send_analytics_GA4.js`).
* Sanitize callback validates the GA4 ID format (`G-XXXXXXXXXX`).
* Renamed input label "Checkcall Token" to "Paycall Token" for clarity.
* Updated the admin warning notice to mention GA4 specifically.

= 4.4 =
* Tested with WordPress 7.0.
* Bumped minimum WordPress to 6.0 and minimum PHP to 7.4.
* Escaped option output in admin form and frontend script tag.
* Added ABSPATH guard and sanitize_callback for the saved token option.
* Replaced inline-styled heading with a proper WordPress admin notice.
* Added a help link to Google Analytics for users without a tracking code.
* i18n: wrapped user-facing strings with the `paycall` text domain.

= 1.0 =
* Initial release.

