Skip to content

Commit 0849ff9

Browse files
committed
Add google analytics
1 parent 8e77621 commit 0849ff9

File tree

3 files changed

+45
-12
lines changed

3 files changed

+45
-12
lines changed

index.html

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
11
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Vite + React + TS</title>
8-
</head>
9-
<body class="bg-secondary-lightest-1">
10-
<div id="root"></div>
11-
<script type="module" src="/src/main.tsx"></script>
12-
</body>
13-
</html>
3+
4+
<head>
5+
<!-- Google tag (gtag.js) -->
6+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-G0FBNWR63G"></script>
7+
<script>
8+
window.dataLayer = window.dataLayer || [];
9+
function gtag() { dataLayer.push(arguments); }
10+
gtag('js', new Date());
11+
12+
gtag('config', 'G-G0FBNWR63G');
13+
</script>
14+
<meta charset="UTF-8" />
15+
<link rel="icon" type="image/svg+xml" href="/if-logo.svg" />
16+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
17+
<title>IF Visualizer</title>
18+
</head>
19+
20+
<body class="bg-secondary-lightest-1">
21+
<div id="root"></div>
22+
<script type="module" src="/src/main.tsx"></script>
23+
</body>
24+
25+
</html>

public/if-logo.svg

Lines changed: 22 additions & 0 deletions
Loading

public/vite.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)