WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Google Analytics code inserter not working?

[Resolved] Google Analytics code inserter not working?

  • I copied the below code into the ‘Analytics Code’ box in the Coming Soon settings for http://hollowgatefarm.co.uk, and yet my Google Analytics account insists that ‘Tracking not Installed’. Viewing the source code of the generated page I can see it is appearing just before the modernizr code & </head>, but Google can’t seem to find it. How come?

    <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-XXXXXXX-X', 'hollowgatefarm.co.uk');
      ga('send', 'pageview');
    
    </script>

    https://wordpress.org/plugins/coming-soon/

Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘[Resolved] Google Analytics code inserter not working?’ is closed to new replies.