mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-30 18:09:40 +05:00
feat: add analytics
This commit is contained in:
parent
33d34938c6
commit
6d4d320da8
9 changed files with 67 additions and 15 deletions
|
@ -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>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue