From 19ff32118bdfd7a8245137b241e85a94663f86d1 Mon Sep 17 00:00:00 2001 From: thephez Date: Wed, 20 Nov 2024 16:00:26 -0500 Subject: [PATCH] feat: add alternate analytics config (#90) --- conf.py | 6 ++++++ requirements.txt | 1 + 2 files changed, 7 insertions(+) diff --git a/conf.py b/conf.py index 8f6203122..554f8e5cd 100644 --- a/conf.py +++ b/conf.py @@ -28,6 +28,7 @@ 'sphinx.ext.autodoc', 'sphinx_copybutton', 'sphinx_design', + 'sphinxcontrib.googleanalytics', 'sphinx.ext.intersphinx', ] @@ -145,5 +146,10 @@ "doc_path": "", } +# -- Google analytics config ---------------------------------------------- + +googleanalytics_id = 'G-B3JNYGTPR0' +googleanalytics_enabled = True + def setup(app): app.add_js_file('js/pydata-search-close.js') diff --git a/requirements.txt b/requirements.txt index 25eb44b06..a6fd39fdc 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,6 +3,7 @@ myst-parser==2.0.0 pydata-sphinx-theme==0.14.4 pytz==2022.7 sphinx==7.2.6 +sphinxcontrib-googleanalytics==0.4 sphinx-copybutton==0.5.2 sphinx-hoverxref==1.3.0 sphinx_design==0.5.0