# Tracking Hubspot forms in Google Analytics 4 for external web pages

**URL:** <https://community.hubspot.com/t/tracking-hubspot-forms-in-google-analytics-4-for-external-web-pages/32959>\
**Category:** Lead Capture Tools\
**Tags:** forms\
**Created:** [March 10, 2021, 2:16pm UTC](https://community.hubspot.com/t/tracking-hubspot-forms-in-google-analytics-4-for-external-web-pages/32959 "2021-03-10T14:16:51Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![codeandtonichq](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/codeandtonichq/32/6406_2.png) [@codeandtonichq](https://community.hubspot.com/u/codeandtonichq)\
**Post date:** [February 19, 2022, 12:40pm UTC](https://community.hubspot.com/t/tracking-hubspot-forms-in-google-analytics-4-for-external-web-pages/32959/16 "2022-02-19T12:40:48Z")

</div>

**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](https://youtu.be/8dbryeqcIHI?t=110) and track the form name without a lookup table in Google tag Manager.

[Tutorial here (not yet GA4 version but 98% the same)](https://codeandtonic.com/blog/how-to-track-hubspot-form-submits-in-google-analytics-with-google-tag-manager-2022)

---

_[View the full topic](https://community.hubspot.com/t/tracking-hubspot-forms-in-google-analytics-4-for-external-web-pages/32959)._
