diff --git a/components/analytics.tsx b/components/analytics.tsx index b8a3cf7..7ece931 100644 --- a/components/analytics.tsx +++ b/components/analytics.tsx @@ -8,9 +8,17 @@ export function Analytics() { return null; } + let hostUrl: string | undefined; + try { + hostUrl = new URL(scriptUrl).origin; + } catch { + hostUrl = undefined; + } + return (