replace open web analytics with google
This commit is contained in:
parent
5decc805ef
commit
3d234d4ec3
|
@ -86,6 +86,15 @@
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
{{ hugo.Generator }}
|
{{ hugo.Generator }}
|
||||||
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||||
|
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-179219763-1"></script>
|
||||||
|
<script>
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag(){dataLayer.push(arguments);}
|
||||||
|
gtag('js', new Date());
|
||||||
|
|
||||||
|
gtag('config', 'UA-179219763-1', { 'anonymize_ip': true });
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
{{ $csClass := "colorscheme-light" }}
|
{{ $csClass := "colorscheme-light" }}
|
||||||
|
@ -108,17 +117,6 @@
|
||||||
{{ template "_internal/google_analytics.html" . }}
|
{{ template "_internal/google_analytics.html" . }}
|
||||||
|
|
||||||
<script src="{{ .Site.Params.baseURL | absURL }}js/script.js"></script>
|
<script src="{{ .Site.Params.baseURL | absURL }}js/script.js"></script>
|
||||||
<script>
|
|
||||||
owa_cmds.push(['setSiteId', '9010bbc622d7c2514fd73db73f05d89c']);
|
|
||||||
owa_cmds.push(['trackPageView']);
|
|
||||||
owa_cmds.push(['trackClicks']);
|
|
||||||
(function() {
|
|
||||||
var _owa = document.createElement('script'); _owa.type = 'text/javascript'; _owa.async = true;
|
|
||||||
owa_baseUrl = ('https:' == document.location.protocol ? window.owa_baseSecUrl || owa_baseUrl.replace(/http:/, 'https:') : owa_baseUrl );
|
|
||||||
_owa.src = owa_baseUrl + 'modules/base/js/owa.tracker-combined-min.js';
|
|
||||||
var _owa_s = document.getElementsByTagName('script')[0]; _owa_s.parentNode.insertBefore(_owa, _owa_s);
|
|
||||||
}());
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
Reference in New Issue