Skip to content

Commit 8fdb4a2

Browse files
committed
feat: Switch analytics providers
1 parent bea9e65 commit 8fdb4a2

File tree

9 files changed

+29
-29
lines changed

9 files changed

+29
-29
lines changed

.idea/copilot.data.migration.agent.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/copilot.data.migration.edit.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/discord.xml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bun.lockb

-601 Bytes
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@pixiv/three-vrm": "^3.3.4",
1919
"@pixiv/three-vrm-animation": "^3.3.4",
2020
"@react-three/fiber": "^9.1.2",
21+
"@swetrix/nextjs": "^1.0.1",
2122
"@tailwindcss/postcss": "^4.1.7",
2223
"@types/three": "^0.176.0",
2324
"caniuse-lite": "^1.0.30001664",
@@ -28,7 +29,6 @@
2829
"next-intl": "^4.1.0",
2930
"next-themes": "^0.4.4",
3031
"postcss": "^8.5.3",
31-
"posthog-js": "^1.203.1",
3232
"react": "^19.1.0",
3333
"react-cookie-consent": "^9.0.0",
3434
"react-dom": "^19.1.0",

src/app/[locale]/layout.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { Metadata } from "next";
22
import localFont from "next/font/local";
3-
import { CSPostHogProvider } from "@/components/posthog";
43
import { Toaster } from "sonner";
54
import { NextIntlClientProvider } from "next-intl";
65
import { getMessages, setRequestLocale } from "next-intl/server";
@@ -47,10 +46,8 @@ export default async function LocaleLayout({
4746
<html className={hsr.className} lang={locale} data-theme={"mikn"}>
4847
<body>
4948
<NextIntlClientProvider messages={messages}>
50-
<CSPostHogProvider>
5149
{children}
5250
<Toaster richColors />
53-
</CSPostHogProvider>
5451
</NextIntlClientProvider>
5552
</body>
5653
</html>

src/app/[locale]/template.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Image from "next/image";
66
import mikanLogo from "@/assets/img/mikan.png";
77
import MikanCat from "@/assets/img/mikan-cat.png";
88
import KawaiiLogo from "@/assets/img/mikan-vtube.svg";
9+
import { useSwetrix } from '@swetrix/nextjs'
910
import { useRouter, usePathname } from "next/navigation";
1011
import CookieConsent from "react-cookie-consent";
1112
import { ReactNode } from "react";
@@ -17,6 +18,7 @@ export default function PagesLayout({ children }: { children: ReactNode }) {
1718
const router = useRouter();
1819
const pathname = usePathname();
1920
const t = useTranslations("nav");
21+
useSwetrix("XxNIMaHCaVG3", { apiURL: "https://analytics.mikandev.tech/log" })
2022

2123
const changeLanguage = () => {
2224
//@ts-ignore

src/components/posthog.tsx

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)