forked from phc/website
feat: goatcounter for analytics
This commit is contained in:
@@ -52,6 +52,19 @@ const { title, description, thumbnail, pageTags } = Astro.props
|
||||
})
|
||||
</script>
|
||||
|
||||
<script is:inline>
|
||||
window.goatcounter = {
|
||||
path(p) {
|
||||
return location.host + p
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<script
|
||||
is:inline
|
||||
async
|
||||
src="//analytics.phc.dm.unipi.it/count.js"
|
||||
data-goatcounter="https://analytics.phc.dm.unipi.it/count"></script>
|
||||
|
||||
<title>{title}</title>
|
||||
</head>
|
||||
<body class:list={typeof pageTags === 'string' ? [pageTags] : pageTags}>
|
||||
|
||||
Reference in New Issue
Block a user