Add device type detect and stats calculation for open/click rate by device type and country
This commit is contained in:
parent
b6497b0e86
commit
1ba3bce6eb
10 changed files with 176 additions and 15 deletions
|
@ -69,6 +69,31 @@
|
|||
<!-- Default panel contents -->
|
||||
<div class="panel-heading">{{#if aggregated}}{{#translate}}Subscribers who clicked on a link:{{/translate}}{{else}}{{#translate}}Subscribers who clicked on this link:{{/translate}}{{/if}}</div>
|
||||
<div class="panel-body">
|
||||
{{#if aggregated}}{{else}}
|
||||
<div class="table-responsive">
|
||||
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
|
||||
<table class="table table-bordered table-hover data-piechart-ajax display nowrap">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
{{#translate}}Stats by country{{/translate}}
|
||||
</th>
|
||||
<th>
|
||||
{{#translate}}Stats by device type{{/translate}}
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
<div class="data-stats-pie-chart" data-topic-url="/campaigns/clicked" data-column="country" data-topic-id="{{id}}/-1"></div>
|
||||
</th>
|
||||
<th>
|
||||
<div class="data-stats-pie-chart" data-topic-url="/campaigns/clicked" data-column="device_type" data-topic-id="{{id}}/-1"></div>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
{{/if}}
|
||||
<div class="table-responsive">
|
||||
<table data-topic-url="/campaigns/clicked" data-topic-id="{{id}}/{{link.id}}" data-sort-column="1" data-sort-order="asc" class="table table-bordered table-hover data-table-ajax display nowrap" width="100%" data-row-sort="0,1,1,1,1,1,0">
|
||||
<thead>
|
||||
|
|
|
@ -16,12 +16,36 @@
|
|||
<div class="well well-sm">{{{description}}}</div>
|
||||
{{/if}}
|
||||
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
<div class="panel panel-info">
|
||||
<!-- Default panel contents -->
|
||||
<div class="panel-heading">{{#translate}}Subscribers who opened this message:{{/translate}}</div>
|
||||
<div class="panel-body">
|
||||
<div class="table-responsive">
|
||||
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
|
||||
<table class="table table-bordered table-hover data-piechart-ajax display nowrap">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
{{#translate}}Stats by country{{/translate}}
|
||||
</th>
|
||||
<th>
|
||||
{{#translate}}Stats by device type{{/translate}}
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
<div class="data-stats-pie-chart" data-topic-url="/campaigns/clicked" data-column="country" data-topic-id="{{id}}/-1"></div>
|
||||
</th>
|
||||
<th>
|
||||
<div class="data-stats-pie-chart" data-topic-url="/campaigns/clicked" data-column="device_type" data-topic-id="{{id}}/-1"></div>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table data-topic-url="/campaigns/clicked" data-topic-id="{{id}}/-1" data-sort-column="1" data-sort-order="asc" class="table table-bordered table-hover data-table-ajax display nowrap" width="100%" data-row-sort="0,1,1,1,1,1,0">
|
||||
<thead>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue