supabase/migrations/01_core_commerce.sql, then
02_rpc_functions.sql, then
04_analytics_warehouse.sql — then reload this page.
| District | Orders | Revenue |
|---|---|---|
Loading… | ||
| Month | Channel | Spend | Impr. | Reach | Clicks | CTR% | CPC | Leads | Conv. | CAC | ROAS | Followers |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
No channel data yet — add some in the Data Entry tab. | ||||||||||||
From your own confirmed orders (excludes cancelled/returned) — not the ad platforms' self-reported conversions, which can't see COD refusals after the fact.
| Month | Source | Medium | Campaign | Orders | Revenue | AOV | Cancelled/Returned |
|---|---|---|---|---|---|---|---|
No attributed orders yet — this fills in as customers check out through UTM-tagged links. | |||||||
Last 30 days. Ranked within each page against that page's own best-seen section — a low bar means visitors aren't scrolling to (or aren't interested in) that part of the page.
| Page | Section | Views | vs. top section |
|---|---|---|---|
No section data yet — register the "Section Name" custom dimension in GA4 Admin, then check back after the next sync. | |||
Last 30 days, per page. Sessions reaching each scroll milestone — a sharp drop between two milestones marks where the page loses people.
| Page | 25% | 50% | 75% | 90% |
|---|---|---|---|---|
No scroll data yet — register the "Scroll Percent" custom dimension in GA4 Admin, then check back after the next sync. | ||||
| Month | Web Rev | Farm Rev | Farm Exp | One-off | Ad Spend | Net Profit |
|---|---|---|---|---|---|---|
Loading… | ||||||
Shared production costs (spawn, substrate, labor…) are allocated between channels by revenue share — see the note on the chart.
| Month | Online Rev | Online Direct | Online Shared | Online Net | Offline Rev | Offline Direct | Offline Shared | Offline Net |
|---|---|---|---|---|---|---|---|---|
Loading… | ||||||||
| Supplier | Purchases | Total Kg | Avg ৳/Kg | Waste % | Net Cost |
|---|---|---|---|---|---|
Loading… | |||||
Groq (recommended): free, hosted, works immediately — no software to install.
Get a free key at console.groq.com/keys,
paste it above, then click Save Config. Any other OpenAI-compatible endpoint works too.
Ollama (private alternative): 100% on-device, nothing leaves this computer, but
requires installing software first. Install from ollama.com, then run
ollama pull llama3.2. For the browser to reach it, start it with CORS open:
OLLAMA_ORIGINS="*" ollama serve (Mac: run launchctl setenv OLLAMA_ORIGINS "*"
once, then restart Ollama).
Header row required:
date,channel,spend,impressions,reach,clicks,engagements,followers,video_views,leads,conversions
Channel must be one of: facebook, instagram, tiktok, whatsapp, linkedin, google_ads, website.
Empty cells are fine. Rows for existing date+channel pairs overwrite.
| Date | Channel | Spend | Impr. | Clicks | Followers | Leads | Source | |
|---|---|---|---|---|---|---|---|---|
No entries yet. | ||||||||