From 4ae4ea2bf6ac6f365d2c3c8ee17718c7c96a308d Mon Sep 17 00:00:00 2001 From: carj Date: Mon, 2 Dec 2024 14:07:34 +0000 Subject: [PATCH] google analytics --- docs/conf.py | 9 ++++++++- docs/requirements.txt | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 86feea8..fca286d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -16,13 +16,18 @@ 'sphinx.ext.viewcode', 'sphinx_rtd_theme', 'sphinx.ext.todo', - 'sphinx.ext.autosectionlabel' + 'sphinx.ext.autosectionlabel', + 'sphinxcontrib.googleanalytics' ] html_theme = "sphinx_rtd_theme" html_extra_path = ["googled4940437d6a0a50d.html"] +html_theme_options = { + 'analytics_id': 'G-FWD081Y5Z6'} + + default_dark_mode = False version = __version__ @@ -33,3 +38,5 @@ project = u"pyPreservica" author = u"James Carr" + +googleanalytics_id = 'G-FWD081Y5Z6' \ No newline at end of file diff --git a/docs/requirements.txt b/docs/requirements.txt index 43d4a6d..081f84a 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -8,4 +8,5 @@ pyPreservica azure-storage-blob tqdm urllib3 -sphinx_rtd_theme \ No newline at end of file +sphinx_rtd_theme +sphinxcontrib-googleanalytics \ No newline at end of file