Tracking Hubspot forms in Google Analytics 4 for external web pages

TRACKING FORM NAMES - EASIER METHOD

We can’t get the name of the form. But if we listen for “onFormSubmit” instead of the ‘onFormSubmitted’ we can get all the fields user has filled. It seems to be a superior way. We can then create a hidden field and add the form name as the default value and track the form name without a lookup table in Google tag Manager.

Tutorial here (not yet GA4 version but 98% the same)