nuxt / scripts

Plug-and-play script optimization for Nuxt applications. (Public Preview)
https://scripts.nuxt.com
MIT License
126 stars 8 forks source link

feat: clarity #91

Closed harlan-zw closed 2 weeks ago

harlan-zw commented 2 weeks ago

https://clarity.microsoft.com/

Usages

Global

export default defineNuxtConfig({
  scripts: {
    registry: {
      clarity: {
        id: 'YOUR_ID'
      }
    }
  }
})

API

const { clarity } = useScriptClarity({
  id: 'YOUR_ID'
})
clarity("identify", "custom-id", "custom-session-id", "custom-page-id", "friendly-name")    
vercel[bot] commented 2 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
scripts-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 12, 2024 2:26am
scripts-playground ❌ Failed (Inspect) Jun 12, 2024 2:26am