diff --git a/src/components/head/WebAnalytics.tsx b/src/components/head/WebAnalytics.tsx index e98f66d..ce3f25e 100644 --- a/src/components/head/WebAnalytics.tsx +++ b/src/components/head/WebAnalytics.tsx @@ -5,24 +5,27 @@ export function WebAnalytics() { return <> { - analytics.umami.websitId && + analytics.umami.websiteId && } { analytics.google.measurementId && } + { + analytics.microsoftClarity.projectId && + } } function UmamiAnalytics({ serverUrl, - websitId, + websiteId, }: { serverUrl?: string, - websitId: string, + websiteId: string, }) { const src = `${serverUrl || 'https://cloud.umami.is'}/script.js` - return ) +} + + +function MicrosoftClarity({ + projectId, +}: { + projectId: string, +}) { + return ( + <> + + + ) } \ No newline at end of file diff --git a/src/config.json b/src/config.json index d4fcef7..5ce2ba2 100644 --- a/src/config.json +++ b/src/config.json @@ -115,7 +115,10 @@ }, "umami": { "serverUrl": "", - "websitId": "" + "websiteId": "" + }, + "microsoftClarity": { + "projectId": "" } } }