1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-11-04 23:10:13 +01:00

added plausible

This commit is contained in:
Elias Schneider 2022-04-28 08:19:55 +02:00
parent b26578a409
commit e0669979e2
No known key found for this signature in database
GPG Key ID: D5EC1C72D93244FD

View File

@ -1,8 +1,26 @@
import Document from "next/document";
import { createGetInitialProps } from "@mantine/next";
import Document, { Head, Html, Main, NextScript } from "next/document";
const getInitialProps = createGetInitialProps();
export default class _Document extends Document {
static getInitialProps = getInitialProps;
render() {
return (
<Html>
<Head />
<body>
<Main />
<NextScript />
</body>
{/* Plausible analytics */}
<script
defer
data-domain="pingvin-share.dev.eliasschneider.com"
src="https://analytics.eliasschneider.com/js/plausible.js"
></script>
</Html>
);
}
}