This repository houses the configuration details, documentation, and architecture overview for the analytics and tracking systems of simonask.io.
It covers both the Client-Side (Web) GTM Container and the Server-Side (GCP) GTM Container.
- docs/GTM: Central Google Tag Manager (GTM) documentation and tracking architecture overview.
- docs/GTM/simonask.io (web): Specifications for the Client-Side Web Container (GTM-KR894J8P), including tags, triggers, variables, and cookie consent logic.
- docs/GTM/simonask.io (server): Specifications for the Server-Side GCP Container (GTM-PS3KHKB6) running at
serverside.simonask.iofor first-party cookie management and dynamic environment routing.
- contracts: Language-agnostic JSON Schema data contracts for validating
dataLayerpushes from the frontend application, preventing schema drift and tracking bugs.
- Consent-First Tracking: Client-side tags are gated using
dataLayerconsent variables. - First-Party Routing: Client-side tags send events to
https://serverside.simonask.io, avoiding direct third-party calls in the browser and enhancing privacy. - Dynamic Environment Routing: The server container dynamically directs tracking data to either the Staging GA4 Property (
G-GX5EW99T18) or Production GA4 Property (G-9Z7Z8G75Q2) based on the origin hostname.
For more details on the setup and configurations, refer to the GTM Architecture Overview.