From c0720d8faee45a2beb07bf5016bc68c78594a0c6 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Mon, 19 Jun 2023 11:55:54 +0100 Subject: [PATCH] Fix typo --- plugins/tiddlywiki/googleanalytics/googleanalytics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tiddlywiki/googleanalytics/googleanalytics.js b/plugins/tiddlywiki/googleanalytics/googleanalytics.js index 229ec6a30..617a7a17a 100644 --- a/plugins/tiddlywiki/googleanalytics/googleanalytics.js +++ b/plugins/tiddlywiki/googleanalytics/googleanalytics.js @@ -27,7 +27,7 @@ exports.startup = function() { hasInitialised = true; var gaMeasurementID = $tw.wiki.getTiddlerText("$:/GoogleAnalyticsMeasurementID","").replace(/\n/g,""); var url ="https://www.googletagmanager.com/gtag/js?id=" + gaMeasurementID; - window.dataLayer = this.window.dataLayer || []; + window.dataLayer = window.dataLayer || []; window.gtag = function() { window.dataLayer?.push(arguments); }; window.gtag("js",new Date()); window.gtag("config",gaMeasurementID);