Your end to end analytics layer.Governed, AI native, expert backed.
For startups without a data team. We turn your production database into a full-stack, token-efficient AI data scientist in four weeks.
Built by data scientists and data engineers from
- Meta
- Amazon
- Airbnb
- Grammarly
Raw production tables
| website_session_id | utm_source | utm_campaign | http_referer | device_type | created_at | user_id | is_repeat_session | utm_content |
|---|---|---|---|---|---|---|---|---|
| 472001 | gsearch | brand | https://www.gsearch.com | mobile | 2015-03-18 11:06:21 | 334911 | 1 | g_ad_2 |
| 472002 | gsearch | nonbrand | https://www.gsearch.com | desktop | 2015-03-18 11:06:38 | 393638 | 0 | g_ad_1 |
| 472013 | NULL | NULL | NULL | mobile | 2015-03-18 11:14:33 | 393648 | 0 | NULL |
| 472038 | NULL | NULL | https://www.gsearch.com | desktop | 2015-03-18 11:35:07 | 385817 | 1 | NULL |
| website_pageview_id | created_at | website_session_id | pageview_url |
|---|---|---|---|
| 1187990 | 2015-03-19 05:28:43 | 472818 | /the-original-mr-fuzzy |
| 1187993 | 2015-03-19 05:31:28 | 472818 | /cart |
| 1187995 | 2015-03-19 05:34:34 | 472818 | /shipping |
| order_id | website_session_id | primary_product_id | items_purchased | price_usd | cogs_usd |
|---|---|---|---|---|---|
| 32313 | 472818 | 1 | 1 | 49.99 | 19.49 |
| 32312 | 472814 | 4 | 1 | 29.99 | 9.49 |
| 32311 | 472809 | 2 | 2 | 89.98 | 31.98 |
| order_item_id | order_id | product_id | is_primary_item | price_usd |
|---|---|---|---|---|
| 40022 | 32311 | 2 | 1 | 59.99 |
| 40023 | 32311 | 4 | 0 | 29.99 |
| order_item_id | created_at | refund_amount_usd |
|---|---|---|
| 39947 | 2015-04-01 18:11:08 | 45.99 |
Clean tables, tested, with every metric defined once
Pipeline
fct_sessionssessions + pageviews: channel, landing page, bounce, orderfct_ordersorders + items + refunds: price, cost, margin, refundagg_sessions_dailyby day, channel, campaign, device, landing pageagg_product_dailyby day, product, primary item or cross-sellChecked against the raw tables
Semantic layer
14 metrics, 9 dimensionsOrder revenue in USD before refunds, credited to the visit that ordered.
SUM(revenue)Visits that ended in an order, out of all visits.
SUM(orders) / SUM(sessions)Refunded items out of items sold, by order date.
SUM(refunded_items) / SUM(items)Gross margin on items sold.
(SUM(revenue) - SUM(cogs)) / SUM(revenue)One rule for every visit, written once. Every answer and dashboard uses it.
CASE WHEN utm_campaign = 'nonbrand' THEN 'paid_nonbrand'
WHEN utm_campaign = 'brand' THEN 'paid_brand'
WHEN utm_source = 'socialbook' THEN 'paid_social'
WHEN http_referer IS NOT NULL THEN 'organic_search'
ELSE 'direct' ENDAsk in plain English
revenue from agg_sessions_daily, by monthRevenue grew from $393K in 2013 to $1.08M in 2014, 2.7 times. Three things multiplied:
| 2013 | 2014 | Change | |
|---|---|---|---|
| Visits | 112,781 | 233,422 | ×2.07 |
| Conversion rate | 6.60% | 7.22% | ×1.09 |
| Revenue per order | $52.81 | $63.80 | ×1.21 |
| Revenue | $393,248 | $1,075,612 | ×2.74 |
Traffic did most of it, and paid nonbrand search alone added $424K. Revenue per order rose because of cross-sells. The Hudson River Mini Bear launched in February 2014 and earned $101K as a second item in the cart.
View SQL
SELECT year(session_date) AS year,
SUM(sessions) AS visits,
SUM(orders) / SUM(sessions) AS conversion_rate,
SUM(revenue) / SUM(orders) AS revenue_per_order,
SUM(revenue) AS revenue
FROM agg_sessions_daily
WHERE year(session_date) IN (2013, 2014)
GROUP BY 1 ORDER BY 1;Built AI native, so you can skip the pre-AI stack.
Same numbers. A different home page for each person.
paid_conversionpaid orders ÷ paid sessionsused on 2 pages
orderscompleted, net of testsnew_vs_repeatfirst visit ever vs returningRaw tables in. One set of metrics out.
Counts from our demo warehouse: a social app with posts, engagement, search and ads.
123Any name finds the right metric
Math that can't add up wrong
Every change has a version
Your data stays where it is.
Data stays in your warehouse
Queries run in place. We keep no copy.
Read-only on production
We read your app database. We never write to it.
Your own model key
Questions go to your Anthropic or OpenAI account.
Roles and audit log
Row-level security per role. Every query is logged.