Options

Analytics was working, but now it's not.

bsharpbsharp Registered Users Posts: 92 Big grins
edited October 9, 2008 in SmugMug Support
Here is the code in my footer. I went to the Analytics page and copied the most recent code.

******** type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</********
******** type="text/javascript">
var pageTracker = _gat._getTracker("UA-5875041-1");
pageTracker._trackPageview();
</********

When I check Googles site, and click on Tracking Status I get:


warning.gif Tracking Not Installed (Last checked: Oct 9, 2008 11:27:14 AM )
The Google Analytics tracking code has not been detected on your website's home page. For Analytics to function, you or your web administrator must add the code to each page of your website.
Any help with this would be appreciated. Thanks,

Comments

  • Options
    jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited October 9, 2008
    bsharp wrote:
    Here is the code in my footer. I went to the Analytics page and copied the most recent code.

    ******** type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl.&quot; : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </********
    ******** type="text/javascript">
    var pageTracker = _gat._getTracker("UA-5875041-1");
    pageTracker._trackPageview();
    </********

    When I check Googles site, and click on Tracking Status I get:


    warning.gif Tracking Not Installed (Last checked: Oct 9, 2008 11:27:14 AM )
    The Google Analytics tracking code has not been detected on your website's home page. For Analytics to function, you or your web administrator must add the code to each page of your website.
    Any help with this would be appreciated. Thanks,

    If I remember right, Google Analytics requires that you not only put this Javascript code in your page, but that you also put a meta tag in the HEAD section of the page. I don't see that code in your page and I thnk that's what the error message you are getting means.

    For my page, I had to paste this into the HEAD section of the customization:

    ****** name="verify-v1" content="pKsxBcFu6kWS78AyFMFYyTSP3XLix8m1dbmzwJy4fck=" />

    DO NOT USE THIS VALUE. DO NOT COPY THIS.

    Your Google Analytics tracking will have it's own code. This code will not work for you. Find the code from the Google Analytics instructions, paste it into the HEAD section of your customization and then tell GA to verify your page again.
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
Sign In or Register to comment.