Skip to content

Commit 99b4392

Browse files
committed
Add Google Analytics 4 tracking to Sphinx documentation
- Added sphinxcontrib.googleanalytics extension to docs configuration - Configured GA4 tracking with ID G-Q1K210DS5W - Updated Sphinx to v8.2.3 for Python 3.13 compatibility - Updated sphinx-rtd-theme to v3.0.2 - Added sphinxcontrib-googleanalytics v0.5 to dev dependencies in setup.cfg - Verified tracking code is present in all generated HTML pages Related to NASA-PDS/software-issues-repo#139
1 parent 22a2d4a commit 99b4392

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

docs/source/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
'sphinx.ext.viewcode',
3838
'sphinx.ext.githubpages',
3939
'sphinx.ext.autosummary',
40+
'sphinx_rtd_theme',
41+
'sphinxcontrib.googleanalytics',
4042
]
4143

4244
# List of patterns, relative to source directory, that match files and
@@ -84,3 +86,7 @@
8486
'includehidden': True,
8587
'titles_only': False
8688
}
89+
90+
# Google Analytics 4 (GA4) tracking
91+
googleanalytics_id = "G-Q1K210DS5W"
92+
googleanalytics_enabled = True

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ dev =
7272
pre-commit~=3.3.3
7373
sphinx~=8.2.3
7474
sphinx-rtd-theme~=3.0.2
75+
sphinxcontrib-googleanalytics~=0.5
7576
tox~=4.11.0
7677
types-setuptools~=68.1.0.0
7778

0 commit comments

Comments
 (0)