Skip to main content

Installation

Choose the appropriate package for your project:
# For basic websites
npm install @bily/browser

# For React applications
npm install @bily/react

Configuration Options

Basic Website Configuration

import { init } from '@bily/browser';

// Initialize Bily with your domain tracking ID
init('your-domain-tracking-id', {
  verbose: true,     // Enable logging in development
  persistQueue: true // Enable reliable event delivery
});

React Application Configuration

import { BilyProvider } from '@bily/react';

function App() {
  return (
    <BilyProvider 
      domainTracking="your-domain-tracking-id"
      options={{ 
        verbose: true,
        persistQueue: true 
      }}
    >
      <YourApp />
    </BilyProvider>
  );
}

Environment Setup

  1. Get your domain tracking ID from the Bily Dashboard
  2. Install the appropriate package using npm, yarn, or pnpm
  3. Initialize Bily in your application
  4. Test your integration using the development tools

Next Steps