pluf2

pluf2 Commit Details


Date:2010-03-24 17:22:46 (14 years 8 months ago)
Author:Loic d'Anterroches
Branch:master
Commit:cb980652386ef9a7462fb11f4d996b6384eb4859
Parents: e08f574a01252c56a964e32eae16084cc14a8830
Message:Improved the display of the stats in the funnel analysis.

Changes:

File differences

src/Pluf/templates/pluf/ab/base.html
8282
8383
8484
85
8586
8687
8788
......
8990
9091
9192
93
94
95
96
97
98
99
100
101
102
103
104
105
106
92107
93108
94109
95110
96111
97112
98
99113
114
100115
101116
117
118
102119
103120
104121
background-color: #e9b96e;
border: 1px solid #888a85;
}
.percent span {
background-color: #3465a4;
display:block;
height:10px;
}
.margin {
display: block;
float: left;
width: 100%;
height: 10px;
font-size: 0.8em;
}
.margin span {
display:block;
float:left;
height: 10px;
}
.arrow {
font-size: 0px; line-height: 0%; width: 0px;
border-top: 20px solid #3465a4;
border-left: 10px solid #fff;
border-right: 10px solid #fff;
float: right;
padding-right: 2em;
margin-right: 25px;
margin-top: 5px;
}
{/literal}
</style>
</head>
src/Pluf/templates/pluf/ab/funnel.html
77
88
99
10
11
10
11
1212
1313
1414
1515
1616
17
17
18
19
1820
19
2021
2122
2223
2324
24
2525
2626
2727
......
3131
3232
3333
34
35
3634
3735
3836
{assign $i=1}
{foreach $stats as $step}{if $step}
{if $i>1}
<p class="right">{$step['total']} ({$step['conv']})</p>
<div class="arrow right"></div>
<p class="right">{$step['total']} ({$step['conv']})<span class="arrow right"></span></p>
{/if}
<h2>Step {$i}: {$step['name']}</h2>
<p>
{if $i>1}
<span class="percent"><span style="width:{$step['conv1']}">&nbsp;</span></span>
<span class="percent"><span style="width:{$step['conv1']}"></span></span>
{if $step['conv1'] != '100.00%'}<br />
<span class="margin"><span style="width:{$step['conv1']}"></span>{$step['conv1']}</span>{/if}
{else}
<span class="percent"><span style="width:100%">&nbsp;</span></span>
{/if}<br />{assign $t = $step['total']}
{blocktrans $t}{$t} unique visitor.{plural}{$t} unique visitors.{/blocktrans}
</p>
{assign $i += 1}
{/if}{/foreach}
<p><strong>{$stats[$i]['total']}</strong> out of {$stats['1']['total']} visitors reached step {$i} of this funnel.
This is a completion rate of <strong>{$stats[$i]['conv1']}</strong>.</p>
<p class="note">
Note that if a user skip a given step, this can make the results a bit
off.

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.05465s using 13 queries.