Phase 4 part 6: the dashboard, CSV exports and an open metrics page
The MRR page adds churn, CLV, CAC and CLV:CAC. Eight tables download as CSV (MRR, NRR and revenue cohorts, CAC by month and channel, spend, products, customers). Metrics → Publish builds an open metrics page from chosen totals only (never a customer) and opens a pull request that adds or updates it on the site, checked with a Hugo build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -169,6 +169,9 @@ func (s *Server) Handler() (http.Handler, error) {
|
||||
mux.HandleFunc("GET /metrics/customers", s.metricsCustomers)
|
||||
mux.HandleFunc("GET /metrics/spend", s.metricsSpend)
|
||||
mux.HandleFunc("GET /metrics/clv", s.metricsCLV)
|
||||
mux.HandleFunc("GET /metrics/export/{name}", s.metricsExport)
|
||||
mux.HandleFunc("GET /metrics/publish", s.metricsPublishPage)
|
||||
mux.HandleFunc("POST /metrics/publish", s.metricsPublish)
|
||||
mux.HandleFunc("POST /metrics/spend", s.metricsSpendAdd)
|
||||
mux.HandleFunc("POST /metrics/spend/{id}/delete", s.metricsSpendDelete)
|
||||
mux.HandleFunc("POST /metrics/customers/{id}", s.metricsCustomerMatch)
|
||||
|
||||
Reference in New Issue
Block a user