Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 241765f

Browse files
committed
add googleanalytics tag
1 parent 31d45d7 commit 241765f

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

‎angular/src/index.html

Lines changed: 15 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /