If you’re using the HubSpot plugin for WordPress, it includes a tracking script that captures data from non-HubSpot forms, but this plugin is not compatible with Gravity Forms. We suggest using the official Gravity Forms HubSpot Add-On.
Why the HubSpot Tracking Script Doesn’t Work with Gravity Forms
The HubSpot tracking script captures 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 honeypot and reCAPTCHA. It does not handle form validation. As a result, the HubSpot tracking script is incompatible with Gravity Forms starting from version 2.9.
How to Capture Gravity Forms Submissions in HubSpot
To capture submissions from Gravity Forms and send them to HubSpot, we recommend using the Gravity Forms HubSpot Add-On. This add-on connects directly to HubSpot’s API. While it doesn’t rely on the tracking script for submission, if a Hubspot cookie is set on page render, the add-on will include its GUID value in the data sent via the API during feed processing.
Avoiding Tracking Script Conflicts
If you are using both the Gravity Forms HubSpot Add-On and the HubSpot WordPress plugin, you may encounter conflicts caused by multiple versions of the HubSpot tracking script being loaded on the same page. To prevent these issues, you can disable one of the scripts.
You can use the following filter to prevent the Gravity Forms HubSpot Add-On from adding its version of the tracking script.