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

# UTM sessions

> Visits and conversion by UTM source, medium and campaign.

Visits and conversion by UTM source, medium and campaign.

## Example

```sql theme={null}
FROM utm_sessions
  SHOW sessions, sessions_that_completed_checkout
  GROUP BY human_or_bot_session
  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. |

## Dimensions

| Dimension | Description |
| - | - |
| `human_or_bot_session` | Human or Bot, as Shopify classes the visit. Shopify's session reports keep Human only. |
| `utm_source` | The link's utm\_source. |
| `utm_medium` | The link's utm\_medium. |
| `utm_campaign` | The link's utm\_campaign. |
| `marketing_channel` | Shopify's marketing channel for the visit. |

## Filters

| Filter | Type | Description |
| - | - | - |
| `utm_source` | Text | The link's utm\_source. |
| `utm_medium` | Text | The link's utm\_medium. |
| `marketing_channel` | Text | Shopify's marketing channel for the visit. |
| `human_or_bot_session` | Text | Human or Bot, as Shopify classes the visit. Shopify's session reports keep Human only. |
| `utm_campaign` | Text | The utm\_campaign. |

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

## Related datasets

* [Sessions](https://docs.queryful.app/queryfulql/datasets/sessions.md)
* [Referrers](https://docs.queryful.app/queryfulql/datasets/session_referrers.md)
* [Product page visits](https://docs.queryful.app/queryfulql/datasets/product_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.