Skip to content

Commit

Permalink
Fix: Enabled Google Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangsonww committed Feb 12, 2024
1 parent 999f5b8 commit 73719a6
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
9 changes: 9 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@
background-color: #f8f8f8;
}
</style>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-9NPSN4RVS4"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-9NPSN4RVS4');
</script>
</head>
<body>
<div class="error-container">
Expand Down
9 changes: 9 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@
<link rel="stylesheet" href="src/css/style.css" />
<script src="src/js/script.js" defer></script>
<link rel="icon" type="image/x-icon" href="images/favicon.ico">
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-9NPSN4RVS4"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-9NPSN4RVS4');
</script>
</head>

<body>
Expand Down
9 changes: 9 additions & 0 deletions src/html/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@
<link rel="stylesheet" href="../css/style.css">
<link rel="icon" type="image/x-icon" href="../../images/favicon.ico">
<link rel="manifest" href="../../manifest.json">
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-9NPSN4RVS4"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-9NPSN4RVS4');
</script>
</head>

<body style="background-image: url(../../images/snow.jpg)">
Expand Down

0 comments on commit 73719a6

Please sign in to comment.