added plausible (#316)

This commit is contained in:
leomcelroy 2022-01-24 15:22:50 -05:00 committed by GitHub
parent 5c63a9952f
commit d3ced18643
2 changed files with 12 additions and 0 deletions

9
components/analytics.js Normal file
View file

@ -0,0 +1,9 @@
export default () => (
<script
defer
data-domain="hackclub.com"
src="https://plausible.io/js/plausible.js">
</script>
)

View file

@ -1,6 +1,8 @@
import React from 'react'
import Head from 'next/head'
import Analytics from "../components/analytics.js";
import Meta from '@hackclub/meta'
import '@hackclub/theme/fonts/reg-bold.css'
import theme from '../lib/theme'
@ -10,6 +12,7 @@ const App = ({ Component, pageProps }) => (
<ThemeProvider theme={theme}>
<Meta as={Head} />
<Component {...pageProps} />
<Analytics />
</ThemeProvider>
)