Skip to main content

Log Levels

Control SDK logging for debugging:
import { Zixflow, ZixflowLogLevel } from 'zixflow-reactnative';

const config = {
  apiKey: 'YOUR_API_KEY',
  logLevel: ZixflowLogLevel.debug,  // debug, info, error, none
};

Zixflow.initialize(config);
Log levels:
  • ZixflowLogLevel.debug - Verbose logging (development)
  • ZixflowLogLevel.info - Informational messages
  • ZixflowLogLevel.error - Errors only
  • ZixflowLogLevel.none - No logging (production)

Auto-Tracking Options

Configure automatic tracking features:
import { Zixflow } from 'zixflow-reactnative';

const config = {
  apiKey: 'YOUR_API_KEY',

  // Automatically track device attributes (OS, model, app version)
  autoTrackDeviceAttributes: true,

  // Automatically track app lifecycle events (open, close, background)
  trackApplicationLifecycleEvents: true,

  // Automatically track screens (requires integration)
  autoTrackScreenViews: true,
};

Zixflow.initialize(config);

Custom API Hosts

Override API endpoints for testing or custom infrastructure:
import { Zixflow } from 'zixflow-reactnative';

const config = {
  apiKey: 'YOUR_API_KEY',

  // Custom tracking API host
  trackingApiUrl: 'https://custom-track.zixflow.com',

  // Custom in-app messaging API host
  inApp: {
        // Override in-app messaging API endpoint if needed
  },
};

Zixflow.initialize(config);