Summary
The third-party HubSpot plugin for WordPress includes a tracking script provided by HubSpot intended to capture data from non-HubSpot forms. This script is incompatible with Gravity Forms 2.9 and later and can result in the loading of duplicate scripts that then stop the data capture for HubSpot.
To capture submissions from Gravity Forms and send them to HubSpot, we recommend using only the official Gravity Forms HubSpot Add-On and disabling the third-party plugin. Our add-on connects directly to HubSpot’s API and doesn’t rely on the HubSpot-provided tracking script for submission. If a HubSpot cookie is set on page render, the Gravity Forms HubSpot Add-On will include its GUID value in the data sent via the API during feed processing.
Symptom
Successful Gravity Forms submissions are not sent to HubSpot when using Gravity Forms and the third-party “HubSpot plugin for WordPress.”
Incompatibility with Gravity Forms Submissions
A HubSpot tracking script loaded by the third-party plugin is designed to capture form submissions from forms that do not use JavaScript to handle submit events. Gravity Forms uses JavaScript for consistent form submission handling across all methods, preventing duplicate clicks and enabling features like the honeypot and reCAPTCHA. The HubSpot script will only capture submissions from non-HubSpot forms when there is no “JavaScript bound to the form submit event or submit button click event.” (source HubSpot) This difference in approach makes the HubSpot tracking script incompatible with Gravity Forms for capturing completed form submissions.
Tracking Script Conflicts When Both Plugins Are Active
Even if you are using the official Gravity Forms HubSpot Add-On to manage submissions from your Gravity form, having the “HubSpot plugin for WordPress” active can still create issues on any version of Gravity Forms when both plugins attempt to load the HubSpot tracking script on the same page.
Gravity Forms’ HubSpot Add-On loads the script to capture partial entries and failed attempts. When the third-party plugin also loads the same script, it creates a conflict that can prevent submissions from being passed properly. If required, you can use this filter to prevent the Gravity Forms HubSpot Add-On from adding its version of the tracking script.
Related Articles
- Troubleshooting The HubSpot Tracking Cookie
- You can use the gform_hubspot_output_tracking_script filter to disable the Gravity Forms HubSpot Add-On tracking script output if necessary. Completed submissions will still be sent to HubSpot via the HubSpot feed.