Skip to Content
GuidesRevenue

Revenue

Revenue answers the question behind every visibility number: does it sell? Skoup reads the store’s orders (Shopify or WooCommerce webhooks, an hourly read for PrestaShop) and attributes each one, last touch, to an AI surface when its referrer, utm_source or ref points at one (ChatGPT, Claude, Gemini, Perplexity…). Five views share that data:

  • Attribution — orders and revenue from AI vs the whole store, by surface and by product, with the change against the previous period.
  • Orders — the AI-attributed orders themselves, one by one, without any customer data.
  • Traffic — the AI referral visits and conversions measured by Skoup Analytics installed on the brand’s site, with the first AI touch of each conversion. It is the only view of a SaaS brand or a physical establishment, which has no store.
  • Subscriptions (SaaS) — the new subscriptions and new MRR read in the brand’s Stripe (read-only restricted key), the part AI brought and, week by week, the new MRR against AI visibility.
  • Correlation — AI visibility and AI revenue side by side, week by week, with the fixes published each week.

I want to…

I want to…Call
Know how much AI sold this quarterGET /v1/brands/{brand}/attribution?market=FR&period=90d
List the orders ChatGPT broughtGET /v1/brands/{brand}/orders?surface=chatgpt
Read the AI traffic the script measuredGET /v1/brands/{brand}/traffic?market=FR
Know which share of the conversions began with an assistantGET /v1/brands/{brand}/traffic?market=FR — read first_touch
Know which share of the orders began with an assistant (store with Skoup Analytics)GET /v1/brands/{brand}/attribution?market=FR — read first_touch
Know how many direct visits land on the pages the assistants citeGET /v1/brands/{brand}/traffic?market=FR — read direct_on_cited
Know how many sign-ups or calls AI brings (SaaS, establishment)GET /v1/brands/{brand}/traffic?market=FR — read ai.key_events and ai.conversion_rate
See whether visibility moves revenueGET /v1/brands/{brand}/correlation?market=FR&category=Gravel
Know how many subscriptions and how much MRR AI brings (SaaS)GET /v1/brands/{brand}/subscriptions?market=FR
Be told of each AI orderorder.attributed

Scope: revenue:read.

Scenario: post every AI sale to Slack

if (event.type === 'order.attributed') { const order = event.data.object await slack.post(`🛒 ${order.ai_surface} brought an order (${order.country})`) }

WooCommerce store

Orders arrive by webhook (order.created, order.updated) a few seconds after checkout, and connecting the store imports the last 90 days of paid orders. Only paid orders count (processing, completed): an order later cancelled, refunded or failed leaves the revenue, a partial refund is deducted from its total, pending and on-hold change nothing. Every day, Skoup also re-reads the orders modified in the last 48 hours: a delivery the store missed is caught up the next day.

Attribution reads WooCommerce’s native Order Attribution: the referrer, the landing URL and its UTM tags, in the same last-touch order as Shopify. With the Skoup Analytics tag on the store, each order is also joined to its visit, which feeds first_touch.

PrestaShop store

PrestaShop has no webhooks: every hour, Skoup reads again the orders updated in the last three hours, and connecting the store imports the valid orders of the last 90 days. Only valid orders count (a « paid » state in PrestaShop): an order that stops being valid (cancelled, refunded, payment error) leaves the revenue. An order’s country is its delivery address’s when the key opens addresses; otherwise the order counts in the primary market.

PrestaShop keeps no provenance on the order (no referrer, no UTM): a PrestaShop order is attributed to an assistant only through the visit Skoup Analytics saw, and never sends order.attributed.

Pitfalls

  • Attribution is last touch, read from the order itself: a shopper who asked ChatGPT then came back through Google is attributed to Google. The attribution’s first_touch block says the opposite, for the orders Skoup Analytics joined to their visit (Shopify pixel or WooCommerce tag, see Skoup Analytics): orders = joined orders, ai_orders those whose buyer first came through an assistant.
  • No customer data, ever: orders carry a country, lines and amounts — no name, e-mail or address.
  • null before data: attribution totals stay null until the first order, traffic blocks until the script measured a first visit (the current day is never counted), correlation weeks are empty until the first order.
  • The correlation needs the Growth plan or above: on Starter it answers 403 plan_feature_unavailable (test mode keys always reach it). Traffic, attribution and orders are open to every plan.
  • A conversion depends on the brand: conversion_metric is transactions (the script’s purchase events) for a store and key_events (named events the site sends: sign-up, demo, call, booking…) for a SaaS or an establishment. The counted events are chosen in the app (Settings › Integrations › Skoup Analytics › Key events), every named event by default. A site that never sends the metric returns conversion_rate: null, never 0.
  • conversion_rate divides visits, not events: it is the share of the sessions that converted at least once (converted_sessions ÷ sessions); a visitor who clicks « Book » twice counts twice in key_events, once in converted_sessions. It is null while the converted sessions are not known over the whole window (days measured before October 14, 2026, a Google Analytics property where several key events are chosen among others).
  • first_touch is not ai: the per-surface rows are last touch (the visit that converted); first_touch counts the conversions whose visitor first came through an assistant within the last window_days days, even if they came back through Google. The two never add up. Attribution, orders and correlation only exist for a store: elsewhere they answer 403 capability_unavailable.
  • A subscription is attributed to AI only if its provenance is in Stripe: Skoup reads the metadata of the subscription, then of the customer — keys referrer, utm_source or landing_url (prefixed skoup_ if you want them apart). With Stripe Checkout, pass them in subscription_data[metadata]. Without them the subscription counts in the total but never in the AI share — tracked_share tells how many carry one. MRR is the monthly list price, before discounts and taxes; a tiered or metered price has no MRR. SaaS brands only (403 capability_unavailable otherwise); weeks is empty without the Growth plan.
  • Test orders are excluded (Shopify). order.attributed is sent once, at creation — a replayed Shopify or WooCommerce webhook never sends it again.
  • A PrestaShop order arrives within the hour, and a partial refund does not change its total (only a fully refunded order leaves the revenue).
  • WooCommerce marks no order as a test: a test order paid on the live store counts until it is cancelled.
  • Importing the history never sends order.attributed: on connection, Skoup takes back the paid orders of the last 90 days of a WooCommerce store and of the last 60 days of a Shopify store (Shopify’s limit without access to the whole history). Only the orders received afterwards fire the event; read the history with GET /orders.
  • direct_on_cited is not added to ai: these are the visits with no referrer and no campaign that landed on a deep page the assistants cited (in the samplings of the period and the 30 days before). An assistant’s app often sends no referrer: part of these visits is theirs, with no telling which. Counted on the script’s days; without any, over Google Analytics’ Direct channel, for a period of 30 days at most on the primary market (its 28-day window, in from / to). null when nobody measured.
  • WooCommerce attribution needs Order Attribution (WooCommerce 8.5 or later, on by default, WooCommerce › Settings › Advanced › Features). Turned off, its orders count in the total, never in the AI share.
Last updated on