Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Backport PR #26498: Add plausible analytics to the documentation pages
  • Loading branch information
ksunden authored and meeseeksmachine committed Aug 11, 2023
commit 534ffbf156b9cfda24f8f22f5125ed25e23ee36c
5 changes: 4 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down