Skip to content

Commit

Permalink
Add counter javascript to each page on the site
Browse files Browse the repository at this point in the history
Since the dashboard builder will merge site-config.yml with the default
quarto config file, we can use quarto's "include-after-body" directive to
inject a javascript snippet on each each page.
https://quarto.org/docs/output-formats/html-basics.html#includes
  • Loading branch information
bsweger committed Feb 27, 2025
1 parent 57bfb89 commit e668217
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions site-config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
---
hub: "cdcepi/FluSight-forecast-hub/"
title: "FluSight Forecast Hub Dashboard"
html:
include-after-body:
- text: |
<!-- Default Statcounter code for CDC FluSight Hub Dashboard https://reichlab.io/flusight-dashboard/ -->
<script type="text/javascript">
var sc_project=13093554;
var sc_invisible=1;
var sc_security="e010bf14";
</script>
<script type="text/javascript"
src="https://www.statcounter.com/counter/counter.js"
async></script>
<noscript><div class="statcounter"><a title="Web Analytics"
href="https://statcounter.com/" target="_blank"><img
class="statcounter"
src="https://c.statcounter.com/13093554/0/e010bf14/1/"
alt="Web Analytics"
referrerPolicy="no-referrer-when-downgrade"></a></div></noscript>
<!-- End of Statcounter Code -->
</script>

0 comments on commit e668217

Please sign in to comment.