Skip to content

Commit

Permalink
Replaced Google Analytics with Cloudflare privacy-first web analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffyactive committed Aug 17, 2023
1 parent 27502ea commit f8edc12
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 30 deletions.
15 changes: 5 additions & 10 deletions about/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@
<meta name="description" content="Why a Sniffypedia? Why structured data? Who initiated Sniffypedia and why?">
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="../style/sniffypedia.css">

<!-- Google Analytics collected by reelyActive -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-39535156-5', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<div class="container-fluid">
Expand Down Expand Up @@ -85,5 +75,10 @@ <h2> What's up with the logo? <br>
<footer class="footer">
<small> This Sniffypedia is made available under the Open Database License: http://opendatacommons.org/licenses/odbl/1.0/. Any rights in individual contents of the database are licensed under Creative Commons Attribution-ShareAlike 4.0 International: https://creativecommons.org/licenses/by-sa/4.0/ </small>
</footer>

<!-- Privacy-first web analytics with Cloudflare -->
<script defer src='https://static.cloudflareinsights.com/beacon.min.js'
data-cf-beacon='{"token": "c5291e68db1d4ba9862affb85120a8b4"}'>
</script>
</body>
</html>
15 changes: 5 additions & 10 deletions contribute/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,6 @@
<script type="text/javascript" src="../js/cormorant.js"></script>
<script type="text/javascript" src="../js/cuttlefish.js"></script>
<script type="text/javascript" src="../js/visualisation.js"></script>

<!-- Google Analytics collected by reelyActive -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-39535156-5', 'auto');
ga('send', 'pageview');
</script>
</head>
<body ng-app="contribute">
<div ng-controller="ContributionCtrl" class="container-fluid">
Expand Down Expand Up @@ -163,5 +153,10 @@ <h3> 8. Create a GitHub pull request </h3>
<footer class="footer">
<small> This Sniffypedia is made available under the Open Database License: http://opendatacommons.org/licenses/odbl/1.0/. Any rights in individual contents of the database are licensed under Creative Commons Attribution-ShareAlike 4.0 International: https://creativecommons.org/licenses/by-sa/4.0/ </small>
</footer>

<!-- Privacy-first web analytics with Cloudflare -->
<script defer src='https://static.cloudflareinsights.com/beacon.min.js'
data-cf-beacon='{"token": "c5291e68db1d4ba9862affb85120a8b4"}'>
</script>
</body>
</html>
15 changes: 5 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,6 @@
"image": "https://sniffypedia.org/images/social-share.png"
}
</script>

<!-- Google Analytics collected by reelyActive -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-39535156-5', 'auto');
ga('send', 'pageview');
</script>
</head>
<body ng-app="sniffypedia">
<div ng-controller="InteractionCtrl" class="container-fluid">
Expand Down Expand Up @@ -137,5 +127,10 @@ <h3> Search by name: </h3>
<footer class="footer">
<small> This Sniffypedia is made available under the Open Database License: http://opendatacommons.org/licenses/odbl/1.0/. Any rights in individual contents of the database are licensed under Creative Commons Attribution-ShareAlike 4.0 International: https://creativecommons.org/licenses/by-sa/4.0/ </small>
</footer>

<!-- Privacy-first web analytics with Cloudflare -->
<script defer src='https://static.cloudflareinsights.com/beacon.min.js'
data-cf-beacon='{"token": "c5291e68db1d4ba9862affb85120a8b4"}'>
</script>
</body>
</html>

0 comments on commit f8edc12

Please sign in to comment.