Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/_quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ website:
format:
html:
include-in-header:
- "include-in-header.html"
- text: |
<script src="https://cdn.jsdelivr.net/gh/posit-dev/supported-by-posit/js/badge.min.js" data-light-bg="#404041" data-light-fg="#ffffff" data-dark-bg="#ffffff" data-dark-fg="#404041"></script>
theme:
Expand Down
6 changes: 6 additions & 0 deletions docs/include-in-header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<!-- Privacy-friendly analytics by Plausible -->
<script async src="https://plausible.io/js/pa-pN3x5-t50CqjdU3JPOYbw.js"></script>
<script>
window.plausible=window.plausible||function(){(plausible.q=plausible.q||[]).push(arguments)},plausible.init=plausible.init||function(i){plausible.o=i||{}};
plausible.init()
</script>
Comment on lines +3 to +6
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The inline snippet defines plausible.init and then calls plausible.init() with no arguments, which only sets plausible.o to an empty object. If no runtime configuration is intended, this extra inline script is unnecessary (and adds an inline-JS requirement). If configuration is intended, pass explicit options and ensure initialization happens in a way that actually affects the loaded Plausible script (e.g., don’t call init as a no-op).

Suggested change
<script>
window.plausible=window.plausible||function(){(plausible.q=plausible.q||[]).push(arguments)},plausible.init=plausible.init||function(i){plausible.o=i||{}};
plausible.init()
</script>

Copilot uses AI. Check for mistakes.
Loading