{% extends "sqladmin/traffic_base.html" %} {% from "sqladmin/traffic_macros.html" import num, when, stat_card, chart_card, table_card, content_path %} {% block content %} {% set s = stats.summary %}
{{ stat_card('오늘 방문자', num(stats.today_visitors)) }} {{ stat_card('페이지뷰', num(s.pageviews)) }} {{ stat_card('방문자', num(s.visitors)) }} {{ stat_card('마지막 방문', when(s.last_seen)) }}
{{ chart_card('일별 방문자 · 페이지뷰', 'chart-visits-daily', stats.daily, [('visitors', '방문자'), ('pageviews', '페이지뷰')]) }} {{ table_card('페이지 종류', stats.page_kinds, [('label', '종류', false), ('views', '페이지뷰', true), ('visitors', '방문자', true)]) }}

많이 본 콘텐츠 (상위 20)

{% for c in stats.contents %} {% else %} {% endfor %}
경로페이지뷰방문자
{{ content_path(c.content_type, c.content_id) }} {{ num(c.views) }} {{ num(c.visitors) }}
기록 없음
{{ table_card('유입 도메인 (상위 20)', [{'host': '직접·알 수 없음', 'views': s.direct_views, 'visitors': s.direct_visitors}] + stats.referrers, [('host', '도메인', false), ('views', '페이지뷰', true), ('visitors', '방문자', true)]) }} {{ table_card('AI 엔진 유입', stats.ai_engines, [('engine', '엔진', false), ('views', '페이지뷰', true), ('referrer', 'referrer 로 판별', true), ('utm', 'utm 으로 판별', true)]) }} {{ table_card('캠페인 (utm_source, 상위 20)', stats.utm, [('source', 'utm_source', false), ('views', '페이지뷰', true), ('visitors', '방문자', true)]) }} {{ table_card('기기', stats.devices, [('label', '기기', false), ('views', '페이지뷰', true), ('visitors', '방문자', true)]) }} {{ table_card('많이 본 경로 (상위 20)', stats.pages, [('path', '경로', false), ('views', '페이지뷰', true), ('visitors', '방문자', true)]) }}

참고: 접근 로그의 첫 화면(/) 요청

요청
{{ num(stats.log_landing.requests) }}
고유 IP 해시
{{ num(stats.log_landing.ip_hashes) }}
{% endblock %}