Skip to content

Commit 7542458

Browse files
committed
add gtag
1 parent 612986a commit 7542458

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

public/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@
2323
work correctly both with client-side routing and a non-root public URL.
2424
Learn how to configure a non-root public URL by running `npm run build`.
2525
-->
26+
<!-- Global site tag (gtag.js) - Google Analytics -->
27+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-118965717-3"></script>
28+
<script>
29+
window.dataLayer = window.dataLayer || [];
30+
function gtag(){dataLayer.push(arguments);}
31+
gtag('js', new Date());
32+
// Shared ID
33+
gtag('config', 'UA-118965717-3');
34+
// React.js ID
35+
gtag('config', 'UA-118965717-6');
36+
</script>
2637
</head>
2738

2839
<!-- BODY options, add following classes to body to change options

0 commit comments

Comments
 (0)