APIs & Integrations

DavidBarnes
Member

Tracking Hubspot Form Submissions in Google Analytics

SOLVE

Is it possible to track Hubspot form submissions in GA?

Looking into how this can be accomplished. From what I can tell there's no way to add a class or id to each form.

0 Upvotes
1 Accepted solution
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Tracking Hubspot Form Submissions in Google Analytics

SOLVE

Welcome, @DavidBarnes.

Yep, it's possible to modify a HubSpot form's embed code and add a GA callback within the onFormSubmit event.

Here are some related articles:

You'll have to embed the form within a custom HTML module on your template or page rather than the default Form module to modify the embed code.

Isaac Takushi

Associate Certification Manager

View solution in original post

4 Replies 4
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Tracking Hubspot Form Submissions in Google Analytics

SOLVE

Welcome, @DavidBarnes.

Yep, it's possible to modify a HubSpot form's embed code and add a GA callback within the onFormSubmit event.

Here are some related articles:

You'll have to embed the form within a custom HTML module on your template or page rather than the default Form module to modify the embed code.

Isaac Takushi

Associate Certification Manager
claretta20
Participant

Tracking Hubspot Form Submissions in Google Analytics

SOLVE

Hi this link no longer works- do you have another? 

0 Upvotes
Jordanwywm
Member

Tracking Hubspot Form Submissions in Google Analytics

SOLVE

The first link in the instruction is broken and goes to a 404 page

0 Upvotes
Jordanwywm
Member

Tracking Hubspot Form Submissions in Google Analytics

SOLVE