Google Analytics code stripped out in plugin

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>

Apparently, I’m the king of answering my own questions here. I just updated to version 2.0.3 and looks like it is working now.

Sorry about that. There was a bug, but as you’ve found it’s been fixed in the latest version. Glad to see it’s working for you again!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.