How a store records visits and orders, credits each sale to the channel or ad that brought it, and turns the numbers into reports on sales, customers and ad spend.
50 parts and 15 phrases. Apps in this area include Triple Whale, Northbeam, Polar Analytics, Google Analytics 4, Shopify Analytics, Lifetimely.
analytics.collectShowThe tags, server calls and consent checks that record what visitors do.analytics.collect.browserShowScripts on the storefront that send page views and shopping events to analytics and ad platforms.How to extend
| Part | Litestore today | How to extend |
|---|---|---|
Core modules/analytics/posthog-pageview.tsx | Event · many | |
Core modules/analytics/consent-gated-trackers.tsx | Event · many | |
Core modules/analytics/consent-gated-trackers.tsx | Event · many | |
Plugin | Event · many | |
Plugin | Event · many |
analytics.collect.serverShowEvents the store's server sends straight to analytics and ad platforms, without relying on the browser.How to extend
| Part | Litestore today | How to extend |
|---|---|---|
Core modules/analytics/server-forward.ts | Event · many | |
Core modules/analytics/server-forward.ts | Event · many | |
Core modules/analytics/server-forward.ts | Event · many | |
Core modules/analytics/server-forward.ts | Event · many | |
Core modules/analytics/engagement-guard.ts | Event · many | |
Core modules/analytics/product-engagement.ts | Event · many |
analytics.collect.consentShowThe shopper's cookie choice and the rules that hold tags back until they agree.How to extend
| Part | Litestore today | How to extend |
|---|---|---|
Core modules/analytics/cookie-consent.tsx | Core only | |
Core modules/analytics/consent-gated-trackers.tsx | Core only | |
Plugin | Core only |
analytics.attributionShowHow a sale is credited to the channel, campaign or ad that led to it.analytics.attribution.captureShowRecording where a visitor came from so the order carries it.How to extend
| Part | Litestore today | How to extend |
|---|---|---|
Campaign URL tag capture analytics.attribution.capture.campaign_url_paramsCampaign tag capture stores the utm_source, utm_medium, utm_campaign, utm_content and utm_term values of the landing URL in first-party cookies. | Core proxy.ts | Core only |
Ad click id capture analytics.attribution.capture.click_idClick id capture stores the ad click id on the landing URL, such as gclid, fbclid, ttclid or msclkid, so the sale can be matched to the ad. | Core proxy.ts | Core only |
Internal source tag analytics.attribution.capture.internal_refAn internal source tag records which store link, feed or tracked link a visitor clicked before buying. | Core proxy.ts | Core only |
Order source label analytics.attribution.capture.order_sourceAn order source label stores one channel name on each order, worked out from its click id, UTM values or internal tag, or direct when there is none. | Core modules/analytics/attribution.ts | Core only |
analytics.attribution.modelShowThe rule that splits credit for a sale between the touchpoints before it.How to extend
attribution modelFurther models read the same captured touchpoints and orders and show their credit side by side with the built-in one.| Part | Litestore today | How to extend |
|---|---|---|
Last click analytics.attribution.model.last_clickLast-click attribution gives all credit for a sale to the most recent tracked click before it. | Core proxy.ts | Provider · many |
Attribution window analytics.attribution.model.windowAn attribution window is the number of days after a click during which a sale is still credited to it, 90 days in Litestore. | Core proxy.ts | Provider · many |
First click analytics.attribution.model.first_clickFirst-click attribution gives all credit for a sale to the first tracked click in the visitor's history. | Plugin | Provider · many |
Linear analytics.attribution.model.linearLinear attribution splits credit for a sale equally across every tracked click before it. | Plugin | Provider · many |
Position-based analytics.attribution.model.position_basedPosition-based attribution gives most credit to the first and last clicks and splits the rest across the clicks between them. | Plugin | Provider · many |
Statistical model analytics.attribution.model.statisticalA statistical model calculates each touchpoint's share of credit from a statistical model fitted to the store's past orders. | Plugin | Provider · many |
Credit for unclicked views analytics.attribution.model.unclicked_viewUnclicked-view credit counts an ad that was shown but not clicked before a sale. | Plugin | Provider · many |
Order source question analytics.attribution.model.order_source_questionAn order source question asks the buyer on the thank-you page how they heard about the store and stores the answer on the order. | Plugin | Provider · many |
analytics.metricShowThe numbers a store owner reads, each calculated from orders, visits or ad spend.How to extend
getRevenuegetGrowthgetConversionFunnelMetrics are read through the assistant's read tools, and a plugin adds a metric as another read tool.| Part | Litestore today | How to extend |
|---|---|---|
Core modules/orders/ledger-revenue.ts | Assistant tool · many | |
Core modules/orders/ledger-revenue.ts | Assistant tool · many | |
Core modules/analytics/queries.ts | Assistant tool · many | |
Core modules/analytics/queries.ts | Assistant tool · many | |
Core modules/analytics/queries.ts | Assistant tool · many | |
Planned | Assistant tool · many | |
Plugin | Assistant tool · many | |
Plugin | Assistant tool · many | |
Plugin | Assistant tool · many | |
Plugin | Assistant tool · many |
analytics.reportShowThe tables, funnels and summaries the numbers are shown in.How to extend
getSalesBySourcegetCohortsgetLinkAttributionReports are assistant read tools, so a plugin report is one more read tool.| Part | Litestore today | How to extend |
|---|---|---|
Core modules/analytics/queries.ts | Assistant tool · manySlot · many | |
Core modules/analytics/queries.ts | Assistant tool · manySlot · many | |
Core modules/analytics/queries.ts | Assistant tool · manySlot · many | |
Core modules/analytics/queries.ts | Assistant tool · manySlot · many | |
Core modules/analytics/queries.ts | Assistant tool · manySlot · many | |
Core modules/analytics/queries.ts | Assistant tool · manySlot · many | |
Core modules/assistant/agent-tools.ts | Assistant tool · manySlot · many | |
Core jobs/cron.weekly-digest.tsx | Assistant tool · manySlot · many | |
Planned | Assistant tool · manySlot · many | |
Plugin | Assistant tool · manySlot · many | |
Plugin | Assistant tool · manySlot · many |
analytics.spendShowAd spend and costs brought in from outside, and messages when a number moves.How to extend
ad spend sourceEach ad platform's spend comes in through its own source provider.| Part | Litestore today | How to extend |
|---|---|---|
Plugin | Provider · many | |
Plugin | Provider · many | |
Plugin | Provider · many |
The words apps use for a feature, and the plain parts the feature is made of, in the order they happen.
| Phrase | Made of |
|---|---|
| server-side tracking | |
| conversions API | |
| CAPI | |
| first-party pixel | |
| UTM tracking | |
| sales by channel | |
| last-click attribution | |
| multi-touch attribution |
Any model that splits credit across more than one click. |
| post-purchase survey | |
| zero-party attribution | |
| ROAS | |
| MER | |
| cohort analysis | |
| profit dashboard | |
| anomaly alerts |
These phrases mean different things at different apps, so the glossary doesn't map them.
The app documentation these parts were checked against.