Skip to content

Commit

Permalink
refactor: Add Google Analytics tracking code to website
Browse files Browse the repository at this point in the history
  • Loading branch information
jyzhao committed Jul 12, 2024
1 parent 2abe0a1 commit 4fecceb
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,18 @@
name="description"
content="Self Developed personal website build with React.js"
>
<!-- Google tag (gtag.js) -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-PQXZ6WE09Y"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());


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

<body>
Expand Down

0 comments on commit 4fecceb

Please sign in to comment.