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

Enable custom plausible link #433

Open
surchs opened this issue Jan 10, 2025 · 0 comments
Open

Enable custom plausible link #433

surchs opened this issue Jan 10, 2025 · 0 comments
Labels
flag:schedule Flag issue that should go on the roadmap or backlog. usability Issue affecting user or developer experience.

Comments

@surchs
Copy link
Contributor

surchs commented Jan 10, 2025

For external deployments that might want GDPR compliant usage statistics (e.g. the BIC node) we should allow a way to define things like the plausible script to be added at runtime (i.e. after the image is built).

Similar to how we add ours in

- name: Add prod scripts
run: |
add_script='<script async src="https://w.appzi.io/w.js?token=YVTHd"></script><script defer data-domain="query.neurobagel.org" src="https://plausible.neurobagel.org/js/script.js"></script>'
# Need to use single quotes around sed to avoid ! to be interpreted as a history expansion character
sed -i 's|<!-- Additional script tags -->|'"${add_script}"'|' index.html

@surchs surchs added flag:schedule Flag issue that should go on the roadmap or backlog. usability Issue affecting user or developer experience. labels Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flag:schedule Flag issue that should go on the roadmap or backlog. usability Issue affecting user or developer experience.
Projects
Status: No status
Development

No branches or pull requests

1 participant