Skip to content

Commit

Permalink
Add GoatCounter for analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb531 committed Aug 3, 2024
1 parent c33fabd commit 350c583
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
<meta name="theme-color" content="#ffffff" />
<link rel="shortcut icon" href="/icons/favicon.png" />
<link rel="apple-touch-icon" href="/icons/app-icon-192.png" sizes="192x192" />
<script
data-goatcounter="https://calebevans-connectfour.goatcounter.com/count"
async
src="https://gc.zgo.at/count.v4.js"
crossorigin="anonymous"
integrity="sha384-nRw6qfbWyJha9LhsOtSb2YJDyZdKvvCFh0fJYlkquSFjUxp9FVNugbfy8q1jdxI+"
></script>
</head>
<body>

Expand Down
6 changes: 4 additions & 2 deletions server/csp.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ export default {
'data:'
],
'script-src': [
"'self'"
"'self'",
"https://gc.zgo.at"
],
'connect-src': [
"'self'",
"ws://localhost:24678",
"ws://localhost:8080",
"wss://connectfour.calebevans.me",
"http://localhost:24678"
"http://localhost:24678",
"https://calebevans-connectfour.goatcounter.com/count"
],
'manifest-src': [
"'self'"
Expand Down

0 comments on commit 350c583

Please sign in to comment.