Tracking Hubspot forms in Google Analytics 4 for external web pages

There’s 3 parts to this. Setting up that script as Custom HTML is part 1. Part 2 is setting up a trigger in GTM to listen for that event. And then step 3 is to create a Tag for your GA4 event to listen for that event trigger.

How are you tracking your form submissions today in Universal Analytics? Your forms could be getting tracked this same way through UA, but Events are just setup differently in GA4. So in UA you would have a category, action, and label to your events and in GA4 they are more flexible to be configured to your own parameters but those parameters have to be setup by you as many parts of this do not automatically populate. If this already exists, you don’t need to rebuild everything different for GA4, just replace the parts that are no longer relevant. If you are not using this method today for event tracking, and are using something different we may be able to tie into that to prevent a disconnect from your old data to your new.