Skip to content

Commit 6cfade2

Browse files
committed
feat(website): add plausible analytics
1 parent 22c73a4 commit 6cfade2

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

.changeset/long-squids-attack.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@alanlu-dev/website": patch
3+
---
4+
5+
feat(website): add plausible analytics

apps/website/app.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ useHead({
66
bodyAttrs: {
77
class: 'normal fg:base-fg bg:base-bg overflow-x:hidden',
88
},
9+
script: [
10+
{
11+
'src': 'https://plausible.alanlu.dev/js/script.file-downloads.hash.outbound-links.pageview-props.tagged-events.js',
12+
'data-domain': 'alanlu.dev',
13+
'defer': true,
14+
},
15+
{ children: 'window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }' },
16+
],
917
})
1018
1119
const CSSRuntimeProvider = defineAsyncComponent(async () => (await import('@master/css.vue')).CSSRuntimeProvider)

0 commit comments

Comments
 (0)