188 lines
6.1 KiB
HTML
188 lines
6.1 KiB
HTML
<html>
|
|
<head>
|
|
<title>jsCrypt Analytics</title>
|
|
<script src="https://d26b395fwzu5fz.cloudfront.net/3.4.1/keen.min.js" type="text/javascript"></script>
|
|
<script src="https://code.jquery.com/jquery-2.2.3.min.js" integrity="sha256-a23g1Nt4dtEYOj7bR+vTu7+T8VP13humZFBJNIYoEJo=" crossorigin="anonymous"></script>
|
|
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
|
|
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.2/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-aNUYGqSUL9wG/vP7+cWZ5QOM4gsQou3sBfWRr/8S3R1Lv0rysEmnwsRKMbhiQX/O" crossorigin="anonymous">
|
|
</head>
|
|
<body>
|
|
<center><h1>jsCrypt Analytics</h1></center>
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md-9" id="c1">Loading...</div>
|
|
<div class="col-md-3" id="c2"></div>
|
|
</div>
|
|
<hr>
|
|
<div class="row">
|
|
<div class="col-md-3" id="c3"></div>
|
|
<div class="col-md-3" id="c4"></div>
|
|
<div class="col-md-3" id="c5"></div>
|
|
<div class="col-md-3" id="c6"></div>
|
|
</div>
|
|
<hr>
|
|
<div class="row">
|
|
<div class="col-md-2" id="c7"></div>
|
|
<div class="col-md-2" id="c11"></div>
|
|
<div class="col-md-8" id="c8"></div>
|
|
</div>
|
|
<hr>
|
|
<div class="row">
|
|
<div class="col-md-12" id="c9"></div>
|
|
</div>
|
|
<hr>
|
|
<div class="row">
|
|
<div class="col-md-6" id="c10"></div>
|
|
<div class="col-md-2" id="c12"></div>
|
|
<div class="col-md-2" id="c13"></div>
|
|
<div class="col-md-2" id="c14"></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
var x = new Keen({
|
|
projectId: "572defc807271937a30dfa34",
|
|
writeKey: "519d6a7e6b8a069a4103b318bfa8635cb0ec6cef0f0726ba1b44856d8d6ebabe93d99b825c319e53e24f18c4f3f1f78ba5e0d5bf74400ad4713a3c686da80848b78c1ff53d1080c5ddb6d9225ccd211228adbf9e82c6b8ab9a2dc3c1557e776f",
|
|
readKey: "c9d13a44462aac096546d82e70ddbae6e033078e72acc8088704efcdff0a54a46f2efb6a0b7adc1c855d0d2589c89697650e1c9bc75aacfad5e9723748e0a5ce3f49a2b8b75bd74ef392cd4012836e730270382d46ffb94ae55b918b10dc5b83"
|
|
});
|
|
var data = new Keen.Query("count", {
|
|
event_collection: "jsRun",
|
|
interval: "hourly",
|
|
timeframe: "this_12_hours"
|
|
});
|
|
x.run(data, function(err, res){
|
|
if (err) {
|
|
alert(err);
|
|
} else {
|
|
console.log("connection successfull");
|
|
}
|
|
});
|
|
x.draw(data, document.getElementById("c1"), {
|
|
chartType: "areachart",
|
|
title: "runs in last 12 hours"
|
|
});
|
|
//----------
|
|
var data = new Keen.Query("count", {
|
|
event_collection: "jsRun",
|
|
//interval: "hourly",
|
|
timeframe: "this_12_hours"
|
|
});
|
|
x.draw(data, document.getElementById("c2"), {
|
|
//chartType: "areachart",
|
|
title: "runs in last 12 hours Total"
|
|
});
|
|
//----------
|
|
var data = new Keen.Query("count", {
|
|
event_collection: "jsRun",
|
|
//interval: "hourly",
|
|
timeframe: "this_24_hours"
|
|
});
|
|
x.draw(data, document.getElementById("c3"), {
|
|
//chartType: "areachart",
|
|
title: "runs in last 24 hours Total"
|
|
});
|
|
//----------
|
|
var data = new Keen.Query("count", {
|
|
event_collection: "jsRun",
|
|
//interval: "hourly",
|
|
timeframe: "this_1_hours"
|
|
});
|
|
x.draw(data, document.getElementById("c4"), {
|
|
//chartType: "areachart",
|
|
title: "runs in last 1 hours Total"
|
|
});
|
|
//----------
|
|
var data = new Keen.Query("count", {
|
|
event_collection: "jsRun",
|
|
//interval: "hourly",
|
|
timeframe: "this_10_minutes"
|
|
});
|
|
x.draw(data, document.getElementById("c5"), {
|
|
//chartType: "areachart",
|
|
title: "runs in last 10 minutes Total"
|
|
});
|
|
//----------
|
|
var data = new Keen.Query("count", {
|
|
event_collection: "jsRun",
|
|
//interval: "hourly",
|
|
timeframe: "this_1_minutes"
|
|
});
|
|
x.draw(data, document.getElementById("c6"), {
|
|
//chartType: "areachart",
|
|
title: "runs in last 1 minutes Total"
|
|
});
|
|
//----------
|
|
var data = new Keen.Query("count", {
|
|
event_collection: "jsRun",
|
|
//interval: "hourly",
|
|
timeframe: "this_1_years"
|
|
});
|
|
x.draw(data, document.getElementById("c7"), {
|
|
//chartType: "areachart",
|
|
title: "runs in this year Total"
|
|
});
|
|
//----------
|
|
var data = new Keen.Query("count", {
|
|
event_collection: "jsRun",
|
|
interval: "monthly",
|
|
timeframe: "this_1_years"
|
|
});
|
|
x.draw(data, document.getElementById("c8"), {
|
|
chartType: "areachart",
|
|
title: "runs in this year"
|
|
});
|
|
//----------
|
|
var data = new Keen.Query("count", {
|
|
event_collection: "jsRun",
|
|
groupBy: "url",
|
|
timeframe: "this_1_years"
|
|
});
|
|
x.draw(data, document.getElementById("c9"), {
|
|
title: "different URLs (1 year)",
|
|
chartType: "columnchart",
|
|
chartOptions: {
|
|
isStacked: true
|
|
}
|
|
});
|
|
//---
|
|
var data = new Keen.Query("count", {
|
|
event_collection: "jsRun",
|
|
groupBy: "user_agent",
|
|
timeframe: "this_1_years"
|
|
});
|
|
x.draw(data, document.getElementById("c10"), {
|
|
title: "different IPs (1 year)",
|
|
});
|
|
//---
|
|
var data = new Keen.Query("count", {
|
|
event_collection: "jsRun",
|
|
timeframe: "this_1_month"
|
|
});
|
|
x.draw(data, document.getElementById("c12"), {
|
|
title: "runs in this month Total",
|
|
});
|
|
//---
|
|
var data = new Keen.Query("count", {
|
|
event_collection: "jsRun",
|
|
timeframe: "last_1_month"
|
|
});
|
|
x.draw(data, document.getElementById("c13"), {
|
|
title: "runs in last month Total",
|
|
});
|
|
//---
|
|
var data = new Keen.Query("count", {
|
|
event_collection: "jsRun",
|
|
groupBy: "ip_address",
|
|
timeframe: "this_1_year"
|
|
});
|
|
x.draw(data, document.getElementById("c14"), {
|
|
title: "User Agent (1 year)",
|
|
});
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|