Skip to content

Version 3.13.0 - Avada Form Tracking Fix

Choose a tag to compare

@peterjaffray peterjaffray released this 29 Sep 21:05
· 194 commits to master since this release

🎯 Avada Form Tracking Fix

This release fixes Avada/Fusion form tracking and improves form identification.

✨ New Features

  • Form Title Tracking: Avada forms now include their WordPress post title in tracking events
  • Improved Form ID Detection: Extracts form IDs from wrapper attributes and data-config
  • Form Reset Detection: Detects successful submissions by monitoring form field resets

πŸ› Bug Fixes

  • Fixed Avada Tracking: Resolved issue where Avada forms weren't being tracked due to empty field value checks
  • Field Detection Logic: Added hasField() function to check field existence vs field values
  • Success State Detection: Improved detection for forms that reset without showing success messages

🧹 Code Cleanup

  • Removed embedded test forms system (cuft-test-*.js)
  • Removed quick tests admin functionality
  • Cleaned up test forms PHP classes
  • Simplified admin interface (removed 4,300+ lines of test code)

πŸ“Š Technical Improvements

  • Add data-cuft-had-value tracking for field reset detection
  • Pass form titles via wp_localize_script for JavaScript access
  • Enhanced debug logging for success state detection
  • Improved AJAX watcher to check field existence instead of values

πŸ”§ Breaking Changes

None - fully backward compatible

πŸ“ Upgrade Notes

  • Existing form tracking continues to work without changes
  • Avada forms will now properly track submissions
  • Form titles will appear in dataLayer events for better reporting

Full Changelog: v3.12.0...v3.13.0