• Resolved rjmartino

    (@rjmartino)


    There is a problem with the tracking code that the plugin (WP GA Events)…

    Here is what is supposed to be inserted into the header tag:

    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
    
      ga('create', 'UA-26426309-2', 'auto');
      ga('send', 'pageview');
    
    </script>

    BUT – here is what is actually inserted… it’s missing the “https:” for some reason. We either need to find another plugin or see

    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
    
      ga('create', 'UA-26426309-2', 'auto');
      ga('send', 'pageview');
    
    </script>

    https://wordpress.org/plugins/wp-google-analytics-events/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author yuvalo

    (@yuvalo)

    Hey,

    We will make sure to look at it before the next update.

    Will keep you updated

    yuval

    Plugin Author yuvalo

    (@yuvalo)

    Hi,

    We just released a fix for this on version 2.1.

    I’m marking this ticket as resolved – let me know if you still have issues with this.

    yuval

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘HTTPS being removed from GA tracking Code’ is closed to new replies.