Hello,
I would like to add this Google Analytics code to my header.php. Where in the header can I put it? Just before the tag </head>
Thanks Nora
THis is the code:
<!– Global site tag (gtag.js) – Google Analytics –>
<script async src=”https://www.googletagmanager.com/gtag/js?id=UA-143592412-1″></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());
gtag(‘config’, ‘UA-143592412-1’);
</script>
Hey NoraGTS,
Yes! Just before the closing header tag.
Best regards,
Jordan Shannon