Reporting & Analytics

ASharma58
Member

Connect Google Analytics and Hubspot

SOLVE

I want to view the user's activity(page views and clicks) before they submitted the demo form that leads to contact creation on Hubspot.

 

Few solutions I can think of:

  • Sending the Contact's Record ID to GA4 as user property when user submits the form.
  • Sending the GA4 Client ID to Hubspot when user submits the form.

 

Is there a better solution to achieve this? Also, are there tools/plugins available to achieve this without a code change. 

 

1 Accepted solution
Jigar_Thakker
Solution
Key Advisor | Diamond Partner
Key Advisor | Diamond Partner

Connect Google Analytics and Hubspot

SOLVE

@ASharma58 

 

You can track your website visitors and their activities in HubSpot if you have installed the HubSpot tracking code on your website correctly check this complete guide here: https://knowledge.hubspot.com/prospects/use-prospects 

 

Regarding google analytics code you can add the code to HubSpot check this : https://knowledge.hubspot.com/website-pages/integrate-google-analytics-with-hubspot-content 

 

Let me know if you have any follow-up questions. 

 

If my post was helpful in addressing your query, Support the community by indicating it as the solution.

 

Thanks!

View solution in original post

0 Upvotes
3 Replies 3
Jigar_Thakker
Solution
Key Advisor | Diamond Partner
Key Advisor | Diamond Partner

Connect Google Analytics and Hubspot

SOLVE

@ASharma58 

 

You can track your website visitors and their activities in HubSpot if you have installed the HubSpot tracking code on your website correctly check this complete guide here: https://knowledge.hubspot.com/prospects/use-prospects 

 

Regarding google analytics code you can add the code to HubSpot check this : https://knowledge.hubspot.com/website-pages/integrate-google-analytics-with-hubspot-content 

 

Let me know if you have any follow-up questions. 

 

If my post was helpful in addressing your query, Support the community by indicating it as the solution.

 

Thanks!

0 Upvotes
ASharma58
Member

Connect Google Analytics and Hubspot

SOLVE

Sorry, just realised that the existing GA intergration already captures the pages visited even before the form submission. 

 

So when the Hubspot JS is loaded on the website, it starts tracking all the visits. And when the user finally submits the form, it pushes all the visits data to the contact created. 

 

Thanks, Jigar. 

0 Upvotes
ASharma58
Member

Connect Google Analytics and Hubspot

SOLVE

Hi Jigar,

 

Thanks for quick response. 

 

We had already enabled GA tracking. But it is tracking pageviews only after the form submission. Not before the form submission.

 

How can we get the pages viewed by the user before submitting the form? 

0 Upvotes