Google Analytics Question

KSean SportsKSean Sports Registered Users Posts: 13 Big grins
edited May 23, 2011 in SmugMug Support
awe

Comments

  • AndyAndy Registered Users Posts: 50,016 Major grins
    edited May 20, 2011
    Put this UA-23022055-1 in your Google Analytics box in control panel, settings tab :) Lose the footer code completely.
    Make sure you've set GA for your custom domain as well.
  • AndyAndy Registered Users Posts: 50,016 Major grins
    edited May 20, 2011
    When I had it that way, GA was recording my own hits on my SM site - even when I was logged in. I searched the forums for a solution to that problem and found the code I provided. How do I get GA not to record my own visits to my site when logged in?
    You can exclude yourself on GA.
  • rainforest1155rainforest1155 Registered Users Posts: 4,566 Major grins
    edited May 23, 2011
    You can exclude yourself by use of a browser cookie as shown here:
    http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55481
    I see no reason why this wouldn't work with the built-in SmugMug GA support. Since you can't really create a html page on SmugMug. just try creating a new unlisted gallery on SmugMug and in the gallery description add a link like this (following the Google example):
    <*html>
    <*a href="javascript:pageTracker._setVar('test_value');">Exclude me from GA</a>
    <*/html>

    Obviously, remove the asterisks. Now clicking that link in a browser, should add the cookie per the Google instructions which you could then exclude via GA settings.

    I haven't tested this yet.

    Sebastian
    Sebastian
    SmugMug Support Hero
  • jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited May 23, 2011
    You can exclude yourself by use of a browser cookie as shown here:
    http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55481
    I see no reason why this wouldn't work with the built-in SmugMug GA support. Since you can't really create a html page on SmugMug. just try creating a new unlisted gallery on SmugMug and in the gallery description add a link like this (following the Google example):
    <*html>
    <*a href="javascript:pageTracker._setVar('test_value');">Exclude me from GA</a>
    <*/html>

    Obviously, remove the asterisks. Now clicking that link in a browser, should add the cookie per the Google instructions which you could then exclude via GA settings.

    I haven't tested this yet.

    Sebastian
    It doesn't work very well because you have to put the cookie on every computer you ever use and anytime you clear cookies for computer maintenance or security reasons or because the cookie expires, the blocking stops working. A simple method (which Smugmug could implement quite easily in their GA support) to not record any GA hits when the user is logged in would be very useful.
    --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.