Copied to clipboard

Flag this post as spam?

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


  • Umbraco Newbie 22 posts 124 karma points
    Jun 28, 2017 @ 20:23
    Umbraco Newbie
    0

    Doc type ID showing up in analytics.google.com

    Hi

    I have been looking at my Google analytics and have noticed that some pages are displaying as /2193.aspx

    I have never seen this before and just wondering if this is because I have been using preview while writing the content.

    Thanks

    George

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Jun 29, 2017 @ 09:47
    Alex Skrypnyk
    100

    Hi George

    I think you have to use this code for fixing this issue:

    if (!UmbracoContext.InPreviewMode)
    {
        <analyticsCode></analyticsCode>
    }
    

    Wrap your analytics code with UmbracoContext.InPreviewMode checking, you shouldn't run analytics code in preview mode.

    Thanks,

    Alex

  • Umbraco Newbie 22 posts 124 karma points
    Jun 29, 2017 @ 10:26
    Umbraco Newbie
    0

    Thanks Alex

Please Sign in or register to post replies

Write your reply to:

Draft