monitoring-setup

Expert in setting up Sentry error tracking and Google Analytics for NestJS and Next.js applications. Use this skill when users need monitoring, error tracking, or analytics configuration.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "monitoring-setup" with this command: npx skills add shipshitdev/library/shipshitdev-library-monitoring-setup

Monitoring Setup Expert

Overview

This skill enables AI assistants to set up comprehensive monitoring for NestJS and Next.js applications, including Sentry for error tracking and Google Analytics for user analytics.

When to Use This Skill

This skill activates when users:

  • Need to set up error tracking (Sentry)
  • Want to configure Google Analytics
  • Need monitoring for production applications
  • Want to track application errors and user behavior

Sentry Setup

NestJS Backend

  1. Install: npm install @sentry/node @sentry/profiling-node
  2. Initialize in main.ts before app creation
  3. Configure DSN via SENTRY_DSN environment variable
  4. Set appropriate sample rates for production

Next.js Frontend

  1. Install: npm install @sentry/nextjs
  2. Run: npx @sentry/wizard@latest -i nextjs
  3. Configure client/server/edge configs
  4. Set NEXT_PUBLIC_SENTRY_DSN for client-side

Google Analytics Setup

Next.js Setup

  1. Add Google Analytics script to root layout
  2. Use NEXT_PUBLIC_GA_MEASUREMENT_ID (format: G-XXXXXXXXXX)
  3. Create analytics utility functions for event tracking
  4. Set up page view tracking

Common Events

  • User signup/login
  • Purchases/conversions
  • Feature usage
  • Custom business events

Best Practices

  • Use different DSNs for dev/prod
  • Set appropriate sample rates
  • Respect user privacy (GDPR/CCPA)
  • Don't track sensitive data
  • Set up alerts for critical errors

Integration

This skill integrates with /monitoring-setup command for automated setup workflows.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

financial-operations-expert

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

youtube-video-analyst

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

nestjs-testing-expert

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

brand-name-generator

No summary provided by upstream source.

Repository SourceNeeds Review