Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kristian Andersen 8 posts 99 karma points
    Aug 01, 2017 @ 12:45
    Kristian Andersen
    0

    Google analytics validation

    Seo Checkecker reports "Google analytics isn't (correctly) setup for this template." However, the rendered page includes the following in the section.

    Am I missing something?

    <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');</p>
    
    <p>ga('create', 'UA-XXXXX-Y', 'auto');
    ga('send', 'pageview');
    </script>

    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
    

    Best regards Kristian Andersen

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Aug 01, 2017 @ 15:52
    Alex Skrypnyk
    0

    Hi Kristian

    Can you check this line:

    <p>ga('create', 'UA-XXXXX-Y', 'auto');
    

    Your UA code is definitely wrong.

    Thanks,

    Alex

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Aug 01, 2017 @ 16:08
    Alex Skrypnyk
    0

    There is should be id, you can find it in your google analytics admin system.

  • Kristian Andersen 8 posts 99 karma points
    Aug 01, 2017 @ 16:12
    Kristian Andersen
    0

    Sure, that is nor the correct Id. Thanks. I'm just wondering if seochecker checks for a valid id and not just for the right analytics script block?

  • Richard Soeteman 4054 posts 12927 karma points MVP 2x
    Aug 02, 2017 @ 05:11
    Richard Soeteman
    1

    When you have an invalid ID format it will report indeed

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies