Add GA4 and Clarity analytics
Build and push image / build (push) Successful in 1m18s

This commit is contained in:
alexandrev-tibco
2026-05-05 11:31:09 +02:00
parent 52121fa682
commit 3a8a38ea25
4 changed files with 113 additions and 2 deletions
+10
View File
@@ -11,6 +11,11 @@ npm run dev
Open `http://localhost:3000`.
Optional analytics env vars:
- `NEXT_PUBLIC_GA_MEASUREMENT_ID`: GA4 measurement ID, e.g. `G-XXXXXXXXXX`
- `NEXT_PUBLIC_CLARITY_PROJECT_ID`: Microsoft Clarity project ID
## Production build
```bash
@@ -55,6 +60,11 @@ The app is configured for:
- Ingress class: `public`
- TLS secret: `hidden11-tls`
To enable analytics in Kubernetes, create a secret named `hidden11-analytics` in the `hidden11` namespace with:
- `NEXT_PUBLIC_GA_MEASUREMENT_ID`
- `NEXT_PUBLIC_CLARITY_PROJECT_ID`
## ArgoCD
```bash