ReferralStats
fancy-mlm-uiReferral scans, unique visitors, signups and conversion per code, scope or member — a bar chart of one metric over a table of all four, fed the engines' stats() rows as-is. Fully controlled, with data-mlm-* handles.
Why
A referral program has to show which codes and which members actually bring people in. Hand-rolled stats tables sum the wrong things: one visitor who scans three codes becomes three "unique" visitors, and the conversion rate built on that is fiction.
What
ReferralStats plots one metric (scans, unique visitors, signups or conversion) as a react-fancy bar chart over a table of all four, per code, scope or member. Every piece of state is a controlled prop (groupBy, metric, range, selectedKey), mirrored on the root as data-mlm-* attributes, and every cell carries data-mlm-stat-key + data-mlm-stat. Without engine totals it leaves unique visitors and conversion blank rather than summing them.How
Pass the rows
Mlm::stats() (PHP, fancy-mlm 0.4.0+) or the Node engine's stats() returns, as-is, plus the ungrouped totals. Wire onGroupByChange / onRangeChange to refetch; the switches and the date picker only appear when you do.
