forked from Yshayy/dashboard-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
154 lines (140 loc) · 4.67 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<title>Dashboard Starter UI, by Keen IO</title>
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="keen.dashboard.css">
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="./">Dashboard Starter UI</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-left">
<li><a href="https://keen.io">Home</a></li>
<li><a href="https://keen.io/team">Team</a></li>
<li><a href="https://github.com/keenlabs/dashboard-starter-kit">Github</a></li>
<li><a href="https://users.keen.io">Chat Support</a></li>
</ul>
</div>
</div>
</div>
<div class="fluid-container">
<div class="row">
<div class="col-sm-8">
<div class="chart-wrapper">
<div class="chart-title">
Pageviews by browser (past 24 hours)
</div>
<div class="chart-stage">
<div id="chart-01"></div>
</div>
<div class="chart-notes">
This is a sample text region to describe this chart.
</div>
</div>
</div>
<div class="col-sm-4">
<div class="chart-wrapper">
<div class="chart-title">
Pageviews by browser (past 5 days)
</div>
<div class="chart-stage">
<div id="chart-02"></div>
</div>
<div class="chart-notes">
Notes go down here
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-4">
<div class="chart-wrapper">
<div class="chart-title">
Impressions by advertiser
</div>
<div class="chart-stage">
<div id="chart-03"></div>
</div>
<div class="chart-notes">
Notes go down here
</div>
</div>
</div>
<div class="col-sm-4">
<div class="chart-wrapper">
<div class="chart-title">
Impressions by device
</div>
<div class="chart-stage">
<div id="chart-04"></div>
</div>
<div class="chart-notes">
Notes go down here
</div>
</div>
</div>
<div class="col-sm-4">
<div class="chart-wrapper">
<div class="chart-title">
Impressions by country
</div>
<div class="chart-stage">
<div id="chart-05"></div>
</div>
<div class="chart-notes">
Notes go down here
</div>
</div>
</div>
</div>
<p class="small text-muted">Built with ♥ by <a href="https://keen.io">Keen IO</a></p>
</div>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="https://d26b395fwzu5fz.cloudfront.net/latest/keen.min.js"></script>
<script src="keen.dashboard.js"></script>
<script>
var meta = new Keen({
projectId: "5368fa5436bf5a5623000000",
writeKey: "725f3a571824d9c29f6e4d1c39af349a114d9034f8e493f95d39802529e2ccbb174033077bdcf10b541dbb50c20105922c59bbe1fe7741cb4b632dd0bc84fe98c0b591e17da3d429ef867cc674be0ad20ad768a5210662d2d18ff5492f37a1f91ce697a5489064bb3fa95c827b6cb394",
requestType: "beacon"
});
meta.addEvent("visits", {
page: {
title: document.title,
host: document.location.host,
href: document.location.href,
path: document.location.pathname,
protocol: document.location.protocol.replace(/:/g, ""),
query: document.location.search
},
visitor: {
referrer: document.referrer,
ip_address: "${keen.ip}",
// tech: {} //^ created by ip_to_geo add-on
user_agent: "${keen.user_agent}"
// visitor: {} //^ created by ua_parser add-on
},
keen: {
timestamp: new Date().toISOString(),
addons: [
{ name:"keen:ip_to_geo", input: { ip:"visitor.ip_address" }, output:"visitor.geo" },
{ name:"keen:ua_parser", input: { ua_string:"visitor.user_agent" }, output:"visitor.tech" }
]
}
});
// More data modeling examples here:
// https://github.com/keenlabs/data-modeling-guide/
</script>
</body>
</html>