10000 Add plausible analytics to the documentation pages · matplotlib/matplotlib@06ceba5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 06ceba5

Browse files
committed
Add plausible analytics to the documentation pages
The Plausible service instance is provided by the Scientific Python project.
1 parent 48e2891 commit 06ceba5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doc/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,10 @@ def js_tag_with_cache_busting(js):
484484
}
485485
include_analytics = is_release_build
486486
if include_analytics:
487-
html_theme_options["analytics"] = {"google_analytics_id": "UA-55954603-1"}
487+
html_theme_options["analytics"] = {
488+
"plausible_analytics_domain": "matplotlib.org",
489+
"plausible_analytics_url": "https://views.scientific-python.org/js/script.js"
490+
}
488491

489492
# Add any paths that contain custom static files (such as style sheets) here,
490493
# relative to this directory. They are copied after the builtin static files,

0 commit comments

Comments
 (0)
0