Skip to content

Commit f921dbf

Browse files
committed
analytics update again
1 parent 373b102 commit f921dbf

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

conf.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,7 @@ def get_version():
261261
# -- Set up Google Analytics
262262
# -- using approach at https://stackoverflow.com/questions/9444342/adding-a-javascript-script-tag-some-place-so-that-it-works-for-every-file-in-sph/41885884#41885884
263263

264-
GA_SETUP_JS = """
265-
<!-- Global site tag (gtag.js) - Google Analytics -->
266-
async src="https://www.googletagmanager.com/gtag/js?id=G-QLSP3FJWGT"
267-
"""
264+
268265
GA_INVOKE_JS = """
269266
window.dataLayer = window.dataLayer || [];
270267
function gtag(){dataLayer.push(arguments);}
@@ -283,5 +280,5 @@ def setup(app):
283280

284281
app.add_transform(AutoStructify)
285282

286-
app.add_js_file(None, body=GA_SETUP_JS)
283+
app.add_js_file('https://www.googletagmanager.com/gtag/js?id=G-QLSP3FJWGT')
287284
app.add_js_file(None, body=GA_INVOKE_JS)

0 commit comments

Comments
 (0)