Skip to content

Commit 1f00884

Browse files
committed
chore:: add google analytics
1 parent 7297e6e commit 1f00884

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,19 @@
7070
<script type="module" src="./src/main.ts" defer></script>
7171
<!-- Star Button Js -->
7272
<script async defer src="https://buttons.github.io/buttons.js"></script>
73+
<script
74+
async
75+
src="https://www.googletagmanager.com/gtag/js?id=G-P445L31SWR"
76+
></script>
77+
<script>
78+
window.dataLayer = window.dataLayer || [];
79+
function gtag() {
80+
dataLayer.push(arguments);
81+
}
82+
gtag('js', new Date());
83+
84+
gtag('config', 'G-P445L31SWR');
85+
</script>
7386

7487
<title>Code Magic</title>
7588
</head>

0 commit comments

Comments
 (0)