Skip to content

Commit

Permalink
add google analytics script
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmisson committed Dec 13, 2024
1 parent 6954382 commit 063d4f0
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-TSFX37GD');</script>
<!-- End Google Tag Manager -->
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link rel="icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="uv.css" />
<script type="text/javascript" src="umd/UV.js"></script>
Expand All @@ -17,6 +23,13 @@
</style>
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe
src="https://www.googletagmanager.com/ns.html?id=GTM-TSFX37GD"
height="0" width="0"
style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->

<div id="uv" class="uv"></div>

<script>
Expand Down Expand Up @@ -79,8 +92,7 @@
var $UV = document.getElementById("uv");

function resize() {
$UV.setAttribute("style", "width:" + window.innerWidth + "px");
$UV.setAttribute("style", "height:" + window.innerHeight + "px");
$UV.setAttribute("style", "width:" + window.innerWidth + "px; height:" + window.innerHeight + "px;");
}

addEventListener("resize", function() {
Expand Down

0 comments on commit 063d4f0

Please sign in to comment.