Skip to content

Commit 626d88a

Browse files
committed
docs: add simple analytics
1 parent 5472d6b commit 626d88a

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

docs/pages/_document.tsx

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import {
2+
Head,
3+
Html,
4+
Main,
5+
default as NextDocument,
6+
NextScript,
7+
} from 'next/document'
8+
9+
class Document extends NextDocument {
10+
render() {
11+
return (
12+
<Html lang="en">
13+
<Head />
14+
<body>
15+
<Main />
16+
<NextScript />
17+
18+
<script
19+
async
20+
defer
21+
src="https://scripts.simpleanalyticscdn.com/latest.js"
22+
/>
23+
<noscript>
24+
<img
25+
src="https://queue.simpleanalyticscdn.com/noscript.gif"
26+
alt=""
27+
referrerPolicy="no-referrer-when-downgrade"
28+
/>
29+
</noscript>
30+
</body>
31+
</Html>
32+
)
33+
}
34+
}
35+
36+
export default Document

0 commit comments

Comments
 (0)