Skip to content

Commit 46474ad

Browse files
authored
[#11] Google Analytics 적용 (#15)
* ✨ feat: ga4 코드 추가 * 🔨 refactor: 로컬 환경 디버깅용 코드로 전환 * 🙀 chore: GA 디버깅 코드 삭제
1 parent 321cb8f commit 46474ad

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

apps/client/index.html

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
<!doctype html>
22
<html lang="ko">
33
<head>
4+
<!-- Google tag (gtag.js) -->
5+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-SMXGZQRD0S"></script>
6+
<script>
7+
window.dataLayer = window.dataLayer || [];
8+
function gtag() {
9+
dataLayer.push(arguments);
10+
}
11+
gtag('js', new Date());
12+
gtag('config', 'G-SMXGZQRD0S');
13+
</script>
414
<!-- 기본 meta 태그 및 link -->
515
<meta charset="UTF-8" />
616
<link rel="icon" type="image/svg+xml" href="/images/boolock_logo.png" />
@@ -14,10 +24,7 @@
1424
<meta name="author" content="부스트캠프 9기 Web31팀" />
1525
<!-- Open Graph -->
1626
<meta property="og:title" content="BooLock" />
17-
<meta
18-
property="og:description"
19-
content="쉽게 배우는 블록 코딩"
20-
/>
27+
<meta property="og:description" content="쉽게 배우는 블록 코딩" />
2128
<meta property="og:url" content="https://boolock.site/" />
2229
<meta property="og:image" content="/images/boolock_thumnail.png" />
2330
<meta property="og:image:alt" content="블록코딩 플랫폼 BooLock의 썸네일" />

0 commit comments

Comments
 (0)