diff --git a/docs/conf.py b/docs/conf.py index 7f94528..c8aaec9 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,3 +1,6 @@ +import os + + # Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full @@ -45,3 +48,7 @@ } html_static_path = ["_static"] + +if os.getenv("READTHEDOCS"): + extensions.append("sphinxcontrib.googleanalytics") + googleanalytics_id = "G-GV5XETXYHY" diff --git a/docs/requirements.txt b/docs/requirements.txt index 4d25b40..83eb197 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -2,3 +2,4 @@ furo myst-parser sphinx-design sphinxcontrib-video +sphinxcontrib-googleanalytics==0.4