-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
35 lines (32 loc) · 1020 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>GA totals to Slack</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="script.js"></script>
<script src="script2.js"></script>
<script src="https://apis.google.com/js/client.js?onload=authorize"></script>
</head>
<body>
<h1>Google Analytics to Slack</h1>
<div id="accounts">
<p>Available accounts:</p>
</div>
<div>
<p>Available properties:</p>
<ol id="properties">
</ol>
</div>
<button id="auth-button" hidden>Authorize</button>
<p><input type="text" id="profileID" name="profileID" value="default"></p>
<p id="show-users"></p>
<p id="show-pageviews"></p>
<button id="send-button" onclick="sendtoslack(gapageviews, gausers)">Send to slack</button>
<button id="refresh-button" onclick="getnewprofile()">Refresh</button>
<script>
// Add an event listener to the 'auth-button'.
document.getElementById('auth-button').addEventListener('click', authorize);
</script>
</body>
</html>