=== Vision Track ===
Contributors: visionweb
Tags: analytics, tracking, contact forms, whatsapp
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.4.3
License: GPLv2 or later

Monitorizare accesări (Telefon & WhatsApp) și formulare de contact trimise.

== Description ==
Înregistrează accesările linkurilor de telefon și WhatsApp, precum și trimiterile formularelor de contact acceptate. Include un panou de administrare cu filtre pe perioade, comparații între perioade și export CSV.

== Changelog ==
= 1.4.1 =
* Corrected Contact Form 7 status handling: server-side outcomes are authoritative.
* Removed duplicate browser-side CF7 success/spam/failure recording that could mislabel delivered messages.
* Kept browser-side CF7 validation error tracking.

= 1.4.0 =
* Removed generic submit fallbacks that could count an attempted submission as successful before a form builder reports its final status.
* Caldera status handling now uses the form from the event payload when available, and recognizes additional failure/success status variants.
* Unknown form builders are no longer counted as successful from the native submit event alone; a builder-specific outcome adapter is needed to confirm success reliably.
* Existing tracked events, phone clicks, WhatsApp clicks, CSV export, and period comparisons are preserved.

= 1.3.9 =
* Added a unique submission ID shared by browser and server tracking so multiple signals for the same form attempt update one event.
* Standardized deduplication for Contact Form 7, Caldera Forms, Elementor Forms, WPForms, and generic form events where supported.
* Spam takes priority over error, and error takes priority over provisional success, preventing conflicting statuses from inflating successful conversion totals.
* Existing phone and WhatsApp click tracking is unchanged; existing event history is preserved.

= 1.3.7 =
* Added server-side success tracking for Caldera Forms to support submissions that reload or redirect the page.
* Caldera Forms validation/processing errors and spam statuses are tracked separately in the browser where those events are exposed.
* Kept plugin-specific adapters and generic form fallback so tracking can support multiple form builders without relying on a single plugin.

= 1.3.6 =
* Improved Contact Form 7 tracking using server-side success, mail-failure, and spam hooks.
* Captures validation errors from the Contact Form 7 browser event.

= 1.3.5 =
* Etichetele Reușit, Eroare și Spam sunt afișate doar pentru formularele de contact; telefonul și WhatsApp rămân interacțiuni de tip click, fără status.
* În exportul CSV, coloana Status rămâne goală pentru telefon și WhatsApp.

= 1.3.4 =
* Contact Form 7: afișează status Reușit, Eroare sau Spam pentru fiecare trimitere.
* Numără în indicatori și comparații doar formularele trimise cu succes; erorile rămân vizibile în jurnal și exportul CSV.
* Migrare automată a bazei de date fără dezactivarea pluginului.

= 1.3.2 =
* Contact Form 7: înregistrează orice încercare de trimitere a formularului, inclusiv când trimiterea nu se finalizează cu succes.

= 1.3.1 =
* Iconiță WhatsApp monocromă, în stilul celorlalte pictograme.
* Aliniere corectată pentru iconița butonului Exportă CSV.

= 1.3.0 =
* Export CSV pentru evenimentele din perioada selectată.
* Comparație cu perioada precedentă.

= 1.3.3 =
* Added server-side Contact Form 7 submission tracking, including when the page reloads.
* Avoided duplicate Contact Form 7 counts from both browser and server tracking.

= 1.3.8 =
* Caldera Forms now records a single final outcome (success, error, or spam) from its submission event.
* Prevents the generic success event and server-side completion hook from double-counting Caldera submissions.

= 1.4.3 =
* Fixed Contact Form 7 validation-error tracking by resolving events dispatched on the .wpcf7 wrapper to the nested form.
