I don't know how Next does this, but we need to inject this at the top of every page:
<script async src="https://www.googletagmanager.com/gtag/js?id=G-GW8B862DBD"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-GW8B862DBD');
</script>
or we could use snippet injection?
@scottmathson
I don't know how Next does this, but we need to inject this at the top of every page:
or we could use snippet injection?
@scottmathson