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 5346 posts 19750 karma points MVP 3x 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 5346 posts 19750 karma points MVP 3x 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 3625 posts 11059 karma points MVP
    Aug 02, 2017 @ 05:11
    Richard Soeteman
    1

    When you have an invalid ID format it will report indeed

Please Sign in or register to post replies

Write your reply to:

Draft