Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 534ffbf

Browse files
ksundenmeeseeksmachine
authored andcommitted
Backport PR #26498: Add plausible analytics to the documentation pages
1 parent e5a210a commit 534ffbf

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
@@ -471,7 +471,10 @@ def js_tag_with_cache_busting(js):
471471
}
472472
include_analytics = is_release_build
473473
if include_analytics:
474-
html_theme_options["analytics"] = {"google_analytics_id": "UA-55954603-1"}
474+
html_theme_options["analytics"] = {
475+
"plausible_analytics_domain": "matplotlib.org",
476+
"plausible_analytics_url": "https://views.scientific-python.org/js/script.js"
477+
}
475478

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

0 commit comments

Comments
 (0)