Skip to content

Commit d5b9278

Browse files
committed
RTD: Fix GA Integration
GA was dropped from RTD in early Oct, 2024. This adds it again.
1 parent e6628c3 commit d5b9278

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ sphinx>=5.3,<7.2
1010
sphinx-copybutton
1111
sphinx-design
1212
sphinx_rtd_theme>=1.1.1
13+
sphinxcontrib-googleanalytics
1314
sphinxcontrib-svg2pdfconverter
1415
sphinxcontrib.programoutput

docs/source/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,18 @@
4141
'breathe',
4242
'sphinx_copybutton',
4343
'sphinx_design',
44+
'sphinxcontrib.googleanalytics',
4445
'sphinxcontrib.programoutput',
4546
'sphinxcontrib.rsvgconverter',
4647
'matplotlib.sphinxext.plot_directive']
4748

4849
if not on_rtd:
4950
extensions.append('sphinx.ext.githubpages')
5051

52+
# Google Analytics
53+
googleanalytics_id = "G-3P1ZT3SQQ5"
54+
googleanalytics_enabled = True
55+
5156
# breathe config
5257
breathe_projects = {'openPMD-api': '../xml'}
5358
breathe_default_project = 'openPMD-api'

0 commit comments

Comments
 (0)