Skip to content

Commit 6e52d56

Browse files
authored
Merge pull request #13 from EdwardAngert/clarity-ga4
replace rybbit with clarity and ga4
2 parents 98c1cb7 + ba8629a commit 6e52d56

1 file changed

Lines changed: 18 additions & 5 deletions

File tree

src/components/Head.astro

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,22 @@ import StarlightHead from '@astrojs/starlight/components/Head.astro';
66
<StarlightHead {...Astro.props}>
77
<slot />
88
</StarlightHead>
9-
<script
10-
src="https://app.rybbit.io/api/script.js"
11-
data-site-id="6c2fcb3fd377"
12-
defer
13-
>
9+
10+
<!-- clarity -->
11+
<script type="text/javascript">
12+
(function(c,l,a,r,i,t,y){
13+
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
14+
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
15+
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
16+
})(window, document, "clarity", "script", "ttqsy2tj0d");
17+
</script>
18+
19+
<!-- Google tag (gtag.js) -->
20+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-0CL1DB35WT"></script>
21+
<script>
22+
window.dataLayer = window.dataLayer || [];
23+
function gtag(){dataLayer.push(arguments);}
24+
gtag('js', new Date());
25+
26+
gtag('config', 'G-0CL1DB35WT');
1427
</script>

0 commit comments

Comments
 (0)