I’m using the google analytics plugin with the x-theme and when I enter the code provided to me and hit save, it strips out part of it and won’t track.
Code google provides me:
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-[HIDDEN]"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-[HIDDEN]');
</script>
Code Saved after entered in the app:
<script></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-[HIDDEN]');
</script>