Project 43 of 84
GTM Server-Side
Builds and publishes @gtmss/ga4-relay, a self-hosted, first-party GA4 Measurement Protocol v2 relay for Next.js/Vercel. It is the resilience and first-party-hosting layer that stape.io sells, not a clone of Google Tag Manager Server-Side.
- Status
- Shipped
- Last activity
- 2026
- Stack
- TypeScript
- Next.js )
- GA4 Measurement Protocol
- Service Worker
- tsup
- Vitest
- Playwright
- ESLint
Highlights
- Integrated the relay with a cross-product identity layer: forwarded the @idhub/identity-core canonical anonymous id into every GA4 Measurement Protocol event as a separate idhub_anonymous_id param, leaving the existing first-party client_id untouched. Moved from a pilot link: dependency to the published package once it reached npm.
- Fixed the relay's GA4 debug endpoint, which validated a hardcoded fake payload. It now resolves the live client_id, session and idhub anonymous id read-only (no Set-Cookie), so validation reflects what a real collect request sends.
- Stood up a Docusaurus documentation site on Vercel (ga4-server-side-relay.vercel.app) as an isolated workspace. Migrated the install guide and design notes into docs and turned five live-verification spike write-ups into dated engineering blog posts.
- Built a Changesets-driven skill distribution pipeline (package generators, content sync, validation, marketplace generator, release workflow) and authored an onboarding skill. The skill encodes the relay's load-bearing integration gotchas so other Next.js repos wire it correctly first time.
- Turned the release follow-ups into six scoped epic plans (CI/release infra, cross-browser e2e, live-verification spikes, bundle-size and hardening gaps, ADR extraction) with explicit open-question logs. This included catching a stale 'blocked browsers' premise during architect review.