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. Getting Started

Installation

PreviousKey FeaturesNextQuick Start Guide

Last updated 1 month ago

This section will guide you through installing, configuring, and initializing the Mtrix analytics and experimentation platform in your website.

Installation

Mtrix is distributed as an NPM package, making it easy to integrate with modern JavaScript websites.

Using npm

npm install mtrix --save

Using yarn

yarn add mtrix

Using a CDN

If you're not using a module bundler, you can include Mtrix directly in your HTML:

<!-- Include the UMD build -->
<script src="https://cdn.jsdelivr.net/npm/mtrix@latest/dist/mtrix.umd.js"></script>

<!-- Mtrix is now available as a global variable -->
<script>
    mtrix.init({
        organizationId: 'your-organization-id',
        projectId: 'your-project-id',
        environment: 'production'
    });
</script>