From d2059079d3a36443fec88633eee61b4f3bc04fed Mon Sep 17 00:00:00 2001 From: "Kalle (Sendou)" <38327916+Sendouc@users.noreply.github.com> Date: Tue, 12 Jan 2021 01:35:40 +0200 Subject: [PATCH] ga --- pages/_document.tsx | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/pages/_document.tsx b/pages/_document.tsx index 6959cb82d..dbddc699d 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -7,6 +7,8 @@ import Document, { NextScript, } from "next/document"; +const GA_TRACKING_ID = "UA-163861331-1"; + class MyDocument extends Document { static async getInitialProps(ctx: DocumentContext) { const initialProps = await Document.getInitialProps(ctx); @@ -17,7 +19,25 @@ class MyDocument extends Document { render() { return ( -
+
+ {/* Global Site Tag (gtag.js) - Google Analytics */} + + +