From 534ffbf156b9cfda24f8f22f5125ed25e23ee36c Mon Sep 17 00:00:00 2001 From: Kyle Sunden Date: Fri, 11 Aug 2023 13:22:08 -0500 Subject: [PATCH] Backport PR #26498: Add plausible analytics to the documentation pages --- doc/conf.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/conf.py b/doc/conf.py index dc3e3299dd03..7b528c0bb7c8 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -471,7 +471,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,