From f1b8e979c535e7711fef16ac85229b6a8247bfe1 Mon Sep 17 00:00:00 2001 From: tom1145 Date: Wed, 25 Sep 2024 15:49:55 +0300 Subject: [PATCH] feat: add GA --- src/pages/_document.tsx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx index 1a627bf..bad3fb5 100644 --- a/src/pages/_document.tsx +++ b/src/pages/_document.tsx @@ -1,9 +1,30 @@ import { Html, Head, Main, NextScript } from 'next/document' +import Script from 'next/script' export default function Document() { + const GA_TRACKING_ID = process.env.NEXT_PUBLIC_GA_TRACKING_ID || 'G-WQ5TV5PMN3' + return ( +