Skip to content

Commit

Permalink
Merge pull request #40 from dnd-side-project/hotfix/fix-gtag
Browse files Browse the repository at this point in the history
fix : 기존 Gtag 제거
  • Loading branch information
guesung authored Aug 30, 2023
2 parents 50e579a + 33ec967 commit c63afe1
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,24 +60,6 @@ export default function RootLayout({ children }: { children: React.ReactNode })
</RecoilContextProvider>
</div>
</body>
<Gtag />
</html>
);
}

function Gtag() {
return (
<>
<Script src={`https://www.googletagmanager.com/gtag/js?id=${GA_ID}`} />
<Script id="google-analytics">
{`
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '${GA_ID}');
`}
</Script>
</>
);
}

0 comments on commit c63afe1

Please sign in to comment.