chore: inline ga4 module and remove raw GitHub import (#3733)

## Summary
- Inlined the `$ga4` module (from
`https://raw.githubusercontent.com/denoland/ga4/main/mod.ts`) into
`www/utils/ga4.ts`
- Replaced old `deno.land/std` URL imports with `@std/http`
(`getCookies`, `STATUS_TEXT`)
- Inlined the trivial `snakeCase` helper (was from `deno.land/x/case`)
- Removed `$ga4` import map entry from `deno.json`

The ga4 package was never published to jsr or npm, so inlining was the
cleanest way to eliminate the last raw URL-based dependency.
This commit is contained in:
Bartek Iwańczuk
2026-03-28 12:05:13 +00:00
committed by GitHub
parent 220368aa15
commit 214975d90d
4 changed files with 414 additions and 34 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import type { Context } from "fresh";
import type { Event } from "$ga4";
import { GA4Report, isDocument, isServerError } from "$ga4";
import type { Event } from "../utils/ga4.ts";
import { GA4Report, isDocument, isServerError } from "../utils/ga4.ts";
const GA4_MEASUREMENT_ID = Deno.env.get("GA4_MEASUREMENT_ID");