Google Analytics with Astro
Most sites have GA4 installed. Fewer have numbers anyone trusts. I clean up the container, define the events that matter and make sure consent and performance are handled deliberately.
Google Analytics integrations like this usually take 2–4 days
How the handoff works.
- 01
Consent
Permission state is known
- 02
Tag
GA4 loads correctly
- 03
Pageview
Context and campaign arrive
- 04
Conversion
The right events fire
Key handoff
- 05
Verify
Conversions checked against CRM records
Why this is the key handoff
A tag that fires is not a number you can use. A pageview in GA4 only proves the tag fired. I check that consent, attribution and conversions survive the whole journey and reconcile with what happened downstream.
Three things that commonly go wrong.
- 01
A checkout or booking on another domain can break attribution
Without cross-domain measurement and the referral exclusions to go with it, a visitor who leaves for a payment processor or a scheduler comes back looking like new referral traffic. The conversion survives and the campaign that produced it is obscured, which is a configuration problem rather than something inevitable.
- 02
An inline form success is not a destination page
For a form that swaps in a success state without navigating, so a conversion configured as a destination never fires. It is tracked as an event on the successful submission instead, and the difference is invisible until the report is empty.
- 03
The container is where third-party scripts accumulate
GA4 itself is small. Tags added through a container bypass the usual development workflow, so old campaign pixels, a second analytics tool and heavy vendor scripts outlive anybody's memory of why they were added. Tag Manager changes need the same ownership and review as other site changes.
What is included.
-
GA4 directly, through Tag Manager, or through the agreed tag architecture
-
A short list of conversion and engagement events
-
Form submissions, outbound clicks and campaign attribution
-
Consent Mode behavior connected to the banner
-
Redirect and UTM handling across the site
Wire up something else?
-
PostHog with Astro
Analytics · typically 2–4 days
Learn more → -
Amplitude with Astro
Analytics · typically 2–4 days
Learn more → -
Salesforce with Astro
CRM · typically 3–5 days
Learn more → -
HubSpot with Astro
CRM · typically 2–4 days
Learn more → -
Stripe with Astro
Payments · typically 1–2 weeks
Learn more → -
Segment with Astro
Data · typically 3–6 days
Learn more →
Reach out and see if we are a good fit.
Currently booking two to four weeks out.