{% include "performance/_tabs.html" %}
{% if migration_needed %}
광고비 저장 표가 아직 없습니다. 관리자가 performance_db 마이그레이션 005·006 을 적용해야 합니다.
{% endif %}
{% if not tiktok_configured %}
틱톡 API 가 아직 설정되지 않았습니다. {% if is_admin %}
실적 설정 → 광고 API 연동에서{% else %}관리자가 실적 설정 → 광고 API 연동에서{% endif %} 틱톡 [설정]을 입력하면 데이터가 들어옵니다.
{% endif %}
{% for k in kpis %}
{{ k.label }}
{% if k.key == 'roas' %}
{{ pct(k.pct) }}
{% else %}
₩{{ "{:,}".format(k.value) }}
{% if k.delta is none %}{{ k.cmp }} 비교 없음
{% else %}
{% set up = k.delta > 0 %}
{% if k.delta > 0 %}▲{% elif k.delta < 0 %}▼{% else %}–{% endif %} {{ "%.1f" | format(k.delta | abs) }}%
{{ k.cmp }} 대비
{% endif %}
{% endif %}
{% endfor %}
{% if period_kind == 'year' %}월별 틱톡 실적{% else %}일자별 틱톡 실적{% endif %}
| {% if period_kind == 'year' %}월{% else %}날짜{% endif %} |
ROAS |
광고비 |
매출 |
{% for r in table %}
|
{{ r.label }}{% if r.holiday %}{{ r.holiday }}{% endif %}
|
{{ pct(r.roas) }} |
{{ won(r.cells.spend.gross) }} |
{{ won(r.cells.sales.gross) }} |
{% endfor %}
{% if period_kind == 'year' %}월별{% else %}일별{% endif %} 매출 추이
{% if period_kind == 'year' %}월별{% else %}일별{% endif %} 광고비 추이
{{ year.year }}년 누적
| 월 | ROAS | 광고비 | 매출 |
{% for r in year.rows %}
| {{ r.label }} |
{% if not r.future %}{{ pct(r.roas) }}{% endif %} |
{{ won(r.spend) }} |
{{ won(r.sales) }} |
{% endfor %}
| 합계 |
{{ pct(year.roas) }} |
{{ won(year.spend) }} |
{{ won(year.sales) }} |
{% endblock %}
{% block scripts %}{% endblock %}