Skip to content

Commit

Permalink
update legacy UA analytics to GA4
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdevalias committed Jun 20, 2024
1 parent 834130e commit bc60a7f
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,14 @@
});
</script>-->

<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21686299-2']);
_gaq.push(['_setDomainName', '.tangosydney.com.au']);
_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:https://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-NNRRXCLDCZ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-NNRRXCLDCZ');
</script>
</head>

Expand Down

0 comments on commit bc60a7f

Please sign in to comment.