Skip to content

Commit 0415608

Browse files
committed
Add Cloudflare Analytics beacon
1 parent 2e14b14 commit 0415608

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pages/_document.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Document, { Head, Html, Main, NextScript } from "next/document";
2+
import Script from "next/script";
23

34
export default class MyDocument extends Document {
45
public render() {
@@ -17,7 +18,14 @@ export default class MyDocument extends Document {
1718

1819
<body>
1920
<Main />
21+
2022
<NextScript />
23+
24+
<Script
25+
defer
26+
src="https://static.cloudflareinsights.com/beacon.min.js"
27+
data-cf-beacon='{"token": "6efcdbbf14834302a919baeeb3e0b0a8"}'
28+
/>
2129
</body>
2230
</Html>
2331
);

0 commit comments

Comments
 (0)