-
Notifications
You must be signed in to change notification settings - Fork 0
/
analytics.php
235 lines (225 loc) · 10.7 KB
/
analytics.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<?php include "php-head.php" ?>
<?php include "html-head.php" ?>
<link type="text/css" rel="stylesheet" href="node_modules/tablesorter/dist/css/theme.default.css" />
<link type="text/css" rel="stylesheet" href="css/sui-accordion.css">
<link type="text/css" rel="stylesheet" href="css/sui-table.css">
<link type="text/css" rel="stylesheet" href="css/sui-calendar.css">
<link type="text/css" rel="stylesheet" href="css/analytics.css">
</head>
<body>
<!--HEADER-->
<?php include "inc/ui-bar-analytics.php" ?>
<!--END OF HEADER-->
<!--BODY-->
<div class="ui-body">
<!-- LEFT MENU -->
<div class="ui-left">
<?php include "ui-menu.php" ?>
</div>
<!-- MAIN SCREEN -->
<div class="ui-center">
<div class="ui accordion">
<div class="title active ui dividing header" id="header-uv">
<i class="dropdown icon"></i><span><i class="icon user"></i></span><span id="header-uv-data"></span> <span id="header-uv-label">Users</span>
</div>
<div class="content active">
<div id="box-uvchart">
<canvas id="data-uvchart"></canvas>
</div>
</div>
<div class="title active ui dividing header" id="header-views">
<i class="dropdown icon"></i><span><i class="icon eye"></i></span><span id="header-views-data"></span> <span id="header-views-label">Page Views</span>
</div>
<div class="content active">
<div id="box-viewschart">
<canvas id="data-viewschart"></canvas>
</div>
<div id="box-views">
<table class="ui-table" id="data-views">
<thead>
<tr>
<th class="col-pagename"><span>Page Name</span></th>
<th class="col-views"><span>Views</span></th>
<th class="col-avgtime" data-tooltip="Average View Duration (mm:ss)" title="Average View Duration (mm:ss)" data-position="top right"><span>Avg</span></th>
<th class="col-maxtime" data-tooltip="Maximum View Duration (mm:ss)" title="Maximum View Duration (mm:ss)" data-position="top right"><span>Max</span></th>
<th class="col-mintime" data-tooltip="Minimum View Duration (mm:ss)" title="Minimum View Duration (mm:ss)" data-position="top right"><span>Min</span></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="no-data">
<p>No data available</p>
</div>
</div>
</div>
<div class="title active ui dividing header" id="header-sources">
<i class="dropdown icon"></i><span><i class="icon exchange"></i></span><span id="header-sources-data"></span><span id="header-sources-label">Traffic Sources</span>
</div>
<div class="content active">
<div id="box-sources">
<table class="ui-table" id="data-sources">
<thead>
<tr>
<th class="col-source"><span>Traffic Source</span></th>
<th class="col-users"><span>Users</span></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="no-data">
<p>No data available</p>
</div>
</div>
</div>
<div class="title active ui dividing header" id="header-statistics">
<i class="dropdown icon"></i><span><i class="icon pie chart"></i></span><span id="header-statistics-data"></span><span id="header-statistics-label">User Statistics</span>
</div>
<div class="content active">
<div class="grid-stats">
<div id="box-countries">
<h1><i class="icon world"></i><span>Countries</span></h1>
<table class="ui-table" id="data-countries">
<thead>
<tr>
<th class="col-country"><span>Country</span></th>
<th class="col-uv"><span>Users</span></th>
<th class="col-views"><span>Views</span></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="no-data">
<p>No data available</p>
</div>
</div>
<div id="box-cities">
<h1><i class="icon map marker alternate"></i><span>Cities</span></h1>
<table class="ui-table" id="data-cities">
<thead>
<tr>
<th class="col-city"><span>City</span></th>
<th class="col-uv"><span>Users</span></th>
<th class="col-views"><span>Views</span></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="no-data">
<p>No data available</p>
</div>
</div>
<div id="box-languages">
<h1><i class="icon comment alternate"></i><span>Languages</span></h1>
<table class="ui-table" id="data-languages">
<thead>
<tr>
<th class="col-language"><span>Language</span></th>
<th class="col-uv"><span>Users</span></th>
<th class="col-views"><span>Views</span></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="no-data">
<p>No data available</p>
</div>
</div>
</div>
<div class="grid-stats">
<div id="box-browsers">
<h1><i class="icon window maximize outline"></i><span>Browsers</span></h1>
<table class="ui-table" id="data-browsers">
<thead>
<tr>
<th class="col-browser"><span>Browser</span></th>
<th class="col-uv"><span>Users</span></th>
<th class="col-views"><span>Views</span></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="no-data">
<p>No data available</p>
</div>
</div>
<div id="box-screensizes">
<h1><i class="icon desktop"></i><span>Screen Resolutions</span></h1>
<table class="ui-table" id="data-screensizes">
<thead>
<tr>
<th class="col-screensize"><span>Screen Resolution</span></th>
<th class="col-uv"><span>Users</span></th>
<th class="col-views"><span>Views</span></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="no-data">
<p>No data available</p>
</div>
</div>
<div id="box-platforms">
<h1><i class="icon hdd"></i><span>Platforms</span></h1>
<table class="ui-table" id="data-platforms">
<thead>
<tr>
<th class="col-platform"><span>Platform</span></th>
<th class="col-uv"><span>Users</span></th>
<th class="col-views"><span>Views</span></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="no-data">
<p>No data available</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--END OF BODY-->
<!--MODALS-->
<div class="ui tiny basic modal" id="modal-clear-data-confirm">
<i class="close icon"></i>
<div class="header">
<i class="icon trash"></i><span>Clear Data</span>
</div>
<div class="content">
<p>Are you sure you would like to clear analytics data for the given time range?</p>
</div>
<div class="actions">
<div class="ui left floated red button negative" id="modal-clear-data-confirm-no">
<i class="icon cancel"></i>
<span>No</span>
</div>
<div class="ui green button positive" id="modal-clear-data-confirm-yes">
<i class="icon checkmark"></i>
<span>Yes</span>
</div>
</div>
</div>
<!--END OF MODALS-->
<div class="ui main page dimmer">
<div class="ui loader"></div>
</div>
<input type="hidden" id="st" value="<?=$_SESSION["st"];?>" />
<!--TABLE SORTER-->
<script src="node_modules/tablesorter/dist/js/jquery.tablesorter.min.js"></script>
<!--CHART-->
<script src="js/vendor/moment-with-locales.min.js"></script>
<script src="js/vendor/chart.min.js"></script>
<script src="js/sui-accordion.js"></script>
<script src="js/sui-calendar.js"></script>
<script src="js/analytics.js"></script>
</body>
</html>