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