JavaScript Snippet Includes #3818
-
I'm trying to add analytics to my website. I use Plausible and the scripts come in a shape that looks like this: <script defer data-domain="yourdomain.com" src="https://plausible.io/js/script.js"></script> Instructions state:
So I gather I should be doing something with I note that the Quarto docs seem to have previously had a section on including custom scripts (at least, assuming that from the TOC for the page) but that no longer is specified in the docs themselves. I imagine the solution to this is a single line. Can someone help me find that line and where to put it? In case it helps, the repo for my quarto website is public and available here. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think you're looking for this option: https://quarto.org/docs/output-formats/html-basics.html#includes You can use this in your _quarto.yml file like so:
or
Hth! |
Beta Was this translation helpful? Give feedback.
I think you're looking for this option:
https://quarto.org/docs/output-formats/html-basics.html#includes
You can use this in your _quarto.yml file like so:
or
Hth!