Skip to content

Commit f50c200

Browse files
committed
add data-domains script tag
1 parent 554bdd1 commit f50c200

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

frontend/app/root.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
type MetaFunction,
1212
} from 'react-router'
1313
import { Header, Footer } from '@/components'
14-
import { UMAMI_HOST, UMAMI_WEBSITE_ID } from '@shared/defines'
14+
import { APP_URL, UMAMI_HOST, UMAMI_WEBSITE_ID } from '@shared/defines'
1515
import faviconSvg from '~/assets/images/favicon.svg?url'
1616
import { TelemetryProvider } from '~/lib/analytics'
1717
import { UIProvider } from '~/stores/uiStore'
@@ -32,6 +32,10 @@ export default function App() {
3232
defer
3333
src={`${UMAMI_HOST}/script.js`}
3434
data-website-id={UMAMI_WEBSITE_ID}
35+
data-domains={[
36+
new URL(APP_URL.production).hostname,
37+
new URL(APP_URL.development).hostname,
38+
].join(',')}
3539
/>
3640
)}
3741
</head>

0 commit comments

Comments
 (0)