• In have installed the Plugin WP Webmaster Tools. It is showing the google-site-verification, but don’t show the Google Analytics tracking code.
    Ihave this code into the Analytics Settings in the texta area for that plugin:

    <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-71372613-1’, ‘auto’);
    ga(‘send’, ‘pageview’);

    </script>

    https://wordpress.org/plugins/ws-google-webmaster-tools/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter GustavoAformarse

    (@gustavoaformarse)

    Here was the error:

    The Google Analitics code must have this head
    <script type=”text/javascript”>

    Not
    <script>

    Thread Starter GustavoAformarse

    (@gustavoaformarse)

    EXCUSSEME!! Don’t works
    <script type=”text/javascript”>
    (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-11111111-1’, ‘auto’);
    ga(‘send’, ‘pageview’);
    </script>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Don't show Google analytics tracking code’ is closed to new replies.