Retrieve comprehensive analytics and performance data for your sales operations.
/api/integrations/crm/analytics
Step-by-step guide to integrate analytics and performance data into your CRM or dashboard
Contact us to get your API key and secret key for accessing analytics data
Download our ready-to-use analytics dashboard components from the UI Components page - just copy and paste!
Add the API integration code to your dashboard or CRM system using the examples in the right sidebar
Your dashboard will now show real-time analytics, performance metrics, and insights from our system
const apiKey = 'your_api_key_here'; const secretKey = 'your_secret_key_here'; async function getAnalytics() { const response = await fetch('/api/integrations/crm/analytics?type=sales&start_date=2024-01-01&end_date=2024-12-31', { method: 'GET', headers: { 'X-API-Key': apiKey, 'X-Secret-Key': secretKey, 'Content-Type': 'application/json' } }); if (!response.ok) { throw new Error(`HTTP error! status: ${response.status}`); } const data = await response.json(); console.log(data.data.analytics); } getAnalytics().catch(console.error);
{ "success": true, "data": { "type": "sales", "date_range": { "start_date": "2024-01-01T00:00:00.000Z", "end_date": "2024-12-31T23:59:59.999Z" }, "analytics": { "total_revenue": 125000.50, "average_order_value": 1250.50, "revenue_by_month": { "2024-01": 10500.00, "2024-02": 12000.00, "2024-03": 13500.00 }, "top_performing_merchandisers": [ { "id": "123", "count": 45, "total_value": 25000.00 }, { "id": "456", "count": 38, "total_value": 22000.00 } ] } } }