From eca815c560d6e4459e848d4fdca6c0ea842beebe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9B=90=EB=8D=94?= Date: Mon, 4 Jan 2021 20:12:19 +0900 Subject: [PATCH] feat: added google anaylatics and adsense --- pages/_document.tsx | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pages/_document.tsx diff --git a/pages/_document.tsx b/pages/_document.tsx new file mode 100644 index 0000000..df545ff --- /dev/null +++ b/pages/_document.tsx @@ -0,0 +1,40 @@ +import Document, { DocumentContext, Html, Head, Main, NextScript } from 'next/document' + +class MyDocument extends Document { + static async getInitialProps(ctx: DocumentContext) { + const initialProps = await Document.getInitialProps(ctx) + + return initialProps + } + render() { + return ( + + + + +