Commit 8e3620e5 authored by Maarten de Waard's avatar Maarten de Waard 🤘🏻
Browse files

Merge branch '78-include-matomo' into 'master'

Resolve "Include Matomo"

Closes #78

See merge request totem/website!68
parents 90c2f36b 1a4b3a5f
// Load the Matomo script to gather anonymised statistics:
/* global Piwik */
$(function() {
var piwikTracker = Piwik.getTracker('https://livestats.totem-project.org/matomo.php', 8);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
});
......@@ -5,7 +5,7 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta http-equiv="X-XSS-Protection" content="1; mode=block">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; font-src 'self' fonts.gstatic.com; style-src 'self' fonts.googleapis.com; img-src 'self' learn.totem-project.org;">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; font-src 'self' fonts.gstatic.com; style-src 'self' fonts.googleapis.com; img-src 'self' learn.totem-project.org; script-src 'self' https://livestats.totem-project.org; connect-src 'self' https://livestats.totem-project.org">
<meta name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Join the totem project to learn more about security on the web">
......@@ -46,4 +46,6 @@
<%= yield %>
<%= partial "partials/footer" %>
</body>
<%= javascript_include_tag "https://livestats.totem-project.org/piwik.js" %>
<%= javascript_include_tag "livestats" %>
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment