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

Embed Plausible analytics code to servable app #7479

Open
fmaussion opened this issue Nov 11, 2024 · 1 comment
Open

Embed Plausible analytics code to servable app #7479

fmaussion opened this issue Nov 11, 2024 · 1 comment

Comments

@fmaussion
Copy link

Apologies if this has been discussed before. How can we embed a plausible analytics snippet into a panel app served on a bokeh server with app.servable()? We'd need to add some code like below in the header:

<script defer data-domain="domain.org" src="https://plausible.org/js/script.js"></script>
@philippjfr
Copy link
Member

Would definitely be nice to integrate this better but can you just add it as a HTML element for now?

pn.pane.HTML('<script defer data-domain="domain.org" src="https://plausible.org/js/script.js"></script>').servable()

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

No branches or pull requests

2 participants