Skip to content

Commit 138f72d

Browse files
authored
Merge pull request #10840 from scottbarnes/feature-add-matomo
Feature: add matomo
2 parents 9931dad + b097310 commit 138f72d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

openlibrary/templates/site/head.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
<link rel="canonical" href="$request.canonical_url" />
2121
<link rel="preconnect" href="https://athena.archive.org">
22+
<link rel="preconnect" href="https://apollo.archive.org">
2223

2324
<link rel="search" type="application/opensearchdescription+xml" title="Open Library" href="/static/opensearch.xml">
2425
<link rel="manifest" href="/static/manifest.json">
@@ -58,9 +59,14 @@
5859
</style>
5960
</noscript>
6061
<script>
61-
62+
var _mtm = window._mtm = window._mtm || [];
63+
_mtm.push({'mtm.startTime': (new Date().getTime()), 'event': 'mtm.Start'});
64+
(function() {
65+
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
66+
g.async=true; g.src='https://apollo.archive.org/js/container_7cLc1b4U.js'; s.parentNode.insertBefore(g,s);
67+
})();
6268
/* @licstart The following is the entire license notice for the
63-
* JavaScript code in this page.
69+
* JavaScript code in this page served from openlibrary.org.
6470
*
6571
* This program is free software: you can redistribute it and/or modify
6672
* it under the terms of the GNU Affero General Public License as published by

0 commit comments

Comments
 (0)