Skip to content

Version 3.28.1

Choose a tag to compare

@github-actions github-actions released this 24 Sep 05:09
· 4 commits to master since this release

Fixed

  • generate_lead fired twice for any lead with email, phone and a click ID. cuft-dataLayer-utils.js pushed the broad generate_lead (email present) and then, inside the qualify_lead block, dual-fired a second generate_lead with the strict payload and cuft_deprecated: true / cuft_migrate_to: "qualify_lead". That dual-fire was meant to last one version after the April 2026 event rename (3.27.0) and was never removed. It is gone; generate_lead now pushes and records at most once per submission. qualify_lead is unchanged, and the cuft_generate_lead_enabled gating added in 3.28.0 still applies. A GTM trigger on the event name generate_lead alone needs no change beyond seeing one event per lead instead of two; a trigger conditioned on cuft_deprecated equals true will stop firing and should be migrated to qualify_lead, which was always the intended replacement.
  • Gravity Forms pushed generate_lead a second, independent way. CUFT_Gravity_Forms::track_submission() (PHP, hooked to gform_after_submission) also generated an inline generate_lead dataLayer push, on top of the client-side push every framework already fires via cuft-dataLayer-utils.js. For Elementor Pro, CF7 and Ninja Forms the equivalent server-side inline script never reaches the browser (their forms submit by AJAX, so the hook fires on a request whose response carries no enqueued script tag), but Gravity Forms can complete the same request as a full page render, in which case the inline script did print and run. Removed the server-side generate_lead_event() push; Gravity's server-side form_submit push is unaffected.

Installation

Automatic Update

If you already have the plugin installed, it should automatically detect this update. Go to Plugins in your WordPress admin and click Update Now.

Manual Installation

  1. Download the choice-uft-v3.28.1.zip file from the assets below
  2. In WordPress admin, go to Plugins → Add New → Upload Plugin
  3. Choose the downloaded zip file and click Install Now
  4. Activate the plugin after installation

Requirements

  • WordPress 5.0 or higher
  • PHP 7.4 or higher

Support

For issues or questions, please visit: https://github.com/ChoiceOMG/choice-uft/issues