import Script from "next/script"; import { UMAMI_WEBSITE_ID } from "@homarr/analytics"; import { api } from "@homarr/api/server"; export const Analytics = async () => { // For static pages it will not find any analytics data so we do not include the script on them const analytics = await api.serverSettings.getAnalytics().catch(() => null); if (analytics?.enableGeneral) { return