Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add counter javascript to each page on the site #12

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

bsweger
Copy link
Contributor

@bsweger bsweger commented Feb 27, 2025

Closes #10

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

Updated to add: here's what the staging dashboard looks like after this change: https://reichlab.io/flusight-dashboard-staging/

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
@bsweger bsweger requested a review from elray1 February 27, 2025 20:39
Copy link
Contributor

@elray1 elray1 left a comment

Choose a reason for hiding this comment

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

lgtm!

@bsweger bsweger merged commit dae99ad into main Feb 27, 2025
2 checks passed
@bsweger bsweger deleted the bs/add-stats-counter/10 branch February 27, 2025 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add statcounter code to hub
2 participants