Quick tipHow toMarketing HubContent Hub

Connect Google Analytics to HubSpot pages

Measurement ID or header HTML.

Subscription
All tiers; per-page needs Professional+
Permissions
Website settings
Time
2 min · Beginner
Last verified

Short answer

HubSpot's KB: add a Measurement ID in settings, or paste the code in site header HTML. Single-page tracking needs Professional or Enterprise. With an opt-in consent banner, GA only runs for visitors who opt in.

1. In HubSpot

The relevant screen in my demo portal.

Pages settings Integrations tab with Google Analytics 4 and Google Tag Manager
Integrations (1) and Google Tag Manager (2).

2. Worth knowing

Expect GA and HubSpot numbers to differ.

3. Related

Why numbers differ and Tag Manager.

Sources

New field notes by email

One email when a new article publishes.

Still stuck?

If this did not fix it, the problem is probably specific to your setup. Book a call and we will look at it together.

Book a call with Sam