Skip to content

Commit 6a147bc

Browse files
authored
Merge pull request #1 from compstatgenlab/copilot/add-goatcounter-analytics
Add GoatCounter analytics to all pages
2 parents 4b4ed06 + e1e06af commit 6a147bc

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/layouts/Base.astro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ const canonicalURL = new URL(Astro.url.pathname, Astro.site);
2525
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
2626
<link href="https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;1,6..72,300;1,6..72,400&family=Instrument+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Martian+Mono:wght@300;400;500&display=swap" rel="stylesheet" />
2727
<link rel="icon" type="image/jpeg" href="/images/lab/spiral-logo.jpg" />
28+
<script data-goatcounter="https://compstatgenlab.goatcounter.com/count"
29+
async src="https://gc.zgo.at/count.js"></script>
30+
<slot name="head" />
2831
</head>
2932
<body class="bg-white text-stone-700 font-sans antialiased">
3033
<slot />

src/layouts/Page.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export interface Props {
1010
const { title, description } = Astro.props;
1111
---
1212
<Base title={title} description={description}>
13+
<slot name="head" slot="head" />
1314
<Nav />
1415
<main class="min-h-screen">
1516
<slot />

0 commit comments

Comments
 (0)