lib/bhook/theme/page.erb in bhook-0.1.5 vs lib/bhook/theme/page.erb in bhook-0.1.6
- old
+ new
@@ -46,11 +46,20 @@
background: #eeeeee;
display: inline-block;
padding: 1em;
}
</style>
- <title><%= src_title -%></title>
+ <!-- Global site tag (gtag.js) - Google Analytics -->
+ <script async src="https://www.googletagmanager.com/gtag/js?id=G-CT9TWBW0WR"></script>
+ <script>
+ window.dataLayer = window.dataLayer || [];
+ function gtag(){dataLayer.push(arguments);}
+ gtag('js', new Date());
+
+ gtag('config', 'G-CT9TWBW0WR');
+ </script>
+ <title><%= src_title -%></title>
</head>
<body>
<div class="body container">
<div class="content row justify-content-center">
<div class="col-10">
@@ -67,18 +76,7 @@
<% end -%>
<%= src_file_date -%> © <a href="https://sidu.in">Sidu Ponnappa</a>
</div>
</div>
</div>
- <script type='text/javascript'>
- var _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-24685691-1']);
- _gaq.push(['_trackPageview']);
-
- (function() {
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
- })();
- </script>
</body>
</html>