-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.php
More file actions
260 lines (212 loc) · 10.9 KB
/
index.php
File metadata and controls
260 lines (212 loc) · 10.9 KB
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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
<?php
require_once 'app/facebook.php';
?>
<!DOCTYPE html>
<html lang="en" class='merriweather'>
<head>
<title>Digital Dashboard</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta charset="utf-8">
<meta http-equiv="content-type" content="text/html; charset=UTF8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!-- Fonts -->
<script src="//use.typekit.net/bft4gbb.js"></script>
<script>try{Typekit.load({ async: true });}catch(e){}</script>
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0/css/select2.min.css"/>
<link rel="stylesheet" type="text/css" href="/resources/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<!-- Studio Theme -->
<link rel="stylesheet" type="text/css" href="/resources/css/bootstrap-theme.min.css" />
<link rel="stylesheet" type="text/css" href="/resources/css/bootstrap-studio.css" />
<link rel="stylesheet" type="text/css" href="/resources/css/main.css" />
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
//IS tracker
ga('create', 'UA-69309716-2', 'auto');
ga('send', 'pageview');
//Unified tracker
ga('create', 'UA-65401320-1', 'auto', {'name':'unified'});
ga('unified.send', 'pageview');
</script>
</head>
<body class='tk-merriweather'>
<div id='container'>
<?php print getFBEmbeedScript(); ?>
<div id='dialog'></div>
<!-- Header and navigation -->
<header class='navbar-fixed-top'>
<nav id="primary-nav" class='navbar navbar-inverse navbar-no-margin navbar-no-borderradius page-padding'>
<div class="container-fluid row">
<div class="col-lg-10 col-md-9 col-sm-8 col-xs-12">
<h1 class="title">Digital Metrics Dashboard</h1>
</div>
<div class="col-xs-3 hidden-sm hidden-md hidden-lg">
<button id="museum-bar-toggle" type="button" class="navbar-toggle collapsed btn btn-default" data-toggle="collapse" data-target="#museum-bar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="col-lg-2 col-md-3 col-sm-4 col-xs-9">
<div class="timespan">
<label for="timespan" class='sr-only'>Stats for the selected timespan</label>
<select id='timespan'>
<option value='lw'>Last 7 Days</option>
<option value='lm' selected="selected">Last Month</option>
<option value='l3m'>Previous 3 Months</option>
<option value='ly'>Last Year</option>
</select>
</div>
</div>
</div>
</nav>
<nav id="secondary-nav" class="navbar navbar-inverse navbar-no-margin navbar-no-border navbar-no-borderradius museum-bar page-padding">
<div id="museum-bar" class="container-fluid row collapse navbar-collapse">
<div id="cmp" class="museum active col-sm-5ths">
<img class='logo inactive' alt='Carnegie Museums of Pittsburgh' src='/resources/img/CMP_SIG_Grey.png'>
<img class='logo active' alt='Carnegie Museums of Pittsburgh (Active)' src='/resources/img/CMP_SIG_White.png'>
</div>
<div id="cmoa" class="museum col-sm-5ths">
<img class='logo inactive' alt='Carnegie Museum of Art' src='/resources/img/cmoa_black.png'>
<img class='logo active' alt='Carnegie Museum of Art (Active)' src='/resources/img/cmoa_white.png'>
</div>
<div id="cmnh" class="museum col-sm-5ths">
<img class='logo inactive' alt='Carnegie Museum of Natural History' src='/resources/img/cmnh_black.png'>
<img class='logo active' alt='Carnegie Museum of Natural History (Active)' src='/resources/img/cmnh_white.png'>
</div>
<div id="csc" class="museum col-sm-5ths">
<img class='logo inactive' alt='Carnegie Science Center' src='/resources/img/csc_black.png'>
<img class='logo active' alt='Carnegie Science Center (Active)' src='/resources/img/csc_white.png'>
</div>
<div id="warhol" class="museum col-sm-5ths">
<img class='logo inactive' alt='Andy Warhol Museum' src='/resources/img/warhol.png'>
<img class='logo active' alt='Andy Warhol Museum (Active)' src='/resources/img/warhol_white.png'>
</div>
</div>
<div class="hidden-sm hidden-md hidden-lg active-museum">
<img id="m-warhol" class='logo' alt='Andy Warhol Museum (Active)' src='/resources/img/warhol_white.png'>
<img id="m-csc" class='logo' alt='Carnegie Science Center (Active)' src='/resources/img/csc_white.png'>
<img id="m-cmnh" class='logo' alt='Carnegie Museum of Natural History (Active)' src='/resources/img/cmnh_white.png'>
<img id="m-cmoa" class='logo' alt='Carnegie Museum of Art (Active)' src='/resources/img/cmoa_white.png'>
<img id="m-cmp" class='logo active' alt='Carnegie Museums of Pittsburgh (Active)' src='/resources/img/CMP_SIG_White.png'>
</div>
</nav>
</header>
<!-- All content should be in this div -->
<div class="main-body ">
<!-- White box -->
<div class="white-bg page-padding">
<div class="row">
<div id='infotext' class="col-xs-12 col-sm-12">
<p>From <b><span id='start-date'></span> to <span id='end-date'></span></b> the <b><span id='museum-text'></span></b> had <b><span id='museum-users'></span></b> people visit their websites.
Those users viewed <b><span id='pageviews'></span></b> pages.
During that time, visitors spent an average of <b><span id='time-on-site'></span></b> seconds using the website,
viewing an average of <b><span id='pages-per-visit'></span></b> pages per visit.
</p>
</div>
</div>
<div class="row">
<div id='chart' class="col-xs-12 col-sm-12">
</div>
<div id='socialmedia' class="social-display hidden-xs col-sm-3">
</div>
</div>
<div class="col-center">
<div class="row legend legend-stats">
<div class="col-sm-4 col-xs-12">
<div class="legend-toggle legend-views active" data-series="views">Views <i class="fa fa-check"></i></div>
</div>
<div class="col-sm-4 col-xs-6">
<div class="legend-toggle legend-users active" data-series="users">Users <i class="fa fa-check"></i></div>
</div>
<div class="col-sm-4 col-xs-6">
<div class="legend-toggle legend-admissions active" data-series="admissions">Admission <i class="fa fa-check"></i></div>
</div>
</div>
</div>
<div class="">
<div class="row legend legend-social">
<div class="col-sm-3 col-xs-6">
<div class="legend-toggle legend-anomolies" data-series="anomolies">Anomolies <i class="fa fa-check"></i></div>
</div>
<div class="col-sm-3 col-xs-6">
<div class="legend-toggle legend-twitter" data-series="twitter">Twitter <i class="fa fa-check"></i></div>
</div>
<div class="col-sm-3 col-xs-6">
<div class="legend-toggle legend-facebook" data-series="facebook">Facebook <i class="fa fa-check"></i></div>
</div>
<div class="col-sm-3 col-xs-6">
<div class="legend-toggle legend-instagram" data-series="instagram">Instagram <i class="fa fa-check"></i></div>
</div>
</div>
</div>
</div>
<!-- Grey box -->
<div class="grey-bg page-padding grey-box">
<div class="row">
<div id='social-holder'>
</div>
</div>
</div>
<!-- Black box -->
<div class="darkgrey-bg page-padding black-box">
<div class="row footer">
<a href="http://studio.carnegiemuseums.org" target="_blank">
<img class='footer-logo' alt="Innovation Studio Logo" src="/resources/img/Innovation-Studio-logo-footer1.png">
</a>
<p>
Carnegie Museums of Pittsburgh <br/>
Innovation Studio <br/>
4400 Forbes Avenue <br/>
Pittsburgh, PA 15213 <br/>
<a href="http://www.carnegiemuseums.org/interior.php?pageID=100">Privacy Policy</a>
</p>
<p>
Made with ♥ in the City of Champions
</p>
</div>
</div>
<!-- Where oh where should these go?
<div id='pop-pages' class="col-xs-12 col-sm-12">
<p class='no-pg-space'>The most popular pages were:</p>
<ol id='topPages'>
</ol>
</div>
-->
<!-- end main content -->
</div>
<div id="help-panel" title="About this Dashboard">
<p>This dashboard includes a summary of information from the Carnegie Museums of Pittsburgh various web assets.</p>
<p>Web activity shows a timeline of events that occured during the selected timespan including how many people viewed pages on our websites, popular social media posts, and pages that recived a spike in traffic.</p>
<p>The Social Media section shows the post(s) viewers responded to the most and the pages that they went to after seeing a post. It also keeps a track of our followers and the change of followers month to month.</p>
</div>
<!-- Javascript -->
<!-- jQuery -->
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<!-- Bootstrap -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<!-- jQuery UI -->
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<!-- Highcharts -->
<script src="http://code.highcharts.com/stock/highstock.js"></script>
<!-- D3 -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.js"></script>
<!--Select2-->
<script src="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0/js/select2.min.js"></script>
<!--Moment-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.6/moment.min.js"></script>
<!--Numeral-->
<script src="//cdnjs.cloudflare.com/ajax/libs/numeral.js/1.4.5/numeral.min.js"></script>
<!-- Main JS script -->
<script src="/resources/js/main.js"></script>
<!--Load account info-->
<?php require_once 'load.php' ?>
</body>
</html>