mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 19:46:37 +08:00
add Google tag for Google analytics
add Google tag for Google analytics
This commit is contained in:
parent
af30a8b79e
commit
275b9b7882
@ -44,6 +44,15 @@ export default function RootLayout({
|
||||
rel="stylesheet"
|
||||
></link>
|
||||
<script src="/serviceWorkerRegister.js" defer></script>
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-1FKGPYXXMT"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'G-1FKGPYXXMT');
|
||||
</script>
|
||||
</head>
|
||||
<body>{children}</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user