google analytics
This commit is contained in:
@@ -16,7 +16,22 @@ const { title } = Astro.props;
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>{title}</title>
|
||||
<ClientRouter />
|
||||
</head>
|
||||
<script
|
||||
async
|
||||
src="https://www.googletagmanager.com/gtag/js?id=G-3E2HSZT0JD"
|
||||
></script><script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag() {
|
||||
dataLayer.push(arguments);
|
||||
}
|
||||
gtag("js", new Date());
|
||||
|
||||
gtag("config", "G-3E2HSZT0JD");
|
||||
</script></head
|
||||
>
|
||||
|
||||
<!-- Google tag (gtag.js) -->
|
||||
|
||||
<body>
|
||||
<main>
|
||||
<slot />
|
||||
|
||||
Reference in New Issue
Block a user