diff --git a/src/lib/constants/umami.ts b/src/lib/constants/umami.ts index e715a56..8ae6317 100644 --- a/src/lib/constants/umami.ts +++ b/src/lib/constants/umami.ts @@ -1,2 +1,4 @@ export const UMAMI_WEBSITE_ID = process.env.NEXT_PUBLIC_UMAMI_WEBSITE_ID ?? ""; export const UMAMI_SRC = process.env.NEXT_PUBLIC_UMAMI_SRC ?? ""; +export const UMAMI_DATA_DOMAIN = + process.env.NEXT_PUBLIC_UMAMI_DATA_DOMAIN ?? ""; diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx index 4c931d6..394626f 100644 --- a/src/pages/_document.tsx +++ b/src/pages/_document.tsx @@ -2,7 +2,11 @@ import { ColorModeScript } from "@chakra-ui/react"; import type { DocumentContext } from "next/document"; import Document, { Html, Head, Main, NextScript } from "next/document"; -import { UMAMI_SRC, UMAMI_WEBSITE_ID } from "lib/constants/umami"; +import { + UMAMI_DATA_DOMAIN, + UMAMI_SRC, + UMAMI_WEBSITE_ID, +} from "lib/constants/umami"; import customTheme from "lib/styles/theme"; const APP_NAME = "spoker"; @@ -45,7 +49,7 @@ class MyDocument extends Document { defer data-website-id={UMAMI_WEBSITE_ID} src={UMAMI_SRC} - data-domains="spoker.sznm.dev" + data-domains={UMAMI_DATA_DOMAIN} />