Skip to content

Commit

Permalink
feat: google analytics (#93)
Browse files Browse the repository at this point in the history
* feat: add google analytics

* chore: code formatting
  • Loading branch information
HJunyuan authored Aug 5, 2024
1 parent 29bf76f commit 09fa75e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion app/public/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand All @@ -12,6 +12,18 @@
<link rel="stylesheet" href="/build/bundle.css" />

<script defer src="/build/bundle.js"></script>

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-H6FRFM049K"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());

gtag("config", "G-H6FRFM049K");
</script>
</head>

<body></body>
Expand Down

0 comments on commit 09fa75e

Please sign in to comment.