Skip to content

Commit bc60a7f

Browse files
authored
update legacy UA analytics to GA4
1 parent 834130e commit bc60a7f

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

_layouts/default.html

+8-11
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,14 @@
2828
});
2929
</script>-->
3030

31-
<script type="text/javascript">
32-
var _gaq = _gaq || [];
33-
_gaq.push(['_setAccount', 'UA-21686299-2']);
34-
_gaq.push(['_setDomainName', '.tangosydney.com.au']);
35-
_gaq.push(['_trackPageview']);
36-
37-
(function() {
38-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
39-
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
40-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
41-
})();
31+
<!-- Google tag (gtag.js) -->
32+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-NNRRXCLDCZ"></script>
33+
<script>
34+
window.dataLayer = window.dataLayer || [];
35+
function gtag(){dataLayer.push(arguments);}
36+
gtag('js', new Date());
37+
38+
gtag('config', 'G-NNRRXCLDCZ');
4239
</script>
4340
</head>
4441

0 commit comments

Comments
 (0)