added google analytics

This commit is contained in:
Dieter Hubau
2015-12-13 20:23:40 +01:00
parent 8dff4eb671
commit e4062a6587
3 changed files with 56 additions and 8 deletions

View File

@@ -38,5 +38,21 @@
<p>&copy; 2015 <a href="mailto:dhubau@gmail.com">Dieter Hubau</a></p>
</footer>
</div>
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-71328567-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>

View File

@@ -90,5 +90,21 @@
ev.target.appendChild(document.getElementById(data));
}
</script>
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-71328567-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>

View File

@@ -1,18 +1,18 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<!-- The above 3 meta tags *must* come first in the head; any other head characters must come *after* these tags -->
<meta name="description" content="" />
<meta name="author" content="" />
<link rel="icon" href="favicon.ico" />
<meta name="description" content=""/>
<meta name="author" content=""/>
<link rel="icon" href="favicon.ico"/>
<title>Spring Boot Banner Generator</title>
<link href="bootstrap.min.css" rel="stylesheet" />
<link href="jumbotron-narrow.css" rel="stylesheet" />
<link href="bootstrap.min.css" rel="stylesheet"/>
<link href="jumbotron-narrow.css" rel="stylesheet"/>
</head>
<body>
@@ -40,5 +40,21 @@
<p>&copy; 2015 <a href="mailto:dhubau@gmail.com">Dieter Hubau</a></p>
</footer>
</div>
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-71328567-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>