Skip to content

Commit 6cbb3cd

Browse files
icfantvpkozlowski-opensource
authored andcommitted
chore(demo): add basic GA tracker code
addresses part of ng-bootstrap#401. Closes ng-bootstrap#424
1 parent 278cc14 commit 6cbb3cd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: demo/src/public/index.html

+8
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
<title>ng-bootstrap Demo</title>
66
<link rel="shortcut icon" type="image/x-icon" href="/img/favicon.ico">
77
<base href=".">
8+
<script>
9+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
10+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
11+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
12+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
13+
ga('create', 'UA-37467169-2', 'auto');
14+
ga('send', 'pageview');
15+
</script>
816
</head>
917
<body>
1018
<ngbd-app></ngbd-app>

0 commit comments

Comments
 (0)