Skip to content

Commit

Permalink
config(site): Add clarity script for user behavior analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
dengfuping committed Jul 11, 2024
1 parent d88ee0d commit 607ebed
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ export default defineConfig({
analytics: {
ga_v2: 'G-81Y5XPZY2E',
},
headScripts: [
// Microsoft clarity script
`(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", "n5kn7gme0s");`,
],
metas: [
{
property: 'og:site_name',
Expand Down

0 comments on commit 607ebed

Please sign in to comment.