diff --git a/src/sunpy_sphinx_theme/__init__.py b/src/sunpy_sphinx_theme/__init__.py index babbcd9c..c6bcdddb 100644 --- a/src/sunpy_sphinx_theme/__init__.py +++ b/src/sunpy_sphinx_theme/__init__.py @@ -147,9 +147,7 @@ def setup(app: Sphinx): root_domain = ( theme_options.get("sst_site_root", "https://sunpy.org").removeprefix("https://").removeprefix("http://") ) - default_endpoint = theme_options.get( - "goatcounter_non_domain_endpoint", theme_options["goatcounter_analytics_url"] - ) + default_endpoint = theme_options.get("goatcounter_non_domain_endpoint", False) if default_endpoint is False: default_endpoint = "" app.add_js_file( diff --git a/src/sunpy_sphinx_theme/theme/sunpy/theme.conf b/src/sunpy_sphinx_theme/theme/sunpy/theme.conf index dd069467..7fe0ec38 100644 --- a/src/sunpy_sphinx_theme/theme/sunpy/theme.conf +++ b/src/sunpy_sphinx_theme/theme/sunpy/theme.conf @@ -20,8 +20,9 @@ sst_project_name = SunPy # Enable sending stats to goat counter # Set this URL to something like https://MYCODE.goatcounter.com/count goatcounter_analytics_url = -# If you only want to count visits to sst_site_root -goatcounter_non_domain_endpoint = +# If you only want to count visits to sst_site_root or subdomains there of then set this to False +# otherwise set it to another (or the same) goat counter endpoint +goatcounter_non_domain_endpoint = False # The logo to go in the top navbar in place of the project name sst_logo = navbar_links =