Skip to content

Commit

Permalink
feat: analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
SrIzan10 committed Jul 19, 2024
1 parent 4f4a28e commit 9dcc8d5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,22 @@ export default defineConfig({
}]
},
],
head: [
!import.meta.env.DEV ? {
tag: 'script',
attrs: {
src: 'https://analytics.sern.dev/script.js',
'data-website-id': 'db608ae9-3ae2-49ed-9f7c-3ba0d5abe1b6',
defer: true,
},
} : {
tag: 'meta',
attrs: {
name: 'isdev',
content: 'true',
},
},
],
plugins: [starlightBlog({
authors: {
jacoobes: {
Expand Down

0 comments on commit 9dcc8d5

Please sign in to comment.