Analytics Integration

Enrich insights with usage statistics from Amplitude, Mixpanel, or other MCP-compatible analytics tools.

Connect your analytics tool (Amplitude, Mixpanel, PostHog, or any MCP-compatible provider) to enrich insights with usage statistics. ProductSights maps product areas from feedback to analytics events and surfaces DAU, trends, and adoption data in the triage pipeline and insight detail view.

How it works

  1. Event catalog — ProductSights fetches your analytics event taxonomy daily and caches it.
  2. Event mapping — When an insight is triaged, the AI maps product areas (e.g., "export", "dashboard") to relevant analytics events. Manual mappings override AI mappings.
  3. Usage stats — ProductSights queries event statistics (unique users, daily volume, trend) and attaches them to the insight.
  4. Priority scoring — Insights affecting high-usage features get a priority boost; growing trends receive additional weight.

Setup

  1. Go to Settings → Analytics
  2. Click Add Integration
  3. Choose your provider (Amplitude, Mixpanel, PostHog, or Custom MCP)
  4. Configure the MCP server:
    • Server command: e.g., npx
    • Server arguments: e.g., @amplitude/mcp-server
    • List events tool: Tool name for fetching the event catalog (e.g., list_events)
    • Query stats tool: Tool name for querying event statistics (e.g., query_event_stats)
    • Environment variables: JSON object with API keys (e.g., {"AMPLITUDE_API_KEY": "your-key"})
  5. Click Create
  6. Click Test to verify the connection
  7. Click Sync to refresh the event catalog

MCP server requirements

Your analytics MCP server must expose two tools:

ToolPurposeExpected argumentsExpected response
list_eventsFetch event taxonomy{}JSON array of {eventName, description?, displayName?, category?, volume?}
query_event_statsQuery usage stats{eventNames: string[], timeRange: string}JSON with events array and optional aggregated object

Manual event mapping

You can override AI mappings in Settings → Analytics by editing an integration's mappings. Map product areas (e.g., "export") to specific event names from your catalog. Manual mappings always take precedence over AI-generated ones.

Refresh analytics

  • Single insight: Open an insight and click Refresh in the Usage Analytics card.
  • Bulk: Use the bulk refresh API to re-fetch analytics for multiple insights.

API endpoints

EndpointMethodDescription
/api/analytics-integrationsGETList integrations
/api/analytics-integrationsPOSTCreate integration
/api/analytics-integrations/[id]GET, PATCH, DELETEManage integration
/api/analytics-integrations/[id]/testPOSTTest connection
/api/analytics-integrations/[id]/sync-catalogPOSTManual catalog sync
/api/analytics-integrations/[id]/catalogGETList event catalog
/api/analytics-integrations/[id]/mappingsGET, PUTEvent mappings
/api/insights/[id]/refresh-analyticsPOSTRefresh analytics for one insight
/api/insights/bulk-refresh-analyticsPOSTQueue bulk refresh

Request bodies

PUT /api/analytics-integrations/[id]/mappings — create or update a mapping:

{
  "productArea": "export",
  "themeId": "optional-theme-id",
  "eventNames": ["Export Clicked", "Export Completed"]
}

POST /api/insights/bulk-refresh-analytics — queue refresh for multiple insights:

{
  "insightIds": ["insight-id-1", "insight-id-2"]
}

Docs Chat

Ask about ProductSights

Sign in to chat with our docs assistant

Sign in