> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lightdash.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Amplitude

> Query Amplitude events, users, funnels, retention and sessions live from Explore and AI agents

The Amplitude [live source](https://docs.lightdash.com/integrations/live-sources) reads the events, active users, funnels, retention and sessions of one Amplitude project, as Amplitude computes them.

## Before you start

* **API key and secret key**, from **Settings** → **Organization settings** → **Projects** in Amplitude. Only a Manager or Admin can create a secret key, and Amplitude shows it once.

## Connect Amplitude

[Add a live source](https://docs.lightdash.com/integrations/live-sources/set-up-and-manage.md#connect-a-live-source), select **Amplitude**, choose the **Data region**, and enter the **API key** and **Secret key**.

![The Add Amplitude source dialog with Data region set to US or EU, API key and Secret key fields and a Test button under Authentication, and Name under Details](https://mintcdn.com/lightdash/WuPlti30p6CHhcUC/images/integrations/live-sources/amplitude-config.png?fit=max\&auto=format\&n=WuPlti30p6CHhcUC\&q=85\&s=6eda91dbefa28fa56a6c56c89341c98f)

## Semantic layer

### Events

Event counts and unique users per event in one Amplitude project, by day, week or month

| Field | Description |
| - | - |
|  Date | Day of the events, in the project time zone |
|  Date week | Week of the activity, shown as its first day in the project time zone. Weeks start on the day Amplitude's project settings use |
|  Date month | Month of the activity, shown as its first day in the project time zone |
|  Event | Name of the event, as tracked in Amplitude |
|  Country | Country of the user, as Amplitude resolves it from location data |
|  Region | Region or state of the user |
|  City | City of the user |
|  Platform | Platform the user was on, such as Web, iOS or Android |
|  OS | Operating system and version of the user's device |
|  Device type | Device model, such as Apple iPhone |
|  Language | Language the user's device or browser is set to |
|  App version | Version of the app the user was on |
|  Event count | Number of times the event was triggered (Amplitude's "totals") |
|  Unique users | Number of distinct users who triggered the event at least once in the period (Amplitude's "uniques") |
|  Events per user | Average number of times each user triggered the event in the period (Amplitude's "average") |
|  Share of active users | Users who triggered the event as a share of all active users in the period (Amplitude's "% DAU") |

### Active users

Active and new users in one Amplitude project, by day, week or month

| Field | Description |
| - | - |
|  Date | Day of the activity, in the project time zone |
|  Date week | Week of the activity, shown as its first day in the project time zone. Weeks start on the day Amplitude's project settings use |
|  Date month | Month of the activity, shown as its first day in the project time zone |
|  Country | Country of the user, as Amplitude resolves it from location data |
|  Region | Region or state of the user |
|  City | City of the user |
|  Platform | Platform the user was on, such as Web, iOS or Android |
|  OS | Operating system and version of the user's device |
|  Device type | Device model, such as Apple iPhone |
|  Language | Language the user's device or browser is set to |
|  App version | Version of the app the user was on |
|  Active users | Number of distinct users who triggered at least one active event in the period |
|  New users | Number of users whose first event in the project was in the period |

### Funnel

A conversion funnel in one Amplitude project: how many users did each step, in order, and how many converted from one step to the next

| Field | Description |
| - | - |
|  Date | Day a user entered the funnel, in the project time zone |
|  Step number | Position of the step in the funnel, starting at 1 |
|  Step event | Event that makes up the step |
|  Conversion window (days) | Number of days a user has to complete the funnel after the first step. Defaults to 30 |
|  Country | Country of the user, as Amplitude resolves it from location data |
|  Region | Region or state of the user |
|  City | City of the user |
|  Platform | Platform the user was on, such as Web, iOS or Android |
|  OS | Operating system and version of the user's device |
|  Device type | Device model, such as Apple iPhone |
|  Language | Language the user's device or browser is set to |
|  App version | Version of the app the user was on |
|  Users | Number of users who reached the step after doing every earlier step in order |
|  Conversion from first step | Users at the step as a share of users at the first step |
|  Conversion from previous step | Users at the step as a share of users at the previous step |
|  Average time to step (seconds) | Average time, in seconds, from the previous step to this one, for users who reached it |

### Retention

Retention in one Amplitude project: of the users who started in each cohort, how many came back on each later day, week or month

| Field | Description |
| - | - |
|  Cohort | Day the users in the cohort did the start event, in the project time zone |
|  Cohort week | Week the users in the cohort did the start event, shown as its first day in the project time zone |
|  Cohort month | Month the users in the cohort did the start event, shown as its first day in the project time zone |
|  Days after start | Days since the start event; 0 is the day of the start event itself |
|  Weeks after start | Weeks since the start event; 0 is the week of the start event itself |
|  Months after start | Months since the start event; 0 is the month of the start event itself |
|  Start event | Event that puts a user into a cohort. Defaults to new users |
|  Return event | Event that counts as coming back. Defaults to any active event |
|  Retained users | Number of users in the cohort who did the return event in the period |
|  Cohort users | Number of users in the cohort who could have come back in the period |
|  Retention rate | Retained users as a share of cohort users |

### Sessions

Average session length and sessions per active user in one Amplitude project, per day

| Field | Description |
| - | - |
|  Date | Day of the sessions, in the project time zone |
|  Average session length (seconds) | Average length of the day's sessions, in seconds |
|  Sessions per user | Average number of sessions per active user in the day |

## Limits

| Limit | Value |
| - | - |
| Default date range | Last 30 days, when the query has no date filter |
| Most rows per query | 5,000 |
| Values of a grouped user property | 1,000 per event |
| Query cost per hour | Set by Amplitude per project. Long date ranges with many events and groupings reach it sooner |
| Events per query | Up to 10 |
| Funnel steps | 2 to 10 |
| Funnel conversion window | Up to 90 days, or 366 on organizations with an extended window. 30 by default |
| Events × metrics per query | Up to 20 on Events |
| User properties to group by | 1. Funnel can only filter by them |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.