Amplitude Integration
Connect Amplitude to capture analytics events during test sessions and align test navigation patterns with real user journeys.
The Amplitude integration connects TestRelic to your Amplitude product analytics workspace, enabling two key capabilities: analytics event capture during test sessions and test navigation alignment with real user journeys.
What this integration enables
| Capability | Where it appears |
|---|---|
| Analytics event capture | Analytics tab in the browser session workspace |
| Journey console | Settings → Integrations → Amplitude → Open console — recent events by Event type, and journeys you define as ordered Journey steps |
| Journey alignment | Test Navigation view — coverage overlay comparing test flows vs. real user flows |
Connecting Amplitude
- Navigate to Settings → Integrations and open the Marketplace tab.
- Click Connect on the Amplitude card.
- Provide:
- API Key — Your Amplitude project API key (the Legacy API Key on the API Keys management page also works)
- Secret Key — Your Amplitude project Secret Key. This is not the same as the API Key; generating it requires the Manager or Admin role in Amplitude, and Amplitude shows it only once.
- Click Test Connection, then Connect.
- Map an app URL per repository (in the repository's Integrations tab → Amplitude). Journeys are scoped to page URLs containing the repo's app host, so events from your other properties don't count toward its coverage.
Once connected, the Amplitude console shows the connection's health. It reads Healthy only when Amplitude accepts the keys for this project. Otherwise it shows Credential rejected; hover over it for the reason: "Invalid credentials", or the HTTP status and Amplitude's own message. A failed Amplitude query in TestRelic also includes Amplitude's reason instead of a bare status code.
Finding your Amplitude credentials
In Amplitude, go to Organization Settings → Projects → [Your Project]. Copy the API Key, and under Secret Key click Generate.
Analytics events in session workspace
When the integration is connected, the Analytics tab in the Browser Session Workspace (see the Cloud Platform section) displays Amplitude events that were fired during the test session.
For each event, you can see:
- Event name — The Amplitude event type.
- Timestamp — When the event was fired during the session.
- Event properties — The properties attached to the event.
- User properties — User properties at the time of the event.
This is useful for verifying that your test actions are triggering the correct analytics events — for example, confirming that a checkout flow fires the Purchase event with the right properties.
Journey alignment in Test Navigation
When Amplitude is connected, the Test Navigation view (Cloud Platform section) adds a journey alignment overlay to the navigation graph. This overlay shows:
- Covered paths — Navigation flows that exist in both your tests and real user journeys in Amplitude.
- Uncovered user journeys — High-traffic user flows observed in Amplitude that are not covered by any test.
- Test-only paths — Navigation flows that exist in tests but have no corresponding Amplitude user journey (potential test over-coverage).
This alignment helps prioritize which flows to add to your test suite next — focusing on the paths your real users take most frequently.
Use journey data for test planning
The Ask AI feature can use the Amplitude journey alignment data as context. Ask: "What are the top 5 user journeys that are not covered by our tests?" to get a prioritized coverage recommendation.
Data scope
The Amplitude integration queries event data at the project level using the Amplitude HTTP API v2. Only event names, timestamps, and properties are retrieved — no personally identifiable information (PII) is used or displayed in the TestRelic platform.