Skip to content

Commit 13b4547

Browse files
committed
Add matomo code.
- Partially resolves https://redmine.library.yorku.ca/issues/4463
1 parent a2ccf49 commit 13b4547

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!-- Matomo -->
2+
<script>
3+
var _paq = window._paq = window._paq || [];
4+
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
5+
_paq.push(['trackPageView']);
6+
_paq.push(['enableLinkTracking']);
7+
(function() {
8+
var u="https://matomo.library.yorku.ca/";
9+
_paq.push(['setTrackerUrl', u+'matomo.php']);
10+
_paq.push(['setSiteId', '91']);
11+
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
12+
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
13+
})();
14+
</script>
15+
<!-- End Matomo Code -->

zensical.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ extra_css = ["stylesheets/extra.css"]
122122
# Read more:
123123
# - https://zensical.org/docs/customization/#extending-the-theme
124124
#
125-
#custom_dir = "overrides"
125+
custom_dir = "overrides"
126126

127127
# With the "favicon" option you can set your own image to use as the icon
128128
# browsers will use in the browser title bar or tab bar. The path provided
@@ -393,3 +393,8 @@ combine_header_slug = true
393393
[project.markdown_extensions.pymdownx.tasklist]
394394
custom_checkbox = true
395395
[project.markdown_extensions.pymdownx.tilde]
396+
397+
[project.extra.analytics]
398+
provider = "matomo"
399+
property = "91"
400+
url_base = "https://matomo.library.yorku.ca"

0 commit comments

Comments
 (0)