{%- import "partials/_ui.html" as ui -%}
Docs: Analytics → Export data →

{% if active_range == "7d" %}Last 7 days{% else if active_range == "30d" %}Last 30 days{% else if active_range == "90d" %}Last 90 days{% else %}All time{% endif %}

{% for stat in stats %}
{{ stat.label }}
{{ stat.value }}
{% if let Some(change) = stat.change %}
{{ change }}
{% endif %}
{% endfor %}

Revenue Over Time

{% if bars.is_empty() %} {% call ui::empty_state_chart("Once you publish items and make sales, revenue data will appear here.") %} {% else %}
{% for bar in bars %}
{{ bar.label }}
{% endfor %}
{% endif %}
{% if project_comparisons.len() > 1 %}

Project Comparison

{% for p in project_comparisons %} {% endfor %}
Project Revenue Sales Views Conversion
{{ p.title }}
{{ p.revenue }}
{{ p.sales }} {{ p.views }} {{ p.conversion }}
{% endif %}

Top Projects by Revenue

{% if top_projects.is_empty() %} {% call ui::empty_state_compact("No revenue data yet. Sales across your projects will appear here.") %} {% else %} {% endif %}