-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdashboard.html
167 lines (162 loc) · 5.83 KB
/
dashboard.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
155
156
157
158
159
160
161
162
163
164
165
166
167
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Dashboard</title>
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1">
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://gtm.vreeman.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-WKSDWK');</script>
<style>
html {
overflow-y: scroll;
overflow-x: hidden;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
body {
margin: 1% auto;
padding: 0 3%;
max-width: 30em;
font: 1.125em/1.6 BlinkMacSystemFont, -apple-system, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
footer, small {
font-size: 80%;
}
b, dt, strong {
font-weight: 700;
}
h1, h2, h3 {
line-height: 1.2;
}
a {
background-color: transparent;
}
code {
font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace;
font-size: 1em;
}
input, textarea {
width: 95%;
display: block;
padding: .5em 1%;
font-size: 1em;
}
input, textarea, fieldset {
margin-bottom: 1.5em;
}
textarea {
margin-top: 1.5em;
resize: vertical;
}
#day-table-container {
font: .75em/1 -apple-system, BlinkMacSystemFont, sans-serif;
}
</style>
<link rel="canonical" href="https://vreeman.com/">
<meta name="referrer" content="no-referrer">
<meta name="robots" content="noindex,follow">
</head>
<body>
<noscript><iframe src="https://gtm.vreeman.com/ns.html?id=GTM-WKSDWK" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<header>
<h1>Dashboard</h1>
<p><a href="https://vreeman.com/">Home</a> | <a href="https://vreeman.com/tools">Tools</a></p>
</header>
<div id="embed-api-auth-container"></div>
<div id="view-selector-container"></div>
<hr>
<div id="column-container"></div>
<div id="day-table-container"></div>
<div id="device-container"></div>
<hr>
<footer>
<p>Vreeman.com is the personal website of Simon Vreeman.</p>
<dl>
<dt>Privacy & Cookie Policy</dt>
<dd>Vreeman.com uses Google Analytics (<code>_ga</code>, <code>FPID</code>, & <code>FPLC</code>), and Google Tag Manager Server-side to measure and analyze anonymous user behavior data to improve the website in an ethical manner.</dd>
<dt>Colophon</dt>
<dd>Vreeman.com uses Cloudflare Pages to ensure it loads fast and the source code is hosted on Github.</dd>
<dt>Licenses</dt>
<dd>Text is licensed under <a href="https://creativecommons.org/licenses/by/4.0/" rel="license" title="Creative Commons Attribution 4.0 International License" data-vars-outbound-text="Creative Commons License" data-vars-outbound-link="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>. <code></></code> is licensed under <a href="https://opensource.org/licenses/MIT" rel="license" title="MIT License" data-vars-outbound-text="MIT License" data-vars-outbound-link="https://opensource.org/licenses/MIT">MIT License</a>.</dd>
</dl>
</footer>
<script>
(function(w,d,s,g,js,fs){
g=w.gapi||(w.gapi={});g.analytics={q:[],ready:function(f){this.q.push(f);}};
js=d.createElement(s);fs=d.getElementsByTagName(s)[0];
js.src='https://apis.google.com/js/platform.js';
fs.parentNode.insertBefore(js,fs);js.onload=function(){g.load('analytics');};
}(window,document,'script'));
</script>
<script>
gapi.analytics.ready(function() {
gapi.analytics.auth.authorize({
container: 'embed-api-auth-container',
clientid: '25048035464-k0o4mek6tcc3ii3f1jmvbcajb26igbkn.apps.googleusercontent.com'
});
var viewSelector = new gapi.analytics.ViewSelector({
container: 'view-selector-container'
});
viewSelector.execute();
var dataColumn = new gapi.analytics.googleCharts.DataChart({
query: {
metrics: 'ga:users,ga:sessions,ga:pageviews',
dimensions: 'ga:date',
'start-date': '8daysAgo',
'end-date': 'today',
'samplingLevel': 'HIGHER_PRECISION',
'prettyPrint': 'true'
},
chart: {
container: 'column-container',
type: 'COLUMN',
options: {
width: '100%'
}
}
});
var dataDayTable = new gapi.analytics.googleCharts.DataChart({
query: {
metrics: 'ga:transactions,ga:transactionRevenue',
dimensions: 'ga:date,ga:dayOfWeekName',
'start-date': '8daysAgo',
'end-date': 'today',
'sort': '-ga:date',
'samplingLevel': 'HIGHER_PRECISION',
'prettyPrint': 'true'
},
chart: {
container: 'day-table-container',
type: 'TABLE',
options: {
width: '100%',
fontSize: 1
}
}
});
var dataDeviceTable = new gapi.analytics.googleCharts.DataChart({
query: {
metrics: 'ga:sessions,ga:transactions',
dimensions: 'ga:deviceCategory',
'start-date': '8daysAgo',
'end-date': 'today',
'sort': '-ga:transactions',
'samplingLevel': 'HIGHER_PRECISION',
'prettyPrint': 'true'
},
chart: {
container: 'device-container',
type: 'TABLE',
options: {
width: '100%'
}
}
});
viewSelector.on('change', function(ids) {
dataColumn.set({query: {ids: ids}}).execute();
dataDayTable.set({query: {ids: ids}}).execute();
dataDeviceTable.set({query: {ids: ids}}).execute();
});
});
</script>
</body>
</html>