Skip to content

Commit 17354ca

Browse files
authored
Refactor analytics to use Rybbit instead of Umami (#9072)
1 parent e759335 commit 17354ca

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

frontend/src/app/layout.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { Metadata } from "next";
22

33
import { NuqsAdapter } from "nuqs/adapters/next/app";
44
import { Inter } from "next/font/google";
5+
import Script from "next/script";
56
import React from "react";
67

78
import { ThemeProvider } from "@/components/theme-provider";
@@ -95,12 +96,16 @@ export default function RootLayout({
9596
return (
9697
<html lang="en" suppressHydrationWarning>
9798
<head>
98-
<script defer src={`https://${analytics.url}/script.js`} data-website-id={analytics.token}></script>
9999
<link rel="canonical" href={metadata.metadataBase?.href} />
100100
<link rel="manifest" href="manifest.webmanifest" />
101101
<link rel="preconnect" href="https://api.github.com" />
102102
</head>
103103
<body className={inter.className}>
104+
<Script
105+
src={`https://${analytics.url}/api/script.js`}
106+
data-site-id={analytics.token}
107+
strategy="afterInteractive"
108+
/>
104109
<ThemeProvider attribute="class" defaultTheme="dark" enableSystem disableTransitionOnChange>
105110
<div className="flex w-full flex-col justify-center">
106111
<NuqsAdapter>

frontend/src/config/site-config.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const mostPopularScripts = ["post-pve-install", "docker", "homeassistant"
4646

4747
export const analytics = {
4848
url: "analytics.bramsuurd.nl",
49-
token: "aefee1b9-2a12-4ac2-9d82-a63113edc62e",
49+
token: "f9eee289f931",
5050
};
5151

5252
export const AlertColors = {

0 commit comments

Comments
 (0)