Skip to content

Commit ea13dde

Browse files
authored
Convert to using Google Analytics Directly
I think the Google Tag Manager is over-kill for me and this should be sufficient.
1 parent 191baba commit ea13dde

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

wordlespace.html

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
<html>
22
<head>
3-
<!-- Google Tag Manager -->
4-
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
5-
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
6-
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
7-
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
8-
})(window,document,'script','dataLayer','GTM-WJFC3QP');</script>
9-
<!-- End Google Tag Manager -->
3+
<!-- Global site tag (gtag.js) - Google Analytics -->
4+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-JBF2M8YCKP"></script>
5+
<script>
6+
window.dataLayer = window.dataLayer || [];
7+
function gtag(){dataLayer.push(arguments);}
8+
gtag('js', new Date());
9+
10+
gtag('config', 'G-JBF2M8YCKP');
11+
</script>
12+
1013
<title>WordleSpace</title>
1114
<meta name="description" content="Filter the Wordle word-space with letter clues.">
1215
<link href="https://www.powerlanguage.co.uk/wordle/images/wordle_logo_32x32.png" rel="icon" sizes="3232" />
@@ -474,10 +477,6 @@
474477
</style>
475478
</head>
476479
<body>
477-
<!-- Google Tag Manager (noscript) -->
478-
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WJFC3QP"
479-
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
480-
<!-- End Google Tag Manager (noscript) -->
481480
<h1>WordleSpace</h1>
482481
Word space explorer that follows the Wordle hint rules
483482
<div class="inputBoxes">

0 commit comments

Comments
 (0)