Adding Google Analytics to your SmugMug Site
Andy
Registered Users Posts: 50,016 Major grins
We've made it really simple now, for any SmugMug customer to add Google Analytics to SmugMug sites.
Google Analytics for All
In the old days, getting Google to track your website’s stats required Advanced Customization and was only available for Power Users and Pros. Those days are over. Check your Control Panel and see a brand new box in your Settings tab. Drop your Google-provided Web Property ID in that box and boom! You’re ready to go.
You’ll still need to open a Google Analytics profile for your site but they’ll provide you with that number, which starts with a “UA” and contains dashes and several digits.
FAQs
"Is there any specific way the Web Property ID needs to be entered?" Yes! Highlight, and copy the Web Property ID exactly from Google - UA-XXXXXX-X and paste it in to the box in Settings Tab, Control Panel.
"Why should I change to this method?" It allows us to optimize the loading of the analytics script to help your pages load faster."
“Great! Can I switch if I have code already installed?” Sure - we'll remind you to remove your old code snipped from your advanced customizing tab.
"If I “switch” over to this analytics, will I lose my history that I currently have in Google Analytics?" No, not at all.
"Is there any advantage of my switching my GA tracking from Advanced Customization to this new 'External Visito Tracking' Setting? If I don't switch, am I losing anything? Yes, the advantage is that we'll take it from here and you don't have to worry about code snippets in your customizing. Just the Web Property ID.
"What happens if I have both codes installed?" Things will still work - but the both are unnecessary so remove the code from your advanced customizing if you're putting the UA code in your Settings Tab.
"I have a custom domain set up with my SmugMug site - should I use that on GA?" Yes - you should only set GA for your custom domain.
"What about Statcounter or other tools?" Sorry, you'll need to continue to use the old method of adding their code snippet to your footer in advanced customizing.
Google Analytics for All
In the old days, getting Google to track your website’s stats required Advanced Customization and was only available for Power Users and Pros. Those days are over. Check your Control Panel and see a brand new box in your Settings tab. Drop your Google-provided Web Property ID in that box and boom! You’re ready to go.
You’ll still need to open a Google Analytics profile for your site but they’ll provide you with that number, which starts with a “UA” and contains dashes and several digits.
FAQs
"Is there any specific way the Web Property ID needs to be entered?" Yes! Highlight, and copy the Web Property ID exactly from Google - UA-XXXXXX-X and paste it in to the box in Settings Tab, Control Panel.
"Why should I change to this method?" It allows us to optimize the loading of the analytics script to help your pages load faster."
“Great! Can I switch if I have code already installed?” Sure - we'll remind you to remove your old code snipped from your advanced customizing tab.
"If I “switch” over to this analytics, will I lose my history that I currently have in Google Analytics?" No, not at all.
"Is there any advantage of my switching my GA tracking from Advanced Customization to this new 'External Visito Tracking' Setting? If I don't switch, am I losing anything? Yes, the advantage is that we'll take it from here and you don't have to worry about code snippets in your customizing. Just the Web Property ID.
"What happens if I have both codes installed?" Things will still work - but the both are unnecessary so remove the code from your advanced customizing if you're putting the UA code in your Settings Tab.
"I have a custom domain set up with my SmugMug site - should I use that on GA?" Yes - you should only set GA for your custom domain.
"What about Statcounter or other tools?" Sorry, you'll need to continue to use the old method of adding their code snippet to your footer in advanced customizing.
0
Comments
From Andy's post "which starts with a “UA” and contains dashes and several digits."
GA needs the full ID, including dashes.
I just changed mine over just because the less stuff I have in custom footers, the less chance I'll accidentally change it when I do some more customizing....
Yes! Highlight, and copy the Web Property ID exactly from Google - UA-XXXXXX-X and paste it in to the box in Settings Tab, Control Panel.
Portfolio • Workshops • Facebook • Twitter
Portfolio • Workshops • Facebook • Twitter
Jean
Jean Chang Photography
www.jeanachang.blogspot.com
http://photos.lukinich.org
Yes, it can take up to a day or so. Check tomorrow.
Portfolio • Workshops • Facebook • Twitter
Perfect, thanks!
Under Website Profiles > Edit > Filters Applied to Profile
My Website index | My Blog
Oh, I'll check there, then. Then what is this code at the bottom of the GA code for? I'm not sure if I added it or if it was part of their code. Where "loggedIn" was part of the code, I thought it had something to do with it.
</script>
<script type="text/javascript">
try {
if (!YD.hasClass(document.body, "loggedIn"))
{
var pageTracker = _gat._getTracker("UA-15633934-1");
pageTracker._trackPageview();}
} catch(err) {}</script>
I'm going to have to keep better notes on what codes I add. :giggle
Jean Chang Photography
www.jeanachang.blogspot.com
Portfolio • Workshops • Facebook • Twitter
Is there any advantage of my switching my GA tracking from Advanced Customization to this new 'External Visito Tracking' Setting? If I don't switch, am I losing anything?
TIA for any comments.
My galleries: http://ghealy.smugmug.com
My Blog: http://photosbyhealy.blogspot.com
Yes, the advantage is that we'll take it from here and you don't have to worry about code snippets in your customizing. Just the Web Property ID in your Settings Tab of CP.
Portfolio • Workshops • Facebook • Twitter
I went to this edit and now I'm not sure what to do next. Do I exculde my ip address or what? Please help me. TIA Lisa
It doesn't go in the code. It's a setting on the Goggle site.
Under Website Profiles > Edit > Filters Applied to Profile
__________________
http://futurestars.smugmug.com/
"Some people think football is a matter of life and death. I assure you, it's much more serious than that."
~~ Bill Shankly
Portfolio • Workshops • Facebook • Twitter
Do I need to add the code to my footer in my domain?
Does this have something to do with absolute and relative linking?
I m pretty lost in the sauce right now. Any help will be greatly appreciated, including tips on incorporating my site, smugmug, blog together or if I currently have it set up okay. My concerns are findability and SEO stuff as well as putting adsence in my domain or blog in the future. I want to maximize all resources.
GA will track whichever domain you are using. Right now, that should be: http://diverseimage.smugmug.com
Your code is set up in your control panel correctly.
When / if you change to have http://www.diverseimageonline.com/ land on your SmugMug site, you'll want to change your GA.
Portfolio • Workshops • Facebook • Twitter
twin Mark IV's & a bunch of "L" glass
site ∙ facebook
Portfolio • Workshops • Facebook • Twitter
IP addresses come and go and change when you're on different computers, different WiFi networks, phones, etc... so it's not a very good way to exclude your own traffic. OTOH, I'm nearly always logged into my own site and that works no matter what computer I'm using or what IP address I'm using. Also, it's safe to say that when I'm logged in, I never want my visits logged by GA.
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
twin Mark IV's & a bunch of "L" glass
site ∙ facebook
Travis: go to GA and edit your tracking for your site.
Portfolio • Workshops • Facebook • Twitter
1. on your GA home page, select "FILTER MANAGERS" (bottom right corner)
2. select "+ ADD FILTER"
3. enter a "FILTER NAME", select "PREDEFINED FILTER" & "EXCLUDE TRAFFIC FROM THE IP ADDRESS EQUAL TO"
4. visit http://whatismyipaddress.com/ & your IP address will automatically display
5. enter your IP address in the "IP ADDRESS" section on GA
6. select your web address under the "AVAILABLE WEBSITE PROFILES" & select "ADD"
7. select "SAVE CHANGES"
For reference, please visit here.
twin Mark IV's & a bunch of "L" glass
site ∙ facebook
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Thanks again!
twin Mark IV's & a bunch of "L" glass
site ∙ facebook
Portfolio • Workshops • Facebook • Twitter
I believe that having an option to filter your own logged in traffic would be useful.
I personally make changes or view my site from home, work, cell phone, and other wireless networks. Filtering out my works IP address would not let me see other visitors from work.
The code that Jachang posted has potential, but I cannot seem to get the variables correct. I am unsure if it is because the changes put in the Control Panel overwrite the custom code, or if the code from Google changed.
I would vote for a check box in the Control Panel to not include the "SM.tracking..." code when you are logged in.
Anthony
www.anthonypisanophotography.com