changeset 6641:2aa045e06fff

add goatcounter GDPR privacy preserving tracking to see what pages people are visiting.
author John Rouillard <rouilj@ieee.org>
date Wed, 27 Apr 2022 20:51:31 -0400
parents 6ac3667706be
children 4fc89a7c7707
files website/www/_templates/layout.html
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/website/www/_templates/layout.html	Tue Apr 26 17:22:33 2022 -0400
+++ b/website/www/_templates/layout.html	Wed Apr 27 20:51:31 2022 -0400
@@ -120,5 +120,17 @@
       </div>
     </div>
 {%- endblock %}
+    <script>
+      /* locally hosted goatcounter https://www.goatcounter.com/ */
+      /* include site info in path url to allow multiple sites to be
+      tracked together */
+      window.goatcounter = {
+      path: function(p) { return location.host + p }
+      }
+    </script>
+    <script data-goatcounter="https://stats.rouilj.dynamic-dns.net/count"
+	    integrity="sha384-QGgNMMRFTi8ul5kHJ+vXysPe8gySvSA/Y3rpXZiRLzKPIw8CWY+a3ObKmQsyDr+a"
+            async="" src="_static/goatcounter_count.v3.js">
+    </script>
   </body>
 </html>

Roundup Issue Tracker: http://roundup-tracker.org/