diff --git a/conf.py b/conf.py index 08dac367b..c2c6c4267 100644 --- a/conf.py +++ b/conf.py @@ -98,6 +98,7 @@ 'sphinx.ext.autodoc', 'sphinx_copybutton', 'sphinx_design', + 'sphinxcontrib.googleanalytics', 'sphinx.ext.intersphinx', ] @@ -273,6 +274,11 @@ 'Miscellaneous'), ] +# -- Google analytics config ---------------------------------------------- + +googleanalytics_id = 'G-7E5054FV6E' +googleanalytics_enabled = True + def setup(app): app.add_js_file('js/lang.js') app.add_js_file('js/pydata-search-close.js') diff --git a/requirements.txt b/requirements.txt index fed5c3ca1..e25d998a4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,6 +2,7 @@ Babel==2.16.0 myst-parser==2.0.0 pydata-sphinx-theme==0.14.4 sphinx==7.2.6 +sphinxcontrib-googleanalytics==0.4 sphinx-copybutton==0.5.2 sphinx-hoverxref==1.3.0 sphinx_design==0.5.0