My Google Analytics account provides the following code (minus my tracking ID):
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-MYCODE"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-MYCODE');
</script>
But the plugin strips out the tags in the 2nd line (with <script async scr="…) and leaves the URL which then shows at the top of my site.
Any help would be appreciated.