Skip to content

Commit

Permalink
Docs: Add privacy-friendly web analytics with plausible (#3346)
Browse files Browse the repository at this point in the history
  • Loading branch information
binste authored Mar 1, 2024
1 parent 818960b commit 3ac2021
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NOTES_FOR_MAINTAINERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,7 @@ with the new minimum required version of vl-convert.

To cut a new release of Altair, follow the steps outlined in
[RELEASING.md](RELEASING.md).

## Web analytics
We use the privacy-friendly [plausible.io](https://plausible.io/) for tracking usage statistics of our documentation.
It is hosted on [https://views.scientific-python.org](https://views.scientific-python.org). To view the stats, you need an account. Ask another maintainer to invite you.
4 changes: 4 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@
],
"header_links_before_dropdown": 6,
"announcement": """This website is for version 5. You can find the documentation for version 4 <a href='https://altair-viz.github.io/altair-viz-v4/'>here</a>.""",
"analytics": {
"plausible_analytics_domain": "altair-viz.github.io",
"plausible_analytics_url": ("https://views.scientific-python.org/js/script.js"),
},
}

html_context = {"default_mode": "light"}
Expand Down

0 comments on commit 3ac2021

Please sign in to comment.