@agrid/nuxt

Nuxt module for Agrid - Product analytics and feature flags
1,410
Install
npm install @agrid/nuxt
Latest Version:1.1.13
Vue:3
License:MIT
Last Updated:Apr 16, 2026
Links: GitHub  ·  npm
Maintainer: advnsoftware

Agrid Nuxt Module

  • Configures and uploads sourcemaps for Agrid Error Tracking
  • Provides client initialization and auto exception capture for Vue and Nitro

Installation

pnpm add @agrid/nuxt
# or
npm install @agrid/nuxt
# or
yarn add @agrid/nuxt

Usage

// nuxt.config.ts
export default defineNuxtConfig({
  modules: ['@agrid/nuxt'],

  sourcemap: { client: 'hidden' },

  nitro: {
    rollupConfig: { output: { sourcemapExcludeSources: false } },
  },

  agridConfig: {
    host: 'YOUR_INGESTION_URL',
    publicKey: 'YOUR_PUBLIC_KEY',
    clientConfig: {}, // partial Browser SDK config
    serverConfig: {}, // Node SDK options (error tracking only)
    sourcemaps: {
      enabled: true,
      envId: process.env.AGRID_ENV_ID!,
      project: 'my-application',
      version: process.env.AGRID_RELEASE_VERSION,
      personalApiKey: process.env.AGRID_PERSONAL_API_KEY!,
    },
  },
})

Access client in Vue

const { $agrid } = useNuxtApp()

On the server, the initialized client is intended exclusively for error tracking. For other server-side analytics, instantiate a separate client where needed.

Development

pnpm i
pnpm build

Related Packages

@nuxtjs/plausible

Natively integrates Plausible Analytics into Nuxt

468,286 120
vue3-matomo

A Vue 3 and Nuxt 3 plugin for Matomo Analytics.

13,580 4
nuxt-vercel-analytics

Nuxt module to integrate Vercel Analytics

12,952 22
@piwikpro/nuxt-piwik-pro

Dedicated Piwik PRO library that helps with implementing Piwik PRO Tag Manager a...

9,831
@hexdigital/nuxt-segment

Nuxt 3 module for Segment

4,253 8

Version History

Version Released Vue License
1.1.13 ^3.0 MIT
1.1.12 ^3.0 MIT
1.1.11 ^3.0 MIT
1.1.10 ^3.0 MIT
1.1.9 ^3.0 MIT