| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This directory contains the documentation for the Google Tag Manager setup for simonask.io.
Our tracking system uses a hybrid model combining a traditional Client-Side Web Container with a Server-Side Container. This setup optimizes site performance, increases data privacy, and enables first-party cookie management.
The following diagram illustrates how user interactions on the website are tracked, evaluated for consent, routed through our server-side container, and dispatched to Google Analytics.
graph TD
User([Visitor]) -->|Page Load / Click| WebGTM[Web GTM Container]
subgraph "Client-Side (Browser)"
WebGTM -->|Event & Consent| DL[dataLayer]
DL -->|Check Consent| ConsentGate{Consent Granted?}
ConsentGate -->|No| Suppressed[Hits Suppressed]
ConsentGate -->|Yes| GA4Tags[GA4 Web Tags]
end
GA4Tags -->|HTTPS Post| ServerGTM[Server GTM Container]
subgraph "Server-Side (GCP)"
ServerGTM -->|Parse Request| GA4Client[GA4 Client]
GA4Client -->|Forward Event| GA4ServerTag[GA4 Config Tag]
GA4ServerTag -->|Lookup Host| LKP{Hostname}
LKP -->|Staging Domain| Stage[GA4 Staging]
LKP -->|Production Domain| Prod[GA4 Production]
end
Stage -->|Dispatch| GA_Stage([Google Analytics Staging])
Prod -->|Dispatch| GA_Prod([Google Analytics Production])
The setup is split across two GTM containers. Please refer to their individual folders and documentation files for detailed configurations, including tags, triggers, and variables:
| Back | FazBrowse Home | New Git URL |