Comprehensive SDKs for every platform. Track events, analyze user behavior, and make data-driven decisions with our powerful analytics platform.
Install the SDK using your package manager
npm install @insightpro/analytics-sdkConfigure the SDK with your API credentials
import { InsightPro } from '@insightpro/analytics-sdk';
const analytics = new InsightPro({
apiKey: 'your_api_key_here',
environment: 'production'
});
analytics.initialize();Start tracking user interactions and custom events
// Track a custom event
analytics.track('product_viewed', {
product_id: 'SKU123',
product_name: 'Premium Widget',
price: 99.99,
category: 'Electronics'
});
// Track page views
analytics.page('Product Detail', {
url: window.location.href
});Track events as they happen with sub-second latency
End-to-end encryption and SOC2 compliant infrastructure
Built-in retry logic for failed requests
Queue events locally, sync when connected
Customize batch sizes, flush intervals, and more
Separate dev, staging, and production data
Start tracking analytics in your application today