Commit 12a42981 authored by julientaq's avatar julientaq
Browse files

matomo stats

parent 44d6fff7
[submodule "themes/ananke"]
path = themes/ananke
url = https://github.com/budparr/gohugo-theme-ananke.git
[submodule "themes/matomo"]
path = themes/matomo
url = https://github.com/holehan/hugo-components-matomo.git
baseURL = "https://www.pagedjs.org/"
languageCode = "en-us"
title = "pagedjs, home of HTML printing"
theme = "pagedjs"
theme = ["pagedjs", "matomo"]
# relativeURLs = true
# [params]
# talkyardServerUrl = "https://comments-for-pagedjs-org.talkyard.net"
# talkyardScriptUrl = "https://c1.ty-cdn.net/-/talkyard-comments.min.js"
[params.matomo]
url = "https://stats.coko.foundation"
id = 17
[markup]
[markup.goldmark]
......
......@@ -42,3 +42,4 @@ header: "this is fun"
<!-- {{< ctl-logo class="ctl-logo" >}} -->
......@@ -34,3 +34,8 @@ Paged.js website was designed and built by [Adam Hyde](https://www.adamhyde.net)
<!-- The Unicode character on each page and the story around it comes from the excellent [decodeunicode](https://www.decodeunicode.org/) project. -->
The website is mainly using the [Jost*](https://indestructibletype.com/Jost.html) font from Indestructible type and [Fanwood Text](https://www.theleagueofmoveabletype.com/fanwood) from the league of moveable type, both free and open source fonts. Oh, we’re also using [Victor Mono](https://rubjo.github.io/victor-mono/) when it comes to code, designed by Rune B which is also free and open source.
## Privacy
{{< matomo-optout >}}
\ No newline at end of file
{"Target":"css/main.min.75011a2b8e23f915204b3e33fcd0c9e5.css","MediaType":"text/css","Data":{"Integrity":"md5-dQEaK44j+RUgSz4z/NDJ5Q=="}}
\ No newline at end of file
{"Target":"css/main.min.971f43780d07166f6ce804284e4d87cf.css","MediaType":"text/css","Data":{"Integrity":"md5-lx9DeA0HFm9s6AQoTk2Hzw=="}}
\ No newline at end of file
Subproject commit ddcb4ee2c09517bdd76c175d041f0b3b4868364f
......@@ -136,4 +136,17 @@ article {
.menu-call {
display: none;
}
\ No newline at end of file
}
/* matomo */
.MatomoOptout {
grid-column: main/end;
text-align: center;
button {
border: 2px solid var(--color-grey);
padding: 1em 1em;
margin: 2em;
}
}
{{ define "main"}}
<main>
<div>
......
......@@ -87,6 +87,28 @@
<script src="{{$docjs.Permalink}}"></script>
{{ end }}
{{ end }}
{{/* {{ partial "matomo-tracking" . }} */}}
<!-- Matomo -->
<script type="text/javascript">
var _paq = window._paq || [];
/ tracker methods like "setCustomDimension" should be called before "trackPageView" /
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//stats.coko.foundation/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '17']);
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);
})();
</script>
<noscript><p><img src="//stats.coko.foundation/matomo.php?idsite=17&rec=1" style="border:0;" alt="" /></p></noscript>
<!-- End Matomo Code -->
</body>
</html>
\ No newline at end of file
......@@ -29,6 +29,9 @@
</article>
{{ end }}
{{ define "footer" }}
<!-- -->
{{ end }}
\ No newline at end of file
{{/*
<p class="tagslist">
{{ with .Params.tags }}
<span>Tags</span>
{{ $sort := sort . }}
{{ $links := apply $sort "partial" "post-tag-link.html" "." }}
{{ $clean := apply $links "chomp" "." }}
{{ delimit $clean " / " }}
{{ end }}
</p>
*/}}
{{- if .Params.tags -}}
{{- range .Params.tags -}}
{{- $url := print "/tags/" ( . | urlize) "/" -}}
......
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