Can GA4 integrate with Salesforce or HubSpot?
Yes, but the integration is bidirectional and the architecture matters. GA4 → CRM sends behavioural signals from GA4 to your CRM (enriching lead records with page view history, intent signals, and UTM attribution). CRM → GA4 sends CRM lifecycle events (lead qualified, opportunity created, deal closed) back into GA4 for closed-loop attribution reporting.
Native "integrations" from both Salesforce and HubSpot primarily cover the first direction (GA4 → CRM, via UTM capture and form tracking). The more analytically valuable second direction (CRM → GA4) requires Measurement Protocol implementation. The most powerful pattern — true closed-loop attribution from first click to closed revenue — requires BigQuery as a joining layer.
The four integration patterns
Pattern 1 — UTM attribution capture in the CRM (basic, almost universal)
What it does: Captures the UTM parameters from the URL when a lead submits a form. Stores the first-touch or last-touch UTM data on the CRM lead/contact record.
HubSpot: Native — HubSpot automatically captures UTM parameters from form submissions and stores them as contact properties (Original Source, Original Source Drill-Down 1 and 2). No configuration needed for basic UTM capture.
Salesforce: Not native — requires a custom implementation: hidden form fields populated by JavaScript reading the URL parameters → submitted with the form → mapped to Salesforce lead fields.
What this enables:
- "Which campaign generated this lead?" visible in the CRM record
- Lead source reporting within the CRM (count of leads by UTM source/medium/campaign)
- First-touch attribution for pipeline and revenue analysis in the CRM
Limitation: This captures UTM data at the moment of form submission — it doesn't capture GA4's cross-session attribution model. A lead who first visited via organic search and converted via a paid retargeting click will be attributed to paid in this model, not to the full multi-touch journey GA4 tracks.
Pattern 2 — GA4 form events linked to CRM records (intermediate)
What it does: GA4 captures the generate_lead event when a form is submitted. At the same time, the CRM creates a lead/contact record. By passing a shared identifier (the GA4 client_id) from the browser to the CRM at form submission, you can link GA4 session data to CRM lead records.
Implementation:
Want to see whether purchase, revenue, or item-level tracking is drifting in your property?
Store the GA4 client_id as a CRM field (GA4 Client ID). Now you can query both GA4's BigQuery export and your CRM by this shared key.
What this enables:
- Match CRM leads to GA4 sessions (how many sessions before converting? Which pages did they visit?)
- Understand pre-conversion journey for closed deals vs lost deals
- Lead quality scoring based on GA4 engagement signals
Pattern 3 — Measurement Protocol for CRM lifecycle events (advanced)
What it does: Sends CRM lifecycle events (lead qualified, meeting booked, opportunity created, deal closed won/lost) back into GA4 as custom events, enabling GA4 to track the full B2B journey from first visit to closed revenue.
HubSpot → GA4 via Measurement Protocol:
Using HubSpot Workflows (Operations Hub) or a webhook:
What this enables:
- GA4 now has
deal_closed_wonas a key event — you can report on which acquisition channels produce closed revenue, not just leads - Google Ads Smart Bidding can optimise toward closed revenue signals (not just lead form submissions)
- Full-funnel reporting in GA4: first click → lead → MQL → SQL → closed
Pattern 4 — BigQuery as the unified attribution layer (most powerful)
What it does: Exports both GA4 data (via BigQuery export) and CRM data (via Salesforce/HubSpot BigQuery connector or API export) into a shared BigQuery dataset. Joins on the shared GA4 client_id stored in the CRM.
The unified table:
What this enables:
- "Which channel produced the most revenue, measured by actual CRM closed deals" — the gold standard of B2B attribution
FAQ: GA4 + Salesforce and HubSpot: CRM Integration Patterns That Work
What is the first thing to verify when ga4 + salesforce and hubspot: crm integration patterns that work affects revenue?
Should I compare GA4 only to the ecommerce platform total?
How do I keep this from breaking after the next release?
Related guides for GA4 + Salesforce and HubSpot: CRM Integration Patterns That Work
Shopify GA4 Setup: Web Pixel vs theme.liquid in 2026
The 2026 best practice for Shopify GA4 is Web Pixel via Customer Events API — Shopify's sandboxed pixel system that runs GA4 in isolation, supports the Customer Privacy API for consent, fires standard e-commerce events automatically, and works on all Shopify plans (including Basic)…
Item Array Integrity: What Stops Items Reporting in GA4 (2026)
Items fail to appear in GA4 e-commerce reports when the items array is missing, malformed, or inconsistent across the funnel. Eight common bugs: (1) missing item_id (the only required field — items without it are dropped), (2) item_id mismatched between view_item and purchase (same product reports as different items)…
Audit GA4 + Salesforce and HubSpot: CRM Integration Patterns That Work before revenue reporting drifts further
Run a free GA4 audit to catch purchase, refund, item-array, and attribution issues before they distort ecommerce decision-making.