Analytics
Revenue, closed deals, monthly closing volume, category breakdown and the top-performing listing.
Where it lives
| Route | View file | Access |
|---|---|---|
/analytics | src/views/app/analytics/analytics.tsx | signed-in, agent or landlord |
The whole screen is fed by one request, getAnalytics in src/services/dashboard/dashboard-api.ts.
Before you start
- Signed in as an agent or landlord.
- The screen is useful once at least one listing exists. Revenue and volume figures only appear after a deal has completed.
Ways in: Analytics in the sidebar, View Full Report in the Market Pulse popover on the listings table, or "Analytics" in global search.
Flow
Load the screen
-
Opening
/analyticssendsGET /api/v1/dashboard/analytics. -
The response has four parts, each driving one area of the page:
Part Drives statsThe four stat cards and part of Smart Insights volumeByMonthThe "Closing Volume by Type" bar chart categoriesThe "Portfolio Breakdown" table and part of Smart Insights topPerformerThe "Top Performer" card -
The screen is read-only. There are no filters or date pickers; the period is whatever the API returns (the chart is described as "this year").

Stat cards
| Card | Value | Corner label |
|---|---|---|
| Total Revenue | totalRevenue, compact (for example ₦1.56M, ₦840.0K, ₦2.10B) | Percent change, for example "+12.4%", or "—" with no history |
| Deals Closed | propertiesSold, padded to two digits ("03") | Percent change or "—" |
| Active Leads | activeLeads, padded to two digits | Percent change or "—" |
| Avg Days to Close | avgDaysToClose, padded to two digits | "N days", or "No data" when zero |
The currency symbol is ₦ when the API reports NGN; any other currency shows its code.
Closing Volume by Type
A bar chart, "Monthly value of completed deals this year", one bar per month. Each bar is coloured by the category that made up most of that month's volume: Residential, Luxury or Commercial (legend at the top right). Hovering a bar shows the full amount as "Volume".
Smart Insights
Up to three short statements written from the numbers on the page:
| Insight | Appears when | Text pattern |
|---|---|---|
| Revenue Growth / Revenue Dip | The API returned a revenue change | "Your closed revenue is up (or down) N% against the same point last year, across N closed deals." |
| Strongest Category | Some category has at least one closed deal | "Residential is your best performing category with N closed and N still live, averaging ₦N per deal." |
| Time to Close | avgDaysToClose is above zero | "Deals take N days on average from payment to handover. Faster confirmations release your funds sooner." |
Portfolio Breakdown
A table with one row per category.
| Column | Content |
|---|---|
| Category | Colour dot and label |
| Closed | "N Units" (or "1 Unit") |
| Inventory | "N Active" |
| Avg Price | Compact amount, or "—" when zero |
| Growth | Percent change in green (zero or above) or orange (negative), or "—" |
Five rows per page with numbered pagination; the page is kept in the URL as ?page=2. View Listings in the card header opens /listings.
Top Performer
The listing with the most views: cover photo (with a "Most Viewed" badge when it has any views), title, a line with type, community and state, the view count and the price. Clicking the photo opens /listings/:id.
The three-dot menu is not wired up
States and edge cases
- Loading. Stat values, the chart, insights, table rows and the top performer all show skeleton placeholders.
- Request failed. The whole page is replaced by a card: "Analytics could not be loaded", "Something went wrong fetching your performance data." and a Try again button that repeats the request.
- No completed deals. The chart area reads "No completed deals yet this year" and "Volume appears here once a buyer confirms handover and the escrow releases."
- No insights. "Insights appear once you have closed your first deal. Keep your listings live and respond quickly to inspection requests."
- No listings. The table reads "No listings yet — add one to start tracking performance." and Top Performer shows "No listings yet" with a Create your first listing link to
/listings/create. - Top performer without a photo. A grey tile reading "No image".
- Expired session. The request fails like any other error and shows the "could not be loaded" card; it does not redirect to sign-in.
What happens next
Nothing is changed by this screen. Per the empty-state copy, volume and revenue move when a buyer confirms handover and escrow releases, which is covered in the escrow and earnings sections.
Messages
The chat screen for agents and landlords, how rooms load, how messages are sent in real time over socket.io, and what is not built yet.
Settings
Every section of Account Settings, covering profile, address, credentials, notifications, security, payments, inspection availability and inspection fee.
HomeLink Hub