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
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.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Queryful","colors":{"primary":"#84C11F","light":"#BBE379","dark":"#567D14"},"logo":{"light":"https://mintcdn.com/queryful/bWGj3e7V6oJUxtc5/logo/docs-logo-light.png?fit=max\u0026auto=format\u0026n=bWGj3e7V6oJUxtc5\u0026q=85\u0026s=a034b7abc6501fb900c0eb690369a0df","dark":"https://mintcdn.com/queryful/bWGj3e7V6oJUxtc5/logo/docs-logo-dark.png?fit=max\u0026auto=format\u0026n=bWGj3e7V6oJUxtc5\u0026q=85\u0026s=485cd150a2e0b8ff662f194b4563cd57"},"favicon":"https://mintcdn.com/queryful/bWGj3e7V6oJUxtc5/favicon.svg?fit=max\u0026auto=format\u0026n=bWGj3e7V6oJUxtc5\u0026q=85\u0026s=d8c4ee7435f964f8cebbd5944fb3bc0e","navbar":{"links":[{"href":"/support","label":"Support"}]},"footer":{"links":[{"header":"Help","items":[{"label":"Contact Support","href":"/support"}]},{"header":"Policies","items":[{"label":"Privacy Policy","href":"/policies/privacy-policy"},{"label":"Terms of Service","href":"/policies/terms-of-service"},{"label":"Data Processing Agreement","href":"/policies/data-processing-agreement"},{"label":"Security Incident Response","href":"/policies/security-incident-response"}]}]},"search":{"prompt":"Search Queryful documentation"},"seo":{},"fonts":{"heading":{"family":"JetBrains Mono"},"body":{"family":"Inter"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"queryful","hasAudioNarration":false,"actualSubdomain":"queryful","customDomains":["docs.queryful.app"],"gitSource":{"type":"github","owner":"ljsstudios","repo":"queryful","deployBranch":"main","contentDirectory":"documentation","isPrivate":true,"mountPath":"","label":"","_id":"6b09a01ef611578228526bfb"},"entitlements":{},"buildId":"6b09a3512af8fdfe8728188b","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"QueryfulQL","count":85},{"language":"default","tag":"Datasets","count":59},{"language":"default","tag":"User Guide","count":24},{"language":"default","tag":"Syntax","count":13},{"language":"default","tag":"Sales","count":11},{"language":"default","tag":"Finance and payments","count":11},{"language":"default","tag":"Linked records","count":11},{"language":"default","tag":"Online store","count":10},{"language":"default","tag":"Schedules","count":9},{"language":"default","tag":"Reports","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"queryfulql/datasets/journey_visits","slug":"/queryfulql/datasets/journey_visits","pageMetadata":{"title":"Customer journey visits","description":"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.","href":"/queryfulql/datasets/journey_visits"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"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.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`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.`}),`\n`,_jsx(Heading,{level:`2`,id:`example`,children:`Example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`FROM`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` journey_visits`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` SHOW journey_visits, orders_influenced`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` GROUP BY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` visit_source`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` SINCE startOfMonth(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`1m) UNTIL today`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` ORDER BY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` journey_visits `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`DESC`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`metrics`,children:`Metrics`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Metric`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`journey_visits`})}),_jsx(_components.td,{children:`Number`}),_jsx(_components.td,{children:`Visits to the store before an order, by the customer who placed it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`orders_influenced`})}),_jsx(_components.td,{children:`Number`}),_jsx(_components.td,{children:`Orders with at least one of these visits before them, each counted once.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`linear_order_value`})}),_jsx(_components.td,{children:`Currency`}),_jsx(_components.td,{children:`Each order’s total split evenly across the visits before it, so every visit gets an equal share (linear attribution).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`visits_per_order`})}),_jsx(_components.td,{children:`Number`}),_jsx(_components.td,{children:`Visits before each order, on average.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`dimensions`,children:`Dimensions`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Dimension`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`visit_source`})}),_jsx(_components.td,{children:`Where the visit came from, such as google or an email.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`visit_source_type`})}),_jsx(_components.td,{children:`The kind of source: search, social, email, direct and so on.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`visit_landing_page`})}),_jsx(_components.td,{children:`The first page of the store the visit opened.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`visit_referrer_url`})}),_jsx(_components.td,{children:`The page the visit came from.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`visit_utm_source`})}),_jsx(_components.td,{children:`The visit’s UTM source.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`visit_utm_medium`})}),_jsx(_components.td,{children:`The visit’s UTM medium.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`visit_utm_campaign`})}),_jsx(_components.td,{children:`The visit’s UTM campaign.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`visit_marketing_event`})}),_jsx(_components.td,{children:`The marketing activity the visit came from.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`visit_position`})}),_jsx(_components.td,{children:`Where the visit falls in the order’s journey: First visit, Middle visit, Last visit, or Only visit when there was one.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`days_before_order`})}),_jsx(_components.td,{children:`Whole days between the visit and the order: 0 for a visit on the day.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`order_name`})}),_jsx(_components.td,{children:`The order the visit came before.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`filters`,children:`Filters`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Filter`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`visit_source_type`})}),_jsx(_components.td,{children:`Text`}),_jsx(_components.td,{children:`The kind of source: search, social, email, direct and so on.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`visit_landing_page`})}),_jsx(_components.td,{children:`Text`}),_jsx(_components.td,{children:`The first page of the store the visit opened.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`visit_referrer_url`})}),_jsx(_components.td,{children:`Text`}),_jsx(_components.td,{children:`The page the visit came from.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`visit_utm_source`})}),_jsx(_components.td,{children:`Text`}),_jsx(_components.td,{children:`The visit’s UTM source.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`visit_utm_medium`})}),_jsx(_components.td,{children:`Text`}),_jsx(_components.td,{children:`The visit’s UTM medium.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`visit_marketing_event`})}),_jsx(_components.td,{children:`Text`}),_jsx(_components.td,{children:`The marketing activity the visit came from.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`order_name`})}),_jsx(_components.td,{children:`Text`}),_jsx(_components.td,{children:`The order the visit came before.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`visit_source`})}),_jsx(_components.td,{children:`Text`}),_jsx(_components.td,{children:`Where the visit came from.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`visit_utm_campaign`})}),_jsx(_components.td,{children:`Text`}),_jsx(_components.td,{children:`The visit’s UTM campaign.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`visit_position`})}),_jsx(_components.td,{children:`Text`}),_jsx(_components.td,{children:`First visit, Middle visit, Last visit or Only visit.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`linked-records`,children:`Linked records`}),`\n`,_jsxs(_components.p,{children:[`Fields of the records this dataset reaches can be shown, grouped by and filtered on, written with a dot after the record (for example `,_jsx(_components.code,{children:`order.name`}),`). Each record’s page lists its fields.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Write`}),_jsx(_components.th,{children:`Record`}),_jsx(_components.th,{children:`Reached through`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`order.\u003cfield>`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/queryfulql/records/order`,children:`Order`})}),_jsx(_components.td,{children:`Order`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`order.customer.\u003cfield>`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/queryfulql/records/customer`,children:`Customer`})}),_jsx(_components.td,{children:`Order › Customer`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`order.customer.company.\u003cfield>`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/queryfulql/records/company`,children:`Company`})}),_jsx(_components.td,{children:`Order › Customer › Company`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`order.company.\u003cfield>`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/queryfulql/records/company`,children:`Company`})}),_jsx(_components.td,{children:`Order › Company`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`order.company_location.\u003cfield>`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/queryfulql/records/company_location`,children:`Company location`})}),_jsx(_components.td,{children:`Order › Company location`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`order.company_location.company.\u003cfield>`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/queryfulql/records/company`,children:`Company`})}),_jsx(_components.td,{children:`Order › Company location › Company`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`order.location.\u003cfield>`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/queryfulql/records/location`,children:`Location`})}),_jsx(_components.td,{children:`Order › Location`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`order.market.\u003cfield>`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/queryfulql/records/market`,children:`Market`})}),_jsx(_components.td,{children:`Order › Market`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`shop.\u003cfield>`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/queryfulql/records/shop`,children:`Store`})}),_jsx(_components.td,{children:`Store`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`related-datasets`,children:`Related datasets`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/queryfulql/datasets/customers`,children:`Customers`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/queryfulql/datasets/companies`,children:`Companies`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/queryfulql/datasets/segments`,children:`Customer segments`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/queryfulql/datasets/customer_addresses`,children:`Customer addresses`})}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Customer journey visits","description":"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.","href":"/queryfulql/datasets/journey_visits"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Example","slug":"example","depth":2,"children":[]},{"title":"Metrics","slug":"metrics","depth":2,"children":[]},{"title":"Dimensions","slug":"dimensions","depth":2,"children":[]},{"title":"Filters","slug":"filters","depth":2,"children":[]},{"title":"Linked records","slug":"linked-records","depth":2,"children":[]},{"title":"Related datasets","slug":"related-datasets","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"queryful","siteName":"Queryful","title":"Customer journey visits - Queryful","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-27T15:31:44.641Z","originalFileLocation":"queryfulql/datasets/journey_visits.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"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.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Queryful\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/queryful/HuIJlyPoWOxh8H5k/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/queryful/HuIJlyPoWOxh8H5k/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/queryful/HuIJlyPoWOxh8H5k/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/queryful/HuIJlyPoWOxh8H5k/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/queryful/HuIJlyPoWOxh8H5k/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/queryful/HuIJlyPoWOxh8H5k/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/queryful/HuIJlyPoWOxh8H5k/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/queryful/HuIJlyPoWOxh8H5k/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/queryful/HuIJlyPoWOxh8H5k/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Customer journey visits - Queryful\">\u003cmeta data-mint-head property=\"og:description\" content=\"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.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Queryful\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.queryful.app/queryfulql/datasets/journey_visits\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://queryful.mintlify.site/_mintlify/api/og/v2?division=Customers\u0026amp;title=Customer+journey+visits\u0026amp;description=Every+visit+to+the+store+before+each+order%2C+by+the+order+day%3A+visits%2C+orders+influenced+and+order+value+split+evenly+across+visits+%28linear+attribution%29%2C+by+sour\u0026amp;theme=bb89f7701192a91b2956be50\u0026amp;signature=90622d3ff8a5c05ba547bf275748046dd8e42cb45354f41e259f7751282e5a2f\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Customer journey visits - Queryful\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"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.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://queryful.mintlify.site/_mintlify/api/og/v2?division=Customers\u0026amp;title=Customer+journey+visits\u0026amp;description=Every+visit+to+the+store+before+each+order%2C+by+the+order+day%3A+visits%2C+orders+influenced+and+order+value+split+evenly+across+visits+%28linear+attribution%29%2C+by+sour\u0026amp;theme=bb89f7701192a91b2956be50\u0026amp;signature=90622d3ff8a5c05ba547bf275748046dd8e42cb45354f41e259f7751282e5a2f\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/queryful/HuIJlyPoWOxh8H5k/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Queryful\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#84C11F\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.queryful.app/queryfulql/datasets/journey_visits\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/queryfulql/datasets/journey_visits.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.queryful.app/#organization\",\"name\":\"Queryful\",\"url\":\"https://docs.queryful.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/queryful/bWGj3e7V6oJUxtc5/logo/docs-logo-light.png?fit=max\u0026auto=format\u0026n=bWGj3e7V6oJUxtc5\u0026q=85\u0026s=a034b7abc6501fb900c0eb690369a0df\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.queryful.app#website\",\"name\":\"Queryful\",\"url\":\"https://docs.queryful.app\",\"publisher\":{\"@id\":\"https://docs.queryful.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.queryful.app/queryfulql/datasets/journey_visits#webpage\",\"url\":\"https://docs.queryful.app/queryfulql/datasets/journey_visits\",\"name\":\"Customer journey visits\",\"description\":\"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.\",\"dateModified\":\"2026-11-27T15:31:44.641Z\",\"isPartOf\":{\"@id\":\"https://docs.queryful.app#website\"},\"breadcrumb\":{\"@id\":\"https://docs.queryful.app/queryfulql/datasets/journey_visits#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.queryful.app/queryfulql/datasets/journey_visits#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Datasets\",\"item\":\"https://docs.queryful.app/queryfulql/datasets/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Customers\",\"item\":\"https://docs.queryful.app/queryfulql/datasets/customers\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Customer journey visits\",\"item\":\"https://docs.queryful.app/queryfulql/datasets/journey_visits\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.queryful.app/queryfulql/datasets/journey_visits#article\",\"headline\":\"Customer journey visits\",\"name\":\"Customer journey visits\",\"description\":\"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.\",\"url\":\"https://docs.queryful.app/queryfulql/datasets/journey_visits\",\"mainEntityOfPage\":{\"@id\":\"https://docs.queryful.app/queryfulql/datasets/journey_visits#webpage\"},\"dateModified\":\"2026-11-27T15:31:44.641Z\",\"publisher\":{\"@id\":\"https://docs.queryful.app/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.queryful.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Queryful\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Queryful\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/queryfulql/datasets/journey_visits.md","siteName":"Queryful","nav":{"global":null,"tabs":[{"tab":"User Guide","pages":[{"title":"User Guide","href":"/user-guide/getting-started"}]},{"tab":"QueryfulQL","groups":[{"group":"Introduction","icon":"book-open","pages":[{"title":"QueryfulQL","href":"/queryfulql/overview"}]},{"group":"Syntax","icon":"code","pages":[{"title":"Overview","href":"/queryfulql/syntax/overview"},{"title":"FROM and SHOW","href":"/queryfulql/syntax/from-and-show"},{"title":"WHERE","href":"/queryfulql/syntax/where"},{"title":"GROUP BY","href":"/queryfulql/syntax/group-by"},{"title":"TIMESERIES","href":"/queryfulql/syntax/timeseries"},{"title":"SINCE, UNTIL and DURING","href":"/queryfulql/syntax/since-until-during"},{"title":"COMPARE TO","href":"/queryfulql/syntax/compare-to"},{"title":"HAVING","href":"/queryfulql/syntax/having"},{"title":"ORDER BY","href":"/queryfulql/syntax/order-by"},{"title":"LIMIT","href":"/queryfulql/syntax/limit"},{"title":"WITH","href":"/queryfulql/syntax/with"},{"title":"VISUALIZE","href":"/queryfulql/syntax/visualize"},{"title":"Linked records","href":"/queryfulql/syntax/linked-records"}]},{"group":"Datasets","icon":"database","pages":[{"title":"Overview","href":"/queryfulql/datasets/overview"},{"group":"Sales","pages":[{"title":"Sales","href":"/queryfulql/datasets/sales"},{"title":"Orders","href":"/queryfulql/datasets/orders"},{"title":"Order line items","href":"/queryfulql/datasets/order_lines"},{"title":"Returns","href":"/queryfulql/datasets/returns"},{"title":"Refunds","href":"/queryfulql/datasets/refunds"},{"title":"Restocks","href":"/queryfulql/datasets/refund_lines"},{"title":"Write-offs","href":"/queryfulql/datasets/sale_write_offs"},{"title":"Sales taxes","href":"/queryfulql/datasets/sales_taxes"},{"title":"Agentic sales","href":"/queryfulql/datasets/agentic_sales"},{"title":"Products bought together","href":"/queryfulql/datasets/product_pairs"},{"title":"Profitability","href":"/queryfulql/datasets/profitability"}]},{"group":"Discounts and checkouts","pages":[{"title":"Discounts","href":"/queryfulql/datasets/discounts"},{"title":"Discount catalogue","href":"/queryfulql/datasets/discount_catalog"},{"title":"Abandoned checkouts","href":"/queryfulql/datasets/abandoned_checkouts"},{"title":"Draft orders","href":"/queryfulql/datasets/draft_orders"}]},{"group":"Customers","pages":[{"title":"Customers","href":"/queryfulql/datasets/customers"},{"title":"Customer addresses","href":"/queryfulql/datasets/customer_addresses"},{"title":"Customer segments","href":"/queryfulql/datasets/segments"},{"title":"Companies","description":"B2B orders by company and location: companies ordering, orders, order value and average order value.","href":"/queryfulql/datasets/companies"},{"title":"Customer journey visits","href":"/queryfulql/datasets/journey_visits"}]},{"group":"Products and subscriptions","pages":[{"title":"Products","description":"The product catalogue today, one row per product: products, variants, those missing a cost, average price and stock value at price and at cost, by vendor, type, status, tag, collection and category.","href":"/queryfulql/datasets/products"},{"title":"Price lists","href":"/queryfulql/datasets/price_lists"},{"title":"Selling plans","href":"/queryfulql/datasets/subscription_plans"},{"title":"Subscriptions","href":"/queryfulql/datasets/subscriptions"}]},{"group":"Inventory","pages":[{"title":"Inventory","href":"/queryfulql/datasets/inventory"},{"title":"Inventory adjustments","href":"/queryfulql/datasets/inventory_adjustment_history"},{"title":"Inventory transfers","href":"/queryfulql/datasets/inventory_transfers"},{"title":"Inventory shipments","href":"/queryfulql/datasets/inventory_shipments"},{"title":"Received items","href":"/queryfulql/datasets/inventory_shipment_received_items"},{"title":"Purchase orders","href":"/queryfulql/datasets/inventory_purchase_orders"}]},{"group":"Fulfillment and shipping","pages":[{"title":"Fulfillments","href":"/queryfulql/datasets/fulfillments"},{"title":"Fulfillment backlog","href":"/queryfulql/datasets/fulfillment_orders"},{"title":"Shipping labels","href":"/queryfulql/datasets/shipping_labels"},{"title":"Shipping methods","href":"/queryfulql/datasets/shipping_methods"}]},{"group":"Finance and payments","pages":[{"title":"Payments","href":"/queryfulql/datasets/payments"},{"title":"Payment attempts","href":"/queryfulql/datasets/payment_attempts"},{"title":"Payouts","href":"/queryfulql/datasets/payouts"},{"title":"Payout transactions","href":"/queryfulql/datasets/balance_transactions"},{"title":"Payments balance","href":"/queryfulql/datasets/payments_balance"},{"title":"Disputes","href":"/queryfulql/datasets/disputes"},{"title":"Chargebacks","href":"/queryfulql/datasets/chargebacks"},{"title":"Receivables","href":"/queryfulql/datasets/receivables"},{"title":"Gift cards","href":"/queryfulql/datasets/gift_cards"},{"title":"Store credit transactions","href":"/queryfulql/datasets/store_credit_transactions"},{"title":"Store credit balance","href":"/queryfulql/datasets/store_credit_summaries"}]},{"group":"Online store","pages":[{"title":"Sessions","href":"/queryfulql/datasets/sessions"},{"title":"Referrers","href":"/queryfulql/datasets/session_referrers"},{"title":"UTM sessions","href":"/queryfulql/datasets/utm_sessions"},{"title":"Product page visits","href":"/queryfulql/datasets/product_sessions"},{"title":"Searches","href":"/queryfulql/datasets/searches"},{"title":"Search queries","href":"/queryfulql/datasets/search_queries"},{"title":"Search conversions","href":"/queryfulql/datasets/search_conversions"},{"title":"Product recommendations","href":"/queryfulql/datasets/product_recommendations"},{"title":"Recommendation conversions","href":"/queryfulql/datasets/product_recommendation_conversions"},{"title":"Web performance","href":"/queryfulql/datasets/web_performance"}]},{"group":"Marketing","pages":[{"title":"Marketing attribution","href":"/queryfulql/datasets/marketing_attribution"},{"title":"Marketing spend","href":"/queryfulql/datasets/marketing_spend"},{"title":"Marketing performance","href":"/queryfulql/datasets/marketing_performance"}]}]},{"group":"Linked records","icon":"link","pages":[{"title":"Linked records","href":"/queryfulql/records/overview"},{"title":"Product","href":"/queryfulql/records/product"},{"title":"Variant","href":"/queryfulql/records/variant"},{"title":"Order","href":"/queryfulql/records/order"},{"title":"Customer","href":"/queryfulql/records/customer"},{"title":"Company","href":"/queryfulql/records/company"},{"title":"Company location","href":"/queryfulql/records/company_location"},{"title":"Location","href":"/queryfulql/records/location"},{"title":"Draft order","href":"/queryfulql/records/draft_order"},{"title":"Market","href":"/queryfulql/records/market"},{"title":"Store","href":"/queryfulql/records/shop"}]},{"group":"Examples","icon":"lightbulb","pages":[{"title":"Examples","href":"/queryfulql/examples"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]},{"tab":"Policies","pages":[{"title":"Policies","href":"/policies/privacy-policy"}]}]},"basePath":"","title":"Customer journey visits - Queryful","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":[],"chunks":[]}