Skip to content

Commit 66547c3

Browse files
Add Google Analytics tracking script to index.html for improved site analytics
1 parent e66af43 commit 66547c3

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@
3030
content="Moon sighting visibility maps based on the Yallop criterion"
3131
/>
3232
<meta name="twitter:image" content="https://www.islamicmonth.com/assets/og-image.png" />
33+
34+
<!-- Google tag (gtag.js) -->
35+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-CTLRT8JMN6"></script>
36+
<script>
37+
window.dataLayer = window.dataLayer || [];
38+
function gtag() {
39+
dataLayer.push(arguments);
40+
}
41+
gtag('js', new Date());
42+
43+
gtag('config', 'G-CTLRT8JMN6');
44+
</script>
3345
</head>
3446
<body>
3547
<app-root></app-root>

0 commit comments

Comments
 (0)