Skip to content

Commit 52ab6c2

Browse files
committed
Adding Google Analytics tag
1 parent 5339e53 commit 52ab6c2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@
4040
</script>
4141
<!-- This script adds the flutter initialization JS code -->
4242
<script src="main.dart.js" defer></script>
43+
<!-- Google tag (gtag.js) -->
44+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-DY1L4T0Q57"></script>
45+
<script>
46+
window.dataLayer = window.dataLayer || [];
47+
function gtag(){dataLayer.push(arguments);}
48+
gtag('js', new Date());
49+
50+
gtag('config', 'G-DY1L4T0Q57');
51+
</script>
4352
</head>
4453
<body>
4554
<script>

0 commit comments

Comments
 (0)