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. NPM Package

Installation

The Mtrix package is designed to be lightweight and easy to integrate with any JavaScript application. It's available on npm and can be installed with your package manager of choice.

Using npm

npm install mtrix --save

Using yarn

yarn add mtrix

Using pnpm

pnpm add mtrix

Manual Download

You can also download the package directly from our CDN and include it in your HTML:

<script src="https://cdn.mtrix.io/v1/mtrix.min.js"></script>

Package Size

The Mtrix package is designed to be lightweight to minimize impact on your application's load time:

Build
Size (gzipped)
Features

Core

~12kB

Basic event tracking and API

Full

~28kB

All features including session recording

The package uses tree-shaking to ensure that only the code you use is included in your final bundle.

PreviousAuthenticationNextCore API Reference

Last updated 1 month ago