Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="panel panel-bordered panel-overview">
- <div class="panel-heading">
- <h4 class="panel-title">
- <i class="fa fa-line-chart"></i> Top metrics
- </h4>
- </div>
- <div class="panel-body">
- <div class="grid-informers">
- <div class="cell">
- <div class="informer">
- <span class="sparkbar sparkbar-1"></span>
- <span class="name">
- Clicks
- </span>
- <span class="val down">
- 370
- </span>
- </div>
- </div>
- <div class="cell">
- <div class="informer">
- <span class="sparkbar sparkbar-2"></span>
- <span class="name">
- Conversions
- </span>
- <span class="val down">
- 38
- </span>
- </div>
- </div>
- <div class="cell">
- <div class="informer">
- <span class="sparkbar sparkbar-5"></span>
- <span class="name">
- Events
- </span>
- <span class="val">
- 0
- </span>
- </div>
- </div>
- <div class="cell">
- <div class="informer">
- <span class="sparkbar sparkbar-3"></span>
- <span class="name">
- Revenue
- </span>
- <span class="val down">
- $ 83.6
- </span>
- </div>
- </div>
- <div class="cell">
- <div class="informer">
- <span class="sparkbar sparkbar-4"></span>
- <span class="name">
- AVG EPC
- </span>
- <span class="val down">
- $ 0.2259
- </span>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="panel panel-bordered panel-chart panel-table">
- <div class="panel-heading">
- <h4 class="panel-title">
- <i class="fa fa-area-chart"></i> Overview
- </h4>
- <div class="panel-tools">
- <ul class="data-tabs">
- <li class="active">
- <a href="#tabChartClicksAndConversions" class="tab" data-toggle="tab">Clicks & Conversions</a>
- </li>
- <li>
- <a href="#tabRevenue" class="tab " data-toggle="tab">Revenue</a>
- </li>
- </ul>
- </div>
- </div>
- <div class="panel-body">
- <div class="tab-content wrapper-chart">
- <div class="tab-pane active" id="tabChartClicksAndConversions">
- <div class="line-chart-1"></div>
- </div>
- <div class="tab-pane " id="tabRevenue">
- <div class="line-chart-2"></div>
- </div>
- </div>
- <div class="table-responsive">
- <table class="table table-hover table-panel-body dataTable table-colResizable table-dasboard-summary border-top table-bordered-col"
- id="dashboardCampaignsTable">
- <thead>
- <tr>
- <th class="t-col-30">
- <div class="relative">Campaign</div>
- </th>
- <th>
- <div class="relative">Format</div>
- </th>
- <th>
- <div class="relative">Clicks</div>
- </th>
- <th>
- <div class="relative">Total clicks</div>
- </th>
- <th>
- <div class="relative">Conversions</div>
- </th>
- <th>
- <div class="relative">Events</div>
- </th>
- <th>
- <div class="relative">Revenue, $</div>
- </th>
- <th>
- <div class="relative">CR %</div>
- </th>
- <th>
- <div class="relative">EPC, $</div>
- </th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>
- <a href="/offers/campaign/10360241"
- target="_blank">(41369) [WEB+MOB] Aldi Voucher SOI /UK *Reward Program* - CPA - $2.20</a>
- </td>
- <td>CPA</td>
- <td class="text-right">114</td>
- <td class="text-right">129</td>
- <td class="text-right">11</td>
- <td class="text-right">0</td>
- <td class="text-right">24.20</td>
- <td class="text-right">9.65
- /8.53 </td>
- <td class="text-right">0.2123
- /0.1876</td>
- </tr>
- <tr>
- <td>
- <a href="/offers/campaign/10378395"
- target="_blank">(53634) [WEB+MOB] Morrinsons voucher /UK SOI *Reward Program* - CPA - $2.20</a>
- </td>
- <td>CPA</td>
- <td class="text-right">252</td>
- <td class="text-right">260</td>
- <td class="text-right">27</td>
- <td class="text-right">0</td>
- <td class="text-right">59.40</td>
- <td class="text-right">10.71
- /10.38 </td>
- <td class="text-right">0.2357
- /0.2285</td>
- </tr>
- <tr>
- <td>
- <a href="/offers/campaign/10379327"
- target="_blank">(51714) [WEB+MOB] Social Mainstream Non-Targeted /Global Non-Targeted traffic only - CPC - RevShare - %50.00</a>
- </td>
- <td>RevShare</td>
- <td class="text-right">4</td>
- <td class="text-right">10</td>
- <td class="text-right">0</td>
- <td class="text-right">0</td>
- <td class="text-right">0.00</td>
- <td class="text-right">0.00
- /0.00 </td>
- <td class="text-right">0.0000
- /0.0000</td>
- </tr>
- </tbody>
- <tfoot>
- <tr>
- <td>Total</td>
- <td></td>
- <td class="text-right">370</td>
- <td class="text-right">399</td>
- <td class="text-right">38</td>
- <td class="text-right">0</td>
- <td class="text-right">83.60</td>
- <td class="text-right">10.27
- /9.52 </td>
- <td class="text-right">0.2259
- /0.2095</td>
- </tr>
- </tfoot>
- </table>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- $(function() {
- $('.sparkbar-1').sparkline([19, 4, 5, 1, 4, 6, 6, 23, 32, 45, 29, 35, 39, 31, 39, 43, 37, 1, 0, 0, 0, 0, 0, 0], {
- 'type': 'bar',
- 'height': '33px',
- 'width': '62px',
- 'disableInteraction': true,
- 'barColor': '#9acffc',
- 'barWidth': sparklineBarWidthDetect([19, 4, 5, 1, 4, 6, 6, 23, 32, 45, 29, 35, 39, 31, 39, 43, 37, 1, 0, 0, 0, 0, 0, 0]),
- });
- $('.sparkbar-2').sparkline([3, 0, 2, 0, 2, 1, 0, 2, 1, 3, 3, 2, 4, 3, 3, 5, 4, 0, 0, 0, 0, 0, 0, 0], {
- 'type': 'bar',
- 'height': '33px',
- 'width': '62px',
- 'disableInteraction': true,
- 'barColor': '#0086d8',
- 'barWidth': sparklineBarWidthDetect([3, 0, 2, 0, 2, 1, 0, 2, 1, 3, 3, 2, 4, 3, 3, 5, 4, 0, 0, 0, 0, 0, 0, 0]),
- });
- $('.sparkbar-5').sparkline([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], {
- 'type': 'bar',
- 'height': '33px',
- 'width': '62px',
- 'disableInteraction': true,
- 'barColor': '#72addf',
- 'barWidth': sparklineBarWidthDetect([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]),
- });
- $('.sparkbar-3').sparkline([6.6, 0, 4.4, 0, 4.4, 2.2, 0, 4.4, 2.2, 6.6, 6.6, 4.4, 8.8, 6.6, 6.6, 11, 8.8, 0, 0, 0, 0, 0, 0, 0], {
- 'type': 'bar',
- 'height': '33px',
- 'width': '62px',
- 'disableInteraction': true,
- 'barColor': '#21b7d3',
- 'barWidth': sparklineBarWidthDetect([6.6, 0, 4.4, 0, 4.4, 2.2, 0, 4.4, 2.2, 6.6, 6.6, 4.4, 8.8, 6.6, 6.6, 11, 8.8, 0, 0, 0, 0, 0, 0, 0]),
- });
- $('.sparkbar-4').sparkline([0.34736842105263, 0, 0.88, 0, 1.1, 0.36666666666667, 0, 0.19130434782609, 0.070967741935484, 0.17368421052632, 0.22758620689655, 0.14666666666667, 0.352, 0.22758620689655, 0.16923076923077, 0.25581395348837, 0.23783783783784, 0, 0, 0, 0, 0, 0, 0], {
- 'type': 'bar',
- 'height': '33px',
- 'width': '62px',
- 'disableInteraction': true,
- 'barColor': '#ffd238',
- 'barWidth': sparklineBarWidthDetect([0.34736842105263, 0, 0.88, 0, 1.1, 0.36666666666667, 0, 0.19130434782609, 0.070967741935484, 0.17368421052632, 0.22758620689655, 0.14666666666667, 0.352, 0.22758620689655, 0.16923076923077, 0.25581395348837, 0.23783783783784, 0, 0, 0, 0, 0, 0, 0]),
- });
- var range = $('input[name="date_range"]').val();
- $.fn.dataTable.ext.errMode = 'none';
- oTable = $('#dashboardCampaignsTable').on( 'error.dt', function ( e, settings, techNote, message ) {
- console.log( 'An error has been reported by DataTables: ', message );
- } )
- .DataTable({
- "dom": '' +
- '<"top">rt<"table-bottom"' +
- '<"row"<"pull-left entries" l>' +
- '<"pull-right text-right" p>>>' +
- '<"clear">',
- "order": [[6, "desc"], [2, "desc"]],
- "pagingType": "full_numbers",
- "language": {
- "emptyTable": "No data available - Please choose a campaign for the report or decrease a report period",
- "paginate": {
- "previous": "<",
- "first": "<<",
- "next": ">",
- "last": ">>"
- },
- "sLengthMenu": "Show _MENU_ <span class='total'>entries from _TOTAL_ </span>"
- },
- "aLengthMenu": [[10, 25, 50, 100], [10, 25, 50, 100]],
- });
- function showCharts() {
- $('.line-chart-1').highcharts({
- title: false,
- xAxis: [{
- categories: ['00', '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23'],
- crosshair: {
- width: 1,
- color: '#db5b5b',
- zIndex: 3
- },
- lineWidth: 2,
- lineColor: "#eaedf1"
- }],
- yAxis: [
- {
- gridLineWidth: 1,
- gridLineColor: '#eaedf1',
- title: {
- text: 'Conversions, Events'
- },
- labels: {
- format: ''
- }
- }, {
- gridLineWidth: 0,
- title: {
- text: 'Clicks'
- },
- labels: {
- format: ''
- },
- opposite: true
- }],
- tooltip: {
- shared: true
- },
- credits: false,
- series: [{
- name: 'Conversions',
- type: 'column',
- color: '#9acffc',
- yAxis: 0,
- data: [3, 0, 2, 0, 2, 1, 0, 2, 1, 3, 3, 2, 4, 3, 3, 5, 4, 0, 0, 0, 0, 0, 0, 0]
- }, {
- name: 'Events',
- type: 'column',
- color: '#72addf',
- yAxis: 0,
- data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
- }, {
- name: 'Clicks',
- type: 'line',
- color: '#0086d8',
- yAxis: 1,
- data: [19, 4, 5, 1, 4, 6, 6, 23, 32, 45, 29, 35, 39, 31, 39, 43, 37, 1, 0, 0, 0, 0, 0, 0],
- marker: {
- enabled: true,
- fillColor: '#0086d8',
- lineColor: '#fff',
- lineWidth: 2,
- radius: 5
- }
- }],
- legend: {
- itemStyle: {
- font: '14px "Source Sans Pro", sans-serif',
- color: '#4F5153'
- }
- }
- });
- $('.line-chart-2').highcharts({
- title: false,
- xAxis: {
- categories: ['00', '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23'],
- lineWidth: 2,
- crosshair: {
- width: 1,
- color: '#db5b5b',
- zIndex: 3
- },
- lineColor: "#eaedf1"
- },
- yAxis: {
- title: {
- text: 'Revenue'
- },
- gridLineWidth: 1,
- gridLineColor: '#eaedf1',
- plotLines: [{
- value: 0,
- width: 1,
- color: '#808080'
- }]
- },
- legend: {
- layout: 'horizontal',
- align: 'center',
- verticalAlign: 'bottom',
- borderWidth: 0,
- itemStyle: {
- font: '14px "Source Sans Pro", sans-serif',
- color: '#4F5153'
- }
- },
- credits: false,
- series: [{
- name: 'Revenue',
- color: '#ffc600',
- fillOpacity: '0.2',
- type: 'area',
- data: [6.6, 0, 4.4, 0, 4.4, 2.2, 0, 4.4, 2.2, 6.6, 6.6, 4.4, 8.8, 6.6, 6.6, 11, 8.8, 0, 0, 0, 0, 0, 0, 0]
- }]
- });
- }
- showCharts();
- $('.panel-heading .data-tabs a[data-toggle="tab"]').on('shown.bs.tab', function () {
- showCharts();
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement