Microsoft Application Insight integration for Nuxt.
nuxt-applicationinsights dependency to your project# Using pnpm
pnpm add -D nuxt-applicationinsights
# Using yarn
yarn add --dev nuxt-applicationinsights
# Using npm
npm install --save-dev nuxt-applicationinsights
nuxt-applicationinsights to the modules section of nuxt.config.tsexport default defineNuxtConfig({
modules: [
'nuxt-applicationinsights'
]
})
That’s it! You can now use nuxt-applicationinsights in your Nuxt app ✨
nitro-applicationinsights will track each request and errors while @microsoft/applicationinsights-web will track client-side events.
Application insights client is available at useNuxtApp().$appInsights.
It is accessible in server and client environment. However types are not the same since it is a TelemetryClient from applicationinsights server side and an ApplicationInsights from @microsoft/applicationinsights-web client-side.
# Install dependencies
npm install
# Generate type stubs
npm run dev:prepare
# Develop with the playground
npm run dev
# Build the playground
npm run dev:build
# Run ESLint
npm run lint
# Run Vitest
npm run test
npm run test:watch
# Release new version
npm run release
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.