feat(performance): 광고 보고서 상세에서 ROAS 를 광고비 오른쪽에 표기

네이버 광고 보고서는 ROAS(구매완료 광고수익률(%))가 12열이라 일자별
보고서 창에서 광고비(총비용)와 멀리 떨어져 보였다. 상세 표에서 ROAS
열을 광고비 열 바로 오른쪽으로 옮기고, 네이버 머리글은 "ROAS(%)"로
보여 준다(말풍선에 원래 머리글). 저장된 키는 그대로라 예전 업로드에도
적용된다. 구글·메타 상세도 같은 순서.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-20 11:36:38 +09:00
parent 3e56f1223a
commit c82f712f0b
7 changed files with 37 additions and 7 deletions
+5 -1
View File
@@ -434,8 +434,12 @@
};
const table = function (t) {
const tcols = t.columns || cols;
const labels = t.labels || res.labels || {};
return '<div class="perf-ev-wrap"><table class="perf-table perf-detail-table"><thead><tr><th class="perf-th-label">날짜</th>' +
tcols.map(function (c) { return "<th>" + esc(c) + "</th>"; }).join("") + "</tr></thead><tbody>" +
tcols.map(function (c) {
// 화면 머리글(labels)이 따로 있으면 그것을, 말풍선엔 파일 원래 머리글(네이버 "구매완료 광고수익률(%)" → ROAS(%))
return labels[c] ? '<th title="' + esc(c) + '">' + esc(labels[c]) + "</th>" : "<th>" + esc(c) + "</th>";
}).join("") + "</tr></thead><tbody>" +
(t.rows || []).map(function (r) {
return '<tr><th class="perf-td-label" scope="row">' + esc(day(r.date)) + "</th>" +
tcols.map(function (c) { return '<td class="perf-num">' + cell((r.values || {})[c]) + "</td>"; }).join("") + "</tr>";