Skip to content

Commit 7a32069

Browse files
committed
Add tag googleanalytics
1 parent 546048f commit 7a32069

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

angular/src/index.html

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
11
<!doctype html>
22
<html lang="en">
3+
34
<head>
45
<meta charset="utf-8">
56
<title>AngularStarter</title>
67
<base href="/">
78
<meta name="viewport" content="width=device-width, initial-scale=1">
89
<link rel="icon" type="image/x-icon" href="favicon.ico">
10+
11+
<!-- Google tag (gtag.js) -->
12+
<script async src="https://www.googletagmanager.com/gtag/js?id=YOUR-ID"></script>
13+
<script>
14+
window.dataLayer = window.dataLayer || [];
15+
function gtag() { dataLayer.push(arguments); }
16+
gtag('js', new Date());
17+
18+
gtag('config', 'YOUR-ID');
19+
</script>
20+
921
</head>
22+
1023
<body>
1124
<app-root></app-root>
1225
</body>
13-
</html>
26+
27+
</html>

0 commit comments

Comments
 (0)