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

# Customer journey visits

> Every visit to the store before each order, by the order day: visits, orders influenced and order value split evenly across visits (linear attribution), by source, source type, landing page, referrer, UTM, marketing event, position in the journey and days before the order.

Every visit to the store before each order, by the order day: visits, orders influenced and order value split evenly across visits (linear attribution), by source, source type, landing page, referrer, UTM, marketing event, position in the journey and days before the order.

## Example

```sql theme={null}
FROM journey_visits
  SHOW journey_visits, orders_influenced
  GROUP BY visit_source
  SINCE startOfMonth(-1m) UNTIL today
  ORDER BY journey_visits DESC
```

## Metrics

| Metric | Type | Description |
| - | - | - |
| `journey_visits` | Number | Visits to the store before an order, by the customer who placed it. |
| `orders_influenced` | Number | Orders with at least one of these visits before them, each counted once. |
| `linear_order_value` | Currency | Each order's total split evenly across the visits before it, so every visit gets an equal share (linear attribution). |
| `visits_per_order` | Number | Visits before each order, on average. |

## Dimensions

| Dimension | Description |
| - | - |
| `visit_source` | Where the visit came from, such as google or an email. |
| `visit_source_type` | The kind of source: search, social, email, direct and so on. |
| `visit_landing_page` | The first page of the store the visit opened. |
| `visit_referrer_url` | The page the visit came from. |
| `visit_utm_source` | The visit's UTM source. |
| `visit_utm_medium` | The visit's UTM medium. |
| `visit_utm_campaign` | The visit's UTM campaign. |
| `visit_marketing_event` | The marketing activity the visit came from. |
| `visit_position` | Where the visit falls in the order's journey: First visit, Middle visit, Last visit, or Only visit when there was one. |
| `days_before_order` | Whole days between the visit and the order: 0 for a visit on the day. |
| `order_name` | The order the visit came before. |

## Filters

| Filter | Type | Description |
| - | - | - |
| `visit_source_type` | Text | The kind of source: search, social, email, direct and so on. |
| `visit_landing_page` | Text | The first page of the store the visit opened. |
| `visit_referrer_url` | Text | The page the visit came from. |
| `visit_utm_source` | Text | The visit's UTM source. |
| `visit_utm_medium` | Text | The visit's UTM medium. |
| `visit_marketing_event` | Text | The marketing activity the visit came from. |
| `order_name` | Text | The order the visit came before. |
| `visit_source` | Text | Where the visit came from. |
| `visit_utm_campaign` | Text | The visit's UTM campaign. |
| `visit_position` | Text | First visit, Middle visit, Last visit or Only visit. |

## 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 `order.name`). Each record's page lists its fields.

| Write | Record | Reached through |
| - | - | - |
| `order.<field>` | [Order](https://docs.queryful.app/queryfulql/records/order.md) | Order |
| `order.customer.<field>` | [Customer](https://docs.queryful.app/queryfulql/records/customer.md) | Order › Customer |
| `order.customer.company.<field>` | [Company](https://docs.queryful.app/queryfulql/records/company.md) | Order › Customer › Company |
| `order.company.<field>` | [Company](https://docs.queryful.app/queryfulql/records/company.md) | Order › Company |
| `order.company_location.<field>` | [Company location](https://docs.queryful.app/queryfulql/records/company_location.md) | Order › Company location |
| `order.company_location.company.<field>` | [Company](https://docs.queryful.app/queryfulql/records/company.md) | Order › Company location › Company |
| `order.location.<field>` | [Location](https://docs.queryful.app/queryfulql/records/location.md) | Order › Location |
| `order.market.<field>` | [Market](https://docs.queryful.app/queryfulql/records/market.md) | Order › Market |
| `shop.<field>` | [Store](https://docs.queryful.app/queryfulql/records/shop.md) | Store |

## Related datasets

* [Customers](https://docs.queryful.app/queryfulql/datasets/customers.md)
* [Companies](https://docs.queryful.app/queryfulql/datasets/companies.md)
* [Customer segments](https://docs.queryful.app/queryfulql/datasets/segments.md)
* [Customer addresses](https://docs.queryful.app/queryfulql/datasets/customer_addresses.md)


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