feat: add google gtag
parent
06c0ed4848
commit
46e7042ad6
|
@ -35,6 +35,18 @@ function RootLayout({ children }: { children: ReactNode }): ReactElement {
|
|||
`,
|
||||
}}
|
||||
/>
|
||||
{/* google */}
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-3VNFGQNP7Z" />
|
||||
<script
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'G-3VNFGQNP7Z');
|
||||
`,
|
||||
}}
|
||||
/>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue