From 06ceba5e8539e44e6390043f4434a0638cd6de78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Melissa=20Weber=20Mendon=C3=A7a?= Date: Fri, 11 Aug 2023 12:33:39 -0300 Subject: [PATCH] Add plausible analytics to the documentation pages The Plausible service instance is provided by the Scientific Python project. --- doc/conf.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/conf.py b/doc/conf.py index 66b367c9e267..21da93ee6f58 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -484,7 +484,10 @@ def js_tag_with_cache_busting(js): } include_analytics = is_release_build if include_analytics: - html_theme_options["analytics"] = {"google_analytics_id": "UA-55954603-1"} + html_theme_options["analytics"] = { + "plausible_analytics_domain": "matplotlib.org", + "plausible_analytics_url": "https://views.scientific-python.org/js/script.js" + } # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files,