[`Customers`] [`Custom range`]

{foreach $table_data as $row}{strip} {$cac = $row.cost*999} {$arpu = 0} {$ampu = 0} {$orders_per_customer = 0} {$lifetime_arpu = 0} {$lifetime_ampu = 0} {if $row.customers_count > 0} {$orders_per_customer = $row.order_count / $row.customers_count} {$arpu = $row.sales / $row.customers_count} {$ampu = $row.profit / $row.customers_count} {$cac = $row.cost / $row.customers_count} {/if} {if $row.lifetime_customers_count > 0} {$lifetime_arpu = $row.lifetime_sales / $row.lifetime_customers_count} {$lifetime_ampu = $row.lifetime_profit / $row.lifetime_customers_count} {/if} {/strip}{/foreach}
  [`Customers`] [`Orders per customer`] [`Cost`] [`CAC`] [`ARPU`] [`Custom range`] [`Lifetime ARPU`] [`AMPU`] [`Custom range`] [`LTV`]
[`Total`] {$total.customers_count} {if $total.customers_count > 0 && $total.order_count > 0} {round($total.order_count / $total.customers_count, 1)} {elseif $total.customers_count <= 0} ∞ {else} {/if} {wa_currency_html($total.cost, $def_cur)} {if $total.customers_count > 0 && $total.cost > 0} {wa_currency_html($total.cost / $total.customers_count, $def_cur)} {elseif $total.customers_count <= 0} ∞ {else} {/if} {wa_currency_html($total.sales, $def_cur)} {wa_currency_html($total.arpu, $def_cur)} {wa_currency_html($total.lifetime_arpu, $def_cur)} {wa_currency_html($total.profit, $def_cur)} {wa_currency_html($total.ampu, $def_cur)} {if $total.cost > 0}
[`ROI`]: {$total.roi}% {/if}
{wa_currency_html($total.lifetime_ampu, $def_cur)} {if $total.lifetime_cost > 0}
[`ROI`]: {$total.lifetime_roi}% {/if}
{ifempty($row.name, "[`(direct)`]")|escape} {$row.customers_count} {if $orders_per_customer}{round($orders_per_customer, 1)}{else}{/if}
{if $row.cost}{wa_currency($row.cost, $def_cur, '%2{h}')}{else}{/if}
{if $row.customers_count > 0 && $row.cost}{wa_currency($cac, $def_cur, '%2{h}')}{elseif $row.cost}∞{else}{/if} {wa_currency($row.sales, $def_cur, '%2{h}')} {wa_currency($arpu, $def_cur, '%2{h}')} {wa_currency($lifetime_arpu, $def_cur, '%2{h}')} {wa_currency($row.profit, $def_cur, '%2{h}')} {wa_currency($ampu, $def_cur, '%2{h}')} {wa_currency($lifetime_ampu, $def_cur, '%2{h}')}

[`Load more...`]