Viewing 5 replies - 1 through 5 (of 5 total)
  • Burhan Nasir

    (@burhandodhy)

    Hi KennyWilliamson,

    I checked your site and found that the cache plugin is actually breaking the HTML tag which is causing the invalid Google Analytics code. Could you please clear your cache and turn off “Compress HTML” option.

    Look forward to hearing from you.
    Burhan

    Thread Starter KennyWilliamson

    (@kennywilliamson)

    Hi Burhan,

    I cleared siteground cache plugin and autoptimize, then I unticked in autoptimize the otimise html. I put cloudflare in development mode (so it doesn’t cache) and cleared cache.

    I still don’t see realtime user in google analytics.

    WHen you checked the site… did it perhaps indicate which plugin where you saw the html error?

    Burhan Nasir

    (@burhandodhy)

    The problem is still there. This closing tag of this line is missing <link rel='dns-prefetch' href="///wp-content/themes/generatepress/fonts/generatepress.ttf'> and its causing this issue.

    Thread Starter KennyWilliamson

    (@kennywilliamson)

    Agh, thank You Burhan, that helped me right away. Should be gone now.Showing a real time visitor (me).
    Thanks very much for all your quick help.

    And another thank you… was also having an issue with mobile view,,,, removing jetpack, deactivating plugins and so onn… Agggh.

    BUt this fixed it as well.. was a line in the prefetch that I hadn’t removed one back slash.

    Woaaaa! thanks

    Burhan Nasir

    (@burhandodhy)

    Glad you fixed the issue.

    Cheers 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Missing valid tracking code’ is closed to new replies.