feat: add analytics

This commit is contained in:
Kentai Radiquum 2024-08-18 20:21:36 +05:00
parent 33d34938c6
commit 6d4d320da8
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
9 changed files with 67 additions and 15 deletions

View file

@ -7,6 +7,7 @@ import { useEffect, useState } from "react";
import { Button, Modal } from "flowbite-react";
import { Spinner } from "./components/Spinner/Spinner";
import { ChangelogModal } from "#/components/ChangelogModal/ChangelogModal";
import PlausibleProvider from "next-plausible";
const inter = Inter({ subsets: ["latin"] });
@ -97,6 +98,14 @@ export const App = (props) => {
</Button>
</Modal.Footer>
</Modal>
{preferencesStore.flags.enableAnalytics && (
<PlausibleProvider
domain="anix.wah.su"
trackLocalhost={true}
selfHosted={true}
enabled={true}
/>
)}
</body>
);
};