Sales Track Live API Docs

Get Analytics

Retrieve comprehensive analytics and performance data for your sales operations.

GET/api/integrations/crm/analytics

How to Integrate at Your Website

Step-by-step guide to integrate analytics and performance data into your CRM or dashboard

1. Get Your API Keys

Contact us to get your API key and secret key for accessing analytics data

2. Use Our Pre-built Components

Download our ready-to-use analytics dashboard components from the UI Components page - just copy and paste!

3. Connect to Your System

Add the API integration code to your dashboard or CRM system using the examples in the right sidebar

4. Display Analytics

Your dashboard will now show real-time analytics, performance metrics, and insights from our system

What You Get

  • Comprehensive overview analytics (merchandisers, stores, visits, orders)
  • Sales performance metrics with revenue tracking and trends
  • Visit analytics with completion rates and status breakdowns
  • Individual and team performance scoring and rankings
  • Revenue analysis by month, merchandiser, and store
  • Top performer identification and benchmarking
  • Real-time data filtering by date ranges and analytics types
  • Ready-to-use dashboard components and charts

Code Examples

GET /api/integrations/crm/analytics
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);

Response Examples

{
  "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
        }
      ]
    }
  }
}

Need Help?