Skip to content

Commit f4e72c8

Browse files
docs: add Clarity analytics to VitePress head (#199)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent f94184a commit f4e72c8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

docs/.vitepress/config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ export default {
88
appearance: true,
99
head: [
1010
['link', { rel: 'icon', href: '/webui/favicon.ico' }],
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", "w8ppn3zr79");`
17+
],
1118
],
1219
themeConfig: {
1320
logo: '/logo.svg',

0 commit comments

Comments
 (0)