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 6000e2d..131d3d3 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -57,3 +57,8 @@ source_suffix = { ".rst": "restructuredtext", ".md": "markdown", } + +html_js_files = [ + 'https://www.googletagmanager.com/gtag/js?id=G-6Q7T573HLF', + 'ga.js', +]