chart-bulletPerformance Monitoring

Mtrix's performance monitoring captures critical metrics about your application's performance in real user environments, helping you identify issues and optimize user experience.

Core Web Vitals

Mtrix automatically tracks Core Web Vitalsarrow-up-right and other key performance metrics:

  • Largest Contentful Paint (LCP): Measures loading performance

  • First Input Delay (FID): Measures interactivity

  • Cumulative Layout Shift (CLS): Measures visual stability

  • Time to First Byte (TTFB): Measures server response time

  • First Contentful Paint (FCP): Measures when first content appears

Enabling Performance Monitoring

Performance monitoring is disabled by default. Enable it during initialization:

mtrix.init({
  organizationId: 'your-organization-id',
  projectId: 'your-project-id',
  environment: 'production',
  options: {
    performanceReporting: {
      tracking: true,
      metrics: ['CLS', 'FID', 'LCP', 'TTFB', 'FCP'],
      sampleRatio: 0.5 // Track for 50% of users
    }
  }
});

Accessing Performance Data

You can access the current performance metrics programmatically:

Custom Performance Metrics

Track custom metrics relevant to your application:

Real User Monitoring Data

Performance data is collected from real users and includes:

Performance Visualization

In the Mtrix dashboard, performance data is visualized to help you understand:

  • Performance trends over time

  • Performance by device type, browser, and connection speed

  • Correlation between performance metrics and conversion rates

  • Impact of deployments on performance

Optimizing Performance with Mtrix

Identifying Issues

When a threshold is exceeded, Mtrix will track a special event:

Last updated