From a4395ede483183f3347411d25a44488b6da30a15 Mon Sep 17 00:00:00 2001 From: YunYouJun Date: Mon, 5 Feb 2024 01:42:11 +0800 Subject: [PATCH] feat: add clarity analytics --- nuxt.config.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nuxt.config.ts b/nuxt.config.ts index 4bf3ea1..9d9fdf2 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -70,6 +70,16 @@ export default defineNuxtConfig({ { name: 'description', content: appDescription }, { name: 'apple-mobile-web-app-status-bar-style', content: 'black-translucent' }, ], + script: [ + { + type: 'text/javascript', + innerHTML: ` (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", "kwm5q1tej7");`, + }, + ], }, },