mirror of
https://github.com/System-End/site.git
synced 2026-04-19 18:35:12 +00:00
added plausible (#316)
This commit is contained in:
parent
5c63a9952f
commit
d3ced18643
2 changed files with 12 additions and 0 deletions
9
components/analytics.js
Normal file
9
components/analytics.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
export default () => (
|
||||
<script
|
||||
defer
|
||||
data-domain="hackclub.com"
|
||||
src="https://plausible.io/js/plausible.js">
|
||||
</script>
|
||||
|
||||
)
|
||||
|
|
@ -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>
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue