Skip to content

Commit 8fac49f

Browse files
committed
Feature: add matomo
Adds Matomo analytics.
1 parent 849a92e commit 8fac49f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

openlibrary/templates/site/head.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,14 @@
5858
</style>
5959
</noscript>
6060
<script>
61-
61+
var _mtm = window._mtm = window._mtm || [];
62+
_mtm.push({'mtm.startTime': (new Date().getTime()), 'event': 'mtm.Start'});
63+
(function() {
64+
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
65+
g.async=true; g.src='https://apollo.archive.org/js/container_7cLc1b4U.js'; s.parentNode.insertBefore(g,s);
66+
})();
6267
/* @licstart The following is the entire license notice for the
63-
* JavaScript code in this page.
68+
* JavaScript code in this page served from openlibrary.org.
6469
*
6570
* This program is free software: you can redistribute it and/or modify
6671
* it under the terms of the GNU Affero General Public License as published by

0 commit comments

Comments
 (0)