Skip to content

Commit

Permalink
Merge pull request #14 from 100-hours-a-week/PATCH-HidenLee-2
Browse files Browse the repository at this point in the history
feat: Google Analytics tag add to index.html
  • Loading branch information
HidenLee authored Aug 25, 2024
2 parents 6b43923 + 4a2e9e4 commit e6120da
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions travelday-fe/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<title>TravelDAY</title>
</head>

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

gtag('config', 'G-2R5M42P16Z');
</script>

<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
Expand Down

0 comments on commit e6120da

Please sign in to comment.