Skip to content

Commit

Permalink
Feat/#412 사용자 분석을 위해 ga id 태그를 추가한다. (#413)
Browse files Browse the repository at this point in the history
* feat: GA tag 추가

* feat: SPA 대응하여 현재 location을 추적

* config: GA id 변경
  • Loading branch information
ukkodeveloper authored Sep 21, 2023
1 parent 3393c7b commit 8c9a6b6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,16 @@
</noscript>
<div id="root"></div>
</body>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-3PMN5NZMP6"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-3PMN5NZMP6');
</script>
<script>
window.gtag('event', 'page_view', { page_path: location.pathname });
</script>
</html>

0 comments on commit 8c9a6b6

Please sign in to comment.