diff --git a/docs/requirements.txt b/docs/requirements.txt index ca60667b..5dcf9d56 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -3,4 +3,5 @@ nbsphinx pygments ipykernel sphinx_rtd_theme -docstring-inheritance \ No newline at end of file +docstring-inheritance +sphinxcontrib.googleanalytics \ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index e87a0a8c..991b46f9 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -33,7 +33,7 @@ # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = ["sphinx.ext.autodoc", "sphinx.ext.napoleon", "nbsphinx"] +extensions = ["sphinx.ext.autodoc", "sphinx.ext.napoleon", "nbsphinx", "sphinxcontrib.googleanalytics"] # Add any paths that contain templates here, relative to this directory. templates_path = ["_templates"] @@ -73,3 +73,8 @@ # Prevent nbsphinx from executing the notebooks nbsphinx_execute = 'never' + + + +googleanalytics_id = 'G-8MC4VCD0JR' # Replace with your actual GA4 measurement ID +googleanalytics_enabled = True