Commerce glossary

Analytics and attribution

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.

Data collectionanalytics.collectShowThe tags, server calls and consent checks that record what visitors do.
Browser tracking scriptsanalytics.collect.browserShowScripts on the storefront that send page views and shopping events to analytics and ad platforms.

How to extend

PartLitestore todayHow to extend
Event analytics taganalytics.collect.browser.event_analytics_tagA product analytics tag records page views and shopper actions in a product analytics tool such as PostHog.
Coremodules/analytics/posthog-pageview.tsx
Event · many
Web analytics taganalytics.collect.browser.web_analytics_tagA web analytics tag sends page views and shopping events from the browser to a web analytics property, such as Google Analytics 4.
Coremodules/analytics/consent-gated-trackers.tsx
Event · many
Ad platform tracking scriptanalytics.collect.browser.ad_pixelAn ad pixel is a script from an ad platform, such as the Meta or TikTok pixel, that reports views, cart adds and purchases back to that platform.
Coremodules/analytics/consent-gated-trackers.tsx
Event · many
Own-domain tracking scriptanalytics.collect.browser.own_domain_trackerAn own-domain tracking script is a script served from the store's own domain that records every touchpoint in the vendor's own database.
Plugin
Event · many
Custom taganalytics.collect.browser.custom_pixelA custom tag is a script the merchant pastes in to send storefront events to a tool the store does not ship with.
Plugin
Event · many
Server-side eventsanalytics.collect.serverShowEvents the store's server sends straight to analytics and ad platforms, without relying on the browser.

How to extend

PartLitestore todayHow to extend
Server event forwardinganalytics.collect.server.forwardServer event forwarding sends a shopper event or a purchase from the store's server to PostHog, GA4 and Meta in one call.
Coremodules/analytics/server-forward.ts
Event · many
Server purchase report to ad platformanalytics.collect.server.ad_platform_purchaseA server purchase report sends a purchase from the server to an ad platform's API, such as the Meta Conversions API, with the click id that led to it.
Coremodules/analytics/server-forward.ts
Event · many
Server event to web analyticsanalytics.collect.server.web_analytics_eventA server analytics event records an event, such as a purchase, in a web analytics property from the server, as the GA4 Measurement Protocol does.
Coremodules/analytics/server-forward.ts
Event · many
Event deduplication idanalytics.collect.server.event_dedupA deduplication id is the same event id sent with the browser pixel event and the server event so the ad platform counts the purchase once.
Coremodules/analytics/server-forward.ts
Event · many
Bot filteranalytics.collect.server.bot_filterA bot filter drops requests from crawlers and repeat hits before a page view or click is counted.
Coremodules/analytics/engagement-guard.ts
Event · many
Product view counteranalytics.collect.server.view_counterA product view counter adds one to a product's stored page views each time a counted visitor opens it.
Coremodules/analytics/product-engagement.ts
Event · many
Consentanalytics.collect.consentShowThe shopper's cookie choice and the rules that hold tags back until they agree.

How to extend

  • Core onlyConsent is a legal gate every tag passes through, so it stays one core check.
PartLitestore todayHow to extend
Cookie banneranalytics.collect.consent.cookie_bannerA cookie banner asks the shopper which cookie groups to allow, such as analytics and marketing, and stores the answer with its time.
Coremodules/analytics/cookie-consent.tsx
Core only
Consent-gated tagsanalytics.collect.consent.gated_loadingConsent gating loads an analytics or ad tag only after the shopper has allowed that tag's cookie group.
Coremodules/analytics/consent-gated-trackers.tsx
Core only
Consent signals to platformsanalytics.collect.consent.consent_signalsConsent signals pass the shopper's choice to Google or other platforms, as in Google Consent Mode, so they adjust what they store.
Plugin
Core only
Attributionanalytics.attributionShowHow a sale is credited to the channel, campaign or ad that led to it.
Source captureanalytics.attribution.captureShowRecording where a visitor came from so the order carries it.

How to extend

  • Core onlyThe source captured at the store's front door is read by checkout and by every report, so one core capture step owns it.
PartLitestore todayHow to extend
Campaign URL tag captureanalytics.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.
Coreproxy.ts
Core only
Ad click id captureanalytics.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.
Coreproxy.ts
Core only
Internal source taganalytics.attribution.capture.internal_refAn internal source tag records which store link, feed or tracked link a visitor clicked before buying.
Coreproxy.ts
Core only
Order source labelanalytics.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.
Coremodules/analytics/attribution.ts
Core only
Attribution modelsanalytics.attribution.modelShowThe rule that splits credit for a sale between the touchpoints before it.

How to extend

  • ProviderMany side by sideattribution modelFurther models read the same captured touchpoints and orders and show their credit side by side with the built-in one.
PartLitestore todayHow to extend
Last clickanalytics.attribution.model.last_clickLast-click attribution gives all credit for a sale to the most recent tracked click before it.
Coreproxy.ts
Provider · many
Attribution windowanalytics.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.
Coreproxy.ts
Provider · many
First clickanalytics.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
Linearanalytics.attribution.model.linearLinear attribution splits credit for a sale equally across every tracked click before it.
Plugin
Provider · many
Position-basedanalytics.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 modelanalytics.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 viewsanalytics.attribution.model.unclicked_viewUnclicked-view credit counts an ad that was shown but not clicked before a sale.
Plugin
Provider · many
Order source questionanalytics.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
Metricsanalytics.metricShowThe numbers a store owner reads, each calculated from orders, visits or ad spend.

How to extend

  • Assistant toolMany side by sidegetRevenuegetGrowthgetConversionFunnelMetrics are read through the assistant's read tools, and a plugin adds a metric as another read tool.
PartLitestore todayHow to extend
Revenueanalytics.metric.revenueRevenue is the money captured from paid orders in a period, net of refunds, taken from the payment ledger.
Coremodules/orders/ledger-revenue.ts
Assistant tool · many
Average order valueanalytics.metric.average_order_valueAverage order value is revenue in a period divided by the number of paid orders in it.
Coremodules/orders/ledger-revenue.ts
Assistant tool · many
Conversion rateanalytics.metric.conversion_rateConversion rate is the share of visitors or carts in a period that ended in a paid order.
Coremodules/analytics/queries.ts
Assistant tool · many
Repeat purchase rateanalytics.metric.repeat_rateRepeat purchase rate is the share of customers who placed more than one paid order.
Coremodules/analytics/queries.ts
Assistant tool · many
Lifetime revenue per customeranalytics.metric.lifetime_revenue_per_customerLifetime revenue per customer is the total revenue a customer, or the average customer in a group, has brought in over time.
Coremodules/analytics/queries.ts
Assistant tool · many
Sessionsanalytics.metric.sessionsSessions counts separate visits to the storefront in a period, read from the analytics tool that recorded them.
Planned
Assistant tool · many
Marketing spend per new customeranalytics.metric.spend_per_new_customerSpend per new customer is marketing spend in a period divided by the number of new customers gained in it.
Plugin
Assistant tool · many
Ad revenue per ad spendanalytics.metric.ad_revenue_per_spendAd revenue per spend is the revenue credited to an ad, campaign or channel divided by what was spent on it.
Plugin
Assistant tool · many
Total revenue per marketing spendanalytics.metric.revenue_per_marketing_spendRevenue per marketing spend is total store revenue in a period divided by total marketing spend in the same period, with no attribution.
Plugin
Assistant tool · many
Margin after costsanalytics.metric.margin_after_costsMargin after costs is revenue minus product cost, shipping, payment fees and marketing spend.
Plugin
Assistant tool · many
Reportsanalytics.reportShowThe tables, funnels and summaries the numbers are shown in.

How to extend

  • Assistant toolMany side by sidegetSalesBySourcegetCohortsgetLinkAttributionReports are assistant read tools, so a plugin report is one more read tool.
  • SlotMany side by sideadmin.slot.home.cardsA plugin dashboard card renders in an admin home slot.
PartLitestore todayHow to extend
Sales by sourceanalytics.report.sales_by_sourceA sales-by-source report groups orders and revenue by the source label stored on each order.
Coremodules/analytics/queries.ts
Assistant tool · manySlot · many
Cohort tableanalytics.report.cohortA cohort table groups customers by the month of their first order and shows their repeat rate and revenue in the months after.
Coremodules/analytics/queries.ts
Assistant tool · manySlot · many
Conversion funnelanalytics.report.funnelA conversion funnel counts how many shoppers reached each step from product view to cart, checkout and paid order.
Coremodules/analytics/queries.ts
Assistant tool · manySlot · many
Top productsanalytics.report.top_productsA top products report lists the products with the most units sold or revenue in a period.
Coremodules/analytics/queries.ts
Assistant tool · manySlot · many
Revenue reconciliationanalytics.report.revenue_reconciliationA revenue reconciliation compares order totals with captured payments and lists any order where they differ.
Coremodules/analytics/queries.ts
Assistant tool · manySlot · many
Reports through the assistantanalytics.report.assistant_readThe store assistant answers a question about sales, customers or sources by calling a read tool and showing the result in chat.
Coremodules/assistant/agent-tools.ts
Assistant tool · manySlot · many
Weekly digest emailanalytics.report.weekly_digestA weekly digest is an email sent to the store owner each week with the main numbers for the past seven days.
Corejobs/cron.weekly-digest.tsx
Assistant tool · manySlot · many
Live source readsanalytics.report.live_source_readA live source read fetches traffic or search numbers from the source tool, such as PostHog or Search Console, at the moment a report asks for them.
Planned
Assistant tool · manySlot · many
Custom dashboardanalytics.report.custom_dashboardA custom dashboard is a page of charts and tiles the merchant arranges from chosen metrics.
Plugin
Assistant tool · manySlot · many
Peer benchmarkanalytics.report.benchmarkA peer benchmark compares a store's metrics with the averages of similar stores.
Plugin
Assistant tool · manySlot · many
Spend and alertsanalytics.spendShowAd spend and costs brought in from outside, and messages when a number moves.

How to extend

  • ProviderMany side by sidead spend sourceEach ad platform's spend comes in through its own source provider.
PartLitestore todayHow to extend
Ad spend importanalytics.spend.ad_spend_importAd spend import pulls daily spend, impressions and clicks per campaign from ad platforms such as Meta, Google and TikTok.
Plugin
Provider · many
Cost inputsanalytics.spend.cost_inputsCost inputs hold product costs, shipping costs, payment fees and fixed costs used to calculate profit.
Plugin
Provider · many
Metric alertanalytics.spend.metric_alertA metric alert sends a message when a chosen number crosses a set threshold or changes sharply from its usual level.
Plugin
Provider · many

What the phrases mean

The words apps use for a feature, and the plain parts the feature is made of, in the order they happen.

Phrases left out

These phrases mean different things at different apps, so the glossary doesn't map them.

  • blended ROASSome vendors mean total revenue over all marketing spend (MER), others paid-channel revenue over paid ad spend only.
  • Total ImpactA vendor's own named model that mixes clicks, views and survey answers; it is not one part.
  • single source of truthUsed for any combined dashboard, whatever data it holds.

Sources

The app documentation these parts were checked against.