feat: add Detail Level BSR metric to experiments analysis

This commit is contained in:
Christian Vidal Wolf
2026-03-10 13:58:44 +01:00
parent 2363982144
commit c15642d62d
7 changed files with 70 additions and 24 deletions
+3 -2
View File
@@ -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">