Skip to content

The agent engineering platform.

docs: ganalytics in api ref (#28697)

Erick Friisf60110107c9a
diff --git a/docs/api_reference/conf.py b/docs/api_reference/conf.py
index acc77ab2aa..b6a0464cb8 100644
--- a/docs/api_reference/conf.py
+++ b/docs/api_reference/conf.py
@@ -128,6 +128,7 @@ extensions = [
"_extensions.gallery_directive",
"sphinx_design",
"sphinx_copybutton",
+ "sphinxcontrib.googleanalytics",
]
source_suffix = [".rst", ".md"]
@@ -267,6 +268,8 @@ html_show_sourcelink = False
# Set canonical URL from the Read the Docs Domain
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
+googleanalytics_id = "G-9B66JQQH2F"
+
# Tell Jinja2 templates the build is running on Read the Docs
if os.environ.get("READTHEDOCS", "") == "True":
html_context["READTHEDOCS"] = True
diff --git a/docs/api_reference/requirements.txt b/docs/api_reference/requirements.txt
index ea310541ff..b59b8d4372 100644
--- a/docs/api_reference/requirements.txt
+++ b/docs/api_reference/requirements.txt
@@ -9,3 +9,4 @@ pyyaml
sphinx-design
sphinx-copybutton
beautifulsoup4
+sphinxcontrib-googleanalytics