Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 06ceba5

Browse files
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)

AltStyle によって変換されたページ (->オリジナル) /