From 4e3feffc125f635e25bae4a4081215a7aef01a9a Mon Sep 17 00:00:00 2001 From: Rachel Clune Date: Tue, 7 Apr 2026 10:15:21 -0700 Subject: [PATCH] Docs add analytics (#264) * Adding Google Analytics to the Foundry documentation The analytics are under Rachel Clune's OSMF account and will only be used for reporting to the Rosetta Commons Board * Add simple analytics tracking to the foundry docs Simple analytics does not collect any personal information. The page view information will only be used for reporting to the Rosetta board and prioritizing future work. --- docs/source/_static/ga.js | 5 +++++ docs/source/conf.py | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 docs/source/_static/ga.js diff --git a/docs/source/_static/ga.js b/docs/source/_static/ga.js new file mode 100644 index 0000000..beab3f6 --- /dev/null +++ b/docs/source/_static/ga.js @@ -0,0 +1,5 @@ +window.dataLayer = window.dataLayer || []; +function gtag(){dataLayer.push(arguments);} +gtag('js', new Date()); + +gtag('config', 'G-6Q7T573HLF'); \ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index a34ac69..d3b50d9 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -58,4 +58,7 @@ source_suffix = { ".md": "markdown", } +html_js_files = [ + ('https://scripts.simpleanalyticscdn.com/latest.js', {'async': 'async', 'defer': 'defer'}), +] suppress_warnings = ["myst.xref_missing"]