> ## 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.

# Google Analytics 4

> Query users, sessions, events and revenue for a GA4 property live from Explore and AI agents

The Google Analytics 4 [live source](https://docs.lightdash.com/integrations/live-sources) reads users, sessions, events, key events and revenue for one GA4 property.

## Before you start

* **A Google account with access to the property.**

## Connect Google Analytics 4

[Add a live source](https://docs.lightdash.com/integrations/live-sources/set-up-and-manage.md#connect-a-live-source), select **Google Analytics 4**, click **Continue to Google**, sign in, and pick the property.

![The Add Google Analytics 4 source dialog with the Name field under Details and a Continue to Google button](https://mintcdn.com/lightdash/WuPlti30p6CHhcUC/images/integrations/live-sources/google-analytics-config.png?fit=max\&auto=format\&n=WuPlti30p6CHhcUC\&q=85\&s=2d080c27cb91e720820566ee5377a73e)

## Semantic layer

### Report

Users, sessions, page views, events, key events and revenue for one Google Analytics 4 property. Dates are in the property time zone and money is in the property currency

| Field | Description |
| - | - |
|  Date | Day of the activity, in the property time zone |
|  Date week | Week of the activity, shown as its Monday (ISO week) in the property time zone |
|  Date month | Month of the activity, shown as its first day in the property time zone |
|  Date year | Year of the activity, shown as its first day in the property time zone |
|  Country | Country the user was in, based on their IP address |
|  City | City the user was in, based on their IP address |
|  Device category | Type of device: `desktop`, `mobile` or `tablet` |
|  Platform | Platform the site or app ran on: web, Android or iOS |
|  Session source | Where the session came from, such as google or (direct) |
|  Session medium | How the session arrived, such as `organic`, `cpc` or `referral` |
|  Session campaign | Campaign that brought the session, from `utm_campaign` or Google Ads |
|  Session default channel group | Google's default channel for the session, such as Organic Search, Direct or Paid Social, based mainly on source and medium |
|  First user source | Where the user first came from when they first visited |
|  Landing page | Page path of the first page viewed in the session |
|  Page path | Path of a page viewed, the part of the URL between the domain and the query string |
|  Event name | Name of the event, such as `page_view`, `session_start`, `purchase` or a custom event |
|  New or returning | Whether the user was new (no earlier sessions) or returning |
|  Item name | Name of the ecommerce item |
|  Active users | Number of distinct users who engaged with the site or app |
|  Total users | Number of distinct users who logged at least one event, engaged or not |
|  New users | Number of users who visited the site or opened the app for the first time |
|  Sessions | Number of sessions that started |
|  Engaged sessions | Number of sessions that lasted over 10 seconds, had a key event, or had two or more page or screen views |
|  Engagement rate | Engaged sessions as a share of all sessions |
|  Average session duration (s) | Average length of a session, in seconds |
|  Views | Number of web pages and app screens viewed, repeat views included |
|  Event count | Number of events logged |
|  Key events | Number of events marked as key events (formerly called conversions) |
|  Total revenue | Revenue from purchases, subscriptions and ads, minus refunds, in the property currency |
|  Ecommerce purchases | Number of completed purchases |
|  Item revenue | Revenue from items sold, minus refunds and excluding tax and shipping, in the property currency |
|  Items purchased | Number of item units purchased |
|  Items viewed | Number of item units viewed |

Your property's custom dimensions, custom metrics and key events also show up as fields.

## Limits

| Limit | Value |
| - | - |
| Default date range | Last 28 days, when the query has no filter on Date |
| Most rows per query | 24,999 |
| Dimensions per query | 9 |
| Metrics per query | 10 |


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