Hello,
I’d like to know how many people view our pages with Matomo, so I had to add a javascript in all html pages. How could I do that ?
With nbdev v1 I’ve added it in the template.
I don’t understand how to do it reading Quarto - Website Tools
Is there a way to put the same code in every pages ?
Thanks Jeremy,
I achieve to do it with include-in-header
in _quarto.yml :
format:
html:
theme: litera
include-in-header:
file: matomo_tracking.html
The file matomo_tracking.html contains the Javascript tracking code inside a <script>
tag.
3 Likes