The analytics code doesn’t seem to be working after I inserted the tag into the header..
I inserted this tag:
<!– Global site tag (gtag.js) – Google Analytics –>
<script async src=”https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXX-XX”></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());
gtag(‘config’, ‘UA-XXXXXXXX-XX’);
</script>
Can a theme be too old/ version not updated to use Google Analytics?