Data integrations
Data integrations overview
Integrate with your analytics platforms to measure routing impact on your KPIs
Connect your analytics platform to export router data and import custom events. Exported data lets you analyze routing performance alongside product metrics. Imported events let you define KPI metrics in Portal and measure how routing decisions affect them.
How it works
Connect your analytics platform
Add your Mixpanel or BigQuery credentials in Portal — open Routers > Metrics and click Set up data integration. The same connection is used for both exporting and importing.
Export router exposure data
When users interact with your router, exposure data (which router, route, and variant was served to which user) is automatically sent to your analytics platform. You can use this data to build dashboards and segment users by their routing assignment. Exposure is recorded for requests to a saved router that carry a user ID, on chat completions, the Responses API, and the Messages API.
Supported platforms
| Platform | Export | Import | Guide |
|---|---|---|---|
| Mixpanel | ✅ | ✅ | Mixpanel integration |
| BigQuery | ✅ | ✅ | BigQuery integration |
Data sync
Both export and import sync automatically approximately every 8 hours. Data is aggregated into hourly buckets — each bucket captures the distinct users, routes, and variants observed during that hour.
What is not exported
Data integrations export routing exposure only. They do not export request logs, prompts, responses, token counts or costs. For usage and cost data, see Usage or query the Usage API.
Next steps
- Set up Mixpanel or BigQuery integration
- Learn how to create custom metrics from your imported events