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

# Sessions

> Online store visits by people: sessions, visitors, bounce rate, cart, checkout and conversion rates, by device, location, referrer and landing page type.

Online store visits by people: sessions, visitors, bounce rate, cart, checkout and conversion rates, by device, location, referrer and landing page type.

## Example

```sql theme={null}
FROM sessions
  SHOW sessions, sessions_that_completed_checkout
  GROUP BY referrer_source
  SINCE startOfMonth(-1m) UNTIL today
  ORDER BY sessions DESC
```

## Metrics

| Metric | Type | Description |
| - | - | - |
| `sessions` | Number | Visits to the online store. Bots count too unless the report keeps Human sessions only. |
| `sessions_that_completed_checkout` | Number | Visits that ended in a purchase. |
| `conversion_rate` | Percent | Visits that ended in a purchase, as a share of visits. |
| `online_store_visitors` | Number | People who visited, counted once per day: over several days, someone who came back on another day counts again. |
| `bounces` | Number | Visits that left after one page. |
| `bounce_rate` | Percent | Visits that left after one page, as a share of visits. |
| `pageviews` | Number | Pages viewed. |
| `pageviews_per_session` | Number | Pages viewed per visit. |
| `average_session_duration` | Number | How long a visit lasts, in seconds. |
| `sessions_with_cart_additions` | Number | Visits where something was added to the cart. |
| `added_to_cart_rate` | Percent | Visits where something was added to the cart, as a share of visits. |
| `sessions_that_reached_checkout` | Number | Visits that reached the checkout. |
| `reached_checkout_rate` | Percent | Visits that reached the checkout, as a share of visits. |
| `checkout_conversion_rate` | Percent | Of the visits that reached the checkout, the share that bought. |
| `revenue_per_session` | Currency | Net sales divided by sessions, store-wide: what each visit is worth. Read it over time, not split by session fields (sales have no device or referrer). |
| `gross_profit_per_session` | Currency | Gross profit divided by sessions, store-wide: what each visit earns after the cost of goods. |

## Dimensions

| Dimension | Description |
| - | - |
| `human_or_bot_session` | Human or Bot, as Shopify classes the visit. Shopify's session reports keep Human only. |
| `session_device_type` | desktop, mobile, tablet and so on. |
| `session_country_code` | The visitor's country, as a code such as GB. |
| `session_region` | The visitor's state, province or region. |
| `session_country` | The visitor's country. |
| `session_city` | The visitor's city. |
| `referrer_name` | The site that sent the visit, such as Google or Facebook. |
| `landing_page_path` | The page the visit started on, such as /products/hat. |
| `referrer_source` | The kind of referral: search, social, email, direct and so on. |
| `referring_channel` | The channel that sent the visit. |
| `landing_page_type` | The kind of page the visit started on: home, product, collection and so on. |

## Filters

| Filter | Type | Description |
| - | - | - |
| `referring_channel` | Text | The channel that sent the visit. |
| `human_or_bot_session` | Text | Human or Bot, as Shopify classes the visit. Shopify's session reports keep Human only. |
| `session_country_code` | Text | The visitor's country code. |
| `session_device_type` | Text | The visitor's device. |
| `session_country` | Text | The visitor's country. |
| `session_region` | Text | The visitor's region. |
| `session_city` | Text | The visitor's city. |
| `referrer_source` | Text | The kind of referral: search, social, email, direct and so on. |
| `referrer_name` | Text | The site that sent the visit. |
| `landing_page_type` | Text | The kind of page the visit started on. |
| `landing_page_path` | Text | The page the visit started on. |

## Linked records

Fields of the records this dataset reaches can be shown, grouped by and filtered on, written with a dot after the record (for example `shop.name`). Each record's page lists its fields.

| Write | Record | Reached through |
| - | - | - |
| `shop.<field>` | [Store](https://docs.queryful.app/queryfulql/records/shop.md) | Store |

> [!NOTE]
>
> Sessions and the other online store datasets come from Shopify's analytics, imported as completed days. Today's figures appear once the day is over.

## Related datasets

* [Referrers](https://docs.queryful.app/queryfulql/datasets/session_referrers.md)
* [Product page visits](https://docs.queryful.app/queryfulql/datasets/product_sessions.md)
* [UTM sessions](https://docs.queryful.app/queryfulql/datasets/utm_sessions.md)
* [Searches](https://docs.queryful.app/queryfulql/datasets/searches.md)
* [Search conversions](https://docs.queryful.app/queryfulql/datasets/search_conversions.md)
* [Product recommendations](https://docs.queryful.app/queryfulql/datasets/product_recommendations.md)
* [Web performance](https://docs.queryful.app/queryfulql/datasets/web_performance.md)
* [Search queries](https://docs.queryful.app/queryfulql/datasets/search_queries.md)
* [Recommendation conversions](https://docs.queryful.app/queryfulql/datasets/product_recommendation_conversions.md)


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