2022-11-17 00:44:20 +01:00
|
|
|
% layout 'stats';
|
2023-05-02 21:59:31 +02:00
|
|
|
% my $base_url = config 'base_url';
|
2022-11-17 00:44:20 +01:00
|
|
|
<div class="description">
|
|
|
|
<h2>Stats</h2>
|
|
|
|
|
|
|
|
<p>Unique visitors last 24 hours <%=$tracking_data->{unique_ips_last_24_hours}%></p>
|
|
|
|
<p>Unique visitors last week <%=$tracking_data->{unique_ips_last_week}%></p>
|
|
|
|
<p>Unique visitors last month <%=$tracking_data->{unique_ips_last_month}%></p>
|
2022-11-17 02:17:44 +01:00
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th>Path</th>
|
|
|
|
<th>Visitors 24h</th>
|
|
|
|
<th>Visitors week</th>
|
|
|
|
<th>Visitors month</th>
|
|
|
|
</tr>
|
|
|
|
% for my $row (@$tracking_by_url) {
|
|
|
|
<tr>
|
2023-05-02 21:59:31 +02:00
|
|
|
<td><%="${base_url}$row->{path}"%></td>
|
2022-11-17 02:17:44 +01:00
|
|
|
<td><%=$row->{unique_ips_last_24_hours}%></td>
|
|
|
|
<td><%=$row->{unique_ips_last_week}%></td>
|
|
|
|
<td><%=$row->{unique_ips_last_month}%></td>
|
|
|
|
</tr>
|
|
|
|
%}
|
|
|
|
</table>
|
2022-11-17 00:44:20 +01:00
|
|
|
</div>
|