Skip to content

Commit f05341a

Browse files
committed
add Matomo fix #284
1 parent cbc223d commit f05341a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

_output.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
bookdown::gitbook:
22
css: style.css
3+
includes:
4+
in_header: matomo.html
35
split_by: chapter
46
config:
57
sharing:

matomo.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<!-- Matomo -->
2+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.css" />
3+
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js" data-cfasync="false"></script>
4+
<script src="https://ropensci.org/scripts/matomo.js"></script>
5+
<noscript><p><img src="https://ropensci.matomo.cloud/matomo.php?idsite=1&amp;rec=1" style="border:0;" alt="" /></p></noscript>
6+
<!-- End Matomo Code -->

0 commit comments

Comments
 (0)