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

Skip to content

Add plausible analytics to the documentation pages #26498

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 11, 2023
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
5 changes: 4 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,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