mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 13:35:24 +02:00
feat: add Detail Level BSR metric to experiments analysis
This commit is contained in:
@@ -53,6 +53,7 @@ const METRIC_OPTIONS: { value: ExperimentMetric; label: string }[] = [
|
||||
{ value: 'roas', label: 'ROAS' },
|
||||
{ value: 'revenue', label: 'Revenue' },
|
||||
{ value: 'acos', label: 'ACOS' },
|
||||
{ value: 'detail_bsr', label: 'Detail Level BSR' },
|
||||
];
|
||||
|
||||
// ============ Main Component ============
|
||||
@@ -567,7 +568,7 @@ const ExperimentDetailView: React.FC<{
|
||||
</thead>
|
||||
<tbody className="divide-y divide-white/5">
|
||||
{/* Render specific metrics: Units, Revenue, CVR, BSR/ACOS */}
|
||||
{['units', 'revenue', 'cvr', 'acos', 'sessions', 'roas', 'ctr'].map(metric => {
|
||||
{['units', 'revenue', 'cvr', 'acos', 'sessions', 'roas', 'ctr', 'detail_bsr'].map(metric => {
|
||||
const res = didResults?.metrics?.[metric];
|
||||
if (!res) {
|
||||
return (
|
||||
@@ -584,7 +585,7 @@ const ExperimentDetailView: React.FC<{
|
||||
</tr>
|
||||
);
|
||||
}
|
||||
const isPositiveGood = !['acos', 'bsr'].includes(metric);
|
||||
const isPositiveGood = !['acos', 'detail_bsr'].includes(metric);
|
||||
const isGood = isPositiveGood ? res.lift_percent >= 0 : res.lift_percent <= 0;
|
||||
return (
|
||||
<tr key={metric} className="hover:bg-white/[0.02] transition-colors">
|
||||
|
||||
Reference in New Issue
Block a user