Skip to content

Commit

Permalink
WEB/DOC: use Plausible for analytics (using Scientific Python server) (
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche authored Aug 15, 2023
1 parent 0a09006 commit 1c5c4ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 4 additions & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,10 @@
"footer_start": ["pandas_footer", "sphinx-version"],
"github_url": "https://github.com/pandas-dev/pandas",
"twitter_url": "https://twitter.com/pandas_dev",
"analytics": {"google_analytics_id": "G-5RE31C1RNW"},
"analytics": {
"plausible_analytics_domain": "pandas.pydata.org",
"plausible_analytics_url": "https://views.scientific-python.org/js/script.js",
},
"logo": {"image_dark": "https://pandas.pydata.org/static/img/pandas_white.svg"},
"navbar_end": ["version-switcher", "theme-switcher", "navbar-icon-links"],
"switcher": {
Expand Down
8 changes: 1 addition & 7 deletions web/pandas/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<script async="async" src="https://www.googletagmanager.com/gtag/js?id=G-5RE31C1RNW"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){ dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-5RE31C1RNW');
</script>
<script defer data-domain="pandas.pydata.org" src="https://views.scientific-python.org/js/script.js"></script>
<title>pandas - Python Data Analysis Library</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
Expand Down

0 comments on commit 1c5c4ef

Please sign in to comment.