person-running-fastQuick Start Guide

After the installation of the package, follow these steps to get Mtrix up and running in your application:

1. Create an Account

Get your up organization ID and project ID at app.mtrix.io.

2. Initialize Mtrix

Add the following code to the entry point of your application:

import mtrix from 'mtrix';

mtrix.init({
  organizationId: 'your-organization-id',
  projectId: 'your-project-id',
  environment: 'production',
  options: {
    // additional optimization
  }
});

mtrix.onReady().then(() => {
  console.log(mtrix)
  // get experiment details
});

3. Track Your First Event

After initialization, you can start tracking events:

4. Implement A/B Testing

Fetch and apply experiment configurations:

Last updated