Skip to content

Commit

Permalink
docs: add Clarity tracking script to VitePress config
Browse files Browse the repository at this point in the history
  • Loading branch information
huangdijia committed Dec 20, 2024
1 parent f29b2b5 commit f18b1c2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@ export default defineConfig({
s.parentNode.insertBefore(hm, s);
})();
`
],
[
'script',
{},
`
<script type="text/javascript">
(function(c,l,a,r,i,t,y){
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, "clarity", "script", "pgqv4ftymf");
</script>
`
]
],
locales:{
Expand Down

0 comments on commit f18b1c2

Please sign in to comment.