LogoLogo
  • Overview
  • Key Features
  • Getting Started
    • Installation
    • Quick Start Guide
    • Configuration Options
    • Authentication
  • NPM Package
    • Installation
    • Core API Reference
    • Event Tracking
    • Experimentation
    • Performance Monitoring
    • Session Recording
    • Error Tracking
    • Advanced Configuration
  • A/B Testing & Experimentation
    • Creating Experiments
    • Targeting Users
    • Measuring Results
    • Statistics & Significance
    • Best Practices
  • Analytics Dashboard
    • Overview
    • User Journey Analysis
    • Conversion Funnels
    • Custom Reports
  • Session Recording
    • Privacy Considerations
    • Viewing Recordings
    • Filtering & Searching
    • Heatmaps
  • Performance Monitoring
    • Core Web Vitals
  • User Management
    • Roles & Permissions
    • Team Collaboration
    • Access Controls
    • Audit Logs
  • Troubleshooting
    • Common Issues
    • Debugging Tools
    • Error Reference
  • Appendix
    • Glossary
    • API Status Codes
    • Migration Guides
    • Release Notes
    • Roadmap
Powered by GitBook
On this page
  1. Troubleshooting

Debugging Tools

Built-in Debugging Mode

Mtrix includes a comprehensive debugging mode to help identify issues:

mtrix.init({
  organizationId: 'your-organization-id',
  projectId: 'your-project-id',
  environment: 'development',
  options: {
    debug: true // Enable debug mode
  }
});

// Or enable debug mode after initialization
mtrix.setDebugMode(true);

With debug mode enabled, you'll see detailed logs in the browser console:

[Mtrix] Version: 0.1.0
[Mtrix] Initializing with config: { organizationId: "org-123", ... }
[Mtrix] Environment detected: development
[Mtrix] Browser support check passed
[Mtrix] Event tracking enabled
[Mtrix] Session recording enabled
[Mtrix] Performance monitoring enabled
[Mtrix] Event tracked: PageView { url: "/products", ... }
[Mtrix] API request sent: /events (200 OK)

Mtrix Developer Tools

For advanced debugging, use the Mtrix Developer Tools extension:

  1. Install the browser extension (Chrome, Firefox, Edge supported)

  2. Open Developer Tools and navigate to the "Mtrix" tab

  3. View real-time events, experiment assignments, and API requests

Key features:

  • Event Inspector: See all events being tracked

  • Request Analyzer: View API requests and responses

  • Experiment Debugger: Check experiment assignment logic

  • Performance Monitor: Debug performance tracking

  • Session Recorder: Test recording functionality

PreviousCommon IssuesNextError Reference

Last updated 1 month ago