{extends "pluf/ab/base.html"} {block body}

Funnel {$funnel}

{assign $i=1} {foreach $stats as $step}{if $step} {if $i>1}

{$step['total']} ({$step['conv']})

{/if}

Step {$i}: {$step['name']}

{if $i>1}   {else}   {/if}
{assign $t = $step['total']} {blocktrans $t}{$t} unique visitor.{plural}{$t} uniques visitors.{/blocktrans}

{assign $i += 1} {/if}{/foreach}
{assign $i = $i-1}

{$stats[$i]['total']} out of {$stats['1']['total']} visitors reached step {$i} of this funnel. This is a completion rate of {$stats[$i]['conv1']}.

Note that if a user skip a given step, this can make the results a bit off.

{/block}