Skip to content

Commit

Permalink
Add matomo (#19)
Browse files Browse the repository at this point in the history
* add matomo

* add matomo

* add matomo

* add matomo

* add matomo

* Create matomo.js

* fix matomo

* fit matomo

* fix matomo

* fix matomo

* fix matomo
  • Loading branch information
sierramatice authored Oct 25, 2022
1 parent f765f32 commit 1ba7d3a
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions about.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript>
<!-- Matomo -->
<script src="assets/js/matomo.js"></script>
</head>
<body class="is-preload">

Expand Down
11 changes: 11 additions & 0 deletions assets/js/matomo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
var _paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://piwik.cirg.washington.edu/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '36']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
2 changes: 2 additions & 0 deletions demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript>
<!-- Matomo -->
<script src="assets/js/matomo.js"></script>
</head>
<body class="is-preload">

Expand Down
2 changes: 2 additions & 0 deletions funding.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript>
<!-- Matomo -->
<script src="assets/js/matomo.js"></script>
</head>
<body class="is-preload">

Expand Down
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript>
<!-- Matomo -->
<script src="assets/js/matomo.js"></script>
</head>
<body class="is-preload">

Expand Down
3 changes: 3 additions & 0 deletions timeline.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript>

<!-- Matomo -->
<script src="assets/js/matomo.js"></script>
</head>
<body class="is-preload">

Expand Down

0 comments on commit 1ba7d3a

Please sign in to comment.