PDA

View Full Version : Google analytics


kriyababaji
Sep-27-2006, 11:04 AM
MOD EDIT: this tutorial no longer needed. Just install your UA-XXXXXX-X code from GA in your SmugMug Control Panel, Settings Tab :) http://releasenotes.blogs.smugmug.com/2010/05/20/google-analytics-new-upload-button-and-bug-fixes/

-------------------
Good Day

I have followed Mike Lane's tutorial on how to place "Google Analytics into your smug mug site. I was fine right up to the end, what does he when he says:

"I have redacted my tracking code. Make sure yours is in there. This is the most important part of this process."

thanks shane

Andy
Sep-27-2006, 11:24 AM
Good Day

I have followed Mike Lane's tutorial on how to place "Google Analytics into your smug mug site. I was fine right up to the end, what does he when he says:

"I have redacted my tracking code. Make sure yours is in there. This is the most important part of this process."

thanks shane
Hi Shane, it means you paste YOUR code from google analytics, not Mike's :D

kriyababaji
Sep-27-2006, 11:31 AM
Andy

Is this the code you are talking about?


Thanks shane

SteveM
Sep-27-2006, 11:43 AM
Andy

Is this the code you are talking about?


Thanks shane

Yeah, that should be it. Just copy and paste everything they say on the Google site. Notice how it has the ua account info. That's what Mike took out, because he didn't want visitors to your site showing up as hits on his Google stats. Ha!

kriyababaji
Sep-27-2006, 11:48 AM
Little confused here Steve, isn't that the point of Google Analytics? So, should I also take out this UA tag? If so how much of the tag, please be specfic.

thanks shane

SteveM
Sep-27-2006, 12:17 PM
Little confused here Steve, isn't that the point of Google Analytics? So, should I also take out this UA tag? If so how much of the tag, please be specfic.

thanks shane

No, no! You're right! That IS the point of Google Analytics, and you should take out Mike's UA tag and use your own that Google provided to you. Mike blanked his info out just to avoid that possibility, which is all he meant by that statement. You're on the right track. That UA code is yours specifically and should be used within the block of code they provided. Let me know when you're up and running and I'll be happy to visit the page to make sure hits are registering correctly.

kriyababaji
Sep-27-2006, 12:37 PM
thanks Steve

I am not sure what page I should be sending you. Maybe this one:

https://www.google.com/analytics/home/report?rid=1256220&scid=742910

Or

www.wildearthilluminations.com

thanks shane

Andy
Sep-27-2006, 12:39 PM
thanks Steve

I am not sure what page I should be sending you. Maybe this one:

https://www.google.com/analytics/home/report?rid=1256220&scid=742910

Or

www.wildearthilluminations.com

thanks shane

Shane, he can't see YOUR google analytics reports, that's private data just for you.

You got the code installed just fine. :thumb

ivar
Sep-27-2006, 12:40 PM
thanks Steve

I am not sure what page I should be sending you. Maybe this one:

https://www.google.com/analytics/home/report?rid=1256220&scid=742910

Or

www.wildearthilluminations.com (http://www.wildearthilluminations.com)

thanks shaneHi Shane,

That's perfect! yep, looks like you are all set! nice :thumb

OhEddie
Nov-14-2006, 07:05 PM
I just tried to add Google Analytics and when I got to the tab that says "Organize & Customize" there was no "customize" link. Do I need SmugMug Pro to get this?

Barb
Nov-14-2006, 07:29 PM
I just tried to add Google Analytics and when I got to the tab that says "Organize & Customize" there was no "customize" link. Do I need SmugMug Pro to get this?

Hi,

Welcome to DGrin:wave

You need a Power or Pro account to do any customization.

Hope this helps!

jcp
Jan-11-2007, 11:16 PM
Thanks for the great tutorial, always much appreciated the help that can be found here.

I'm new to smugmug, and have just tried this google analytics. I've done this before with other stat controls, but never analytics.

Everything seems set right, I have copied the code across to the bottom of my footer (the code provided by google), set my URL in analytics to http://jcp.smugmug.com etc.

However, analytics says that it is all connected, and retrieving data, but no tracking information has popped up. It has only been 12 hours or so, but I have had hits in that time.

Could I be doing something wrong, or is it updated only once every 24 hours?

devbobo
Jan-11-2007, 11:42 PM
I just tried to add Google Analytics and when I got to the tab that says "Organize & Customize" there was no "customize" link. Do I need SmugMug Pro to get this?

Hi Eddie,

Welcome to dgrin :wave

You need to be a Pro or Power user.

Cheers,

David

Ryan Armbrust
Jan-12-2007, 05:15 AM
Thanks for the great tutorial, always much appreciated the help that can be found here.

I'm new to smugmug, and have just tried this google analytics. I've done this before with other stat controls, but never analytics.

Everything seems set right, I have copied the code across to the bottom of my footer (the code provided by google), set my URL in analytics to http://jcp.smugmug.com etc.

However, analytics says that it is all connected, and retrieving data, but no tracking information has popped up. It has only been 12 hours or so, but I have had hits in that time.

Could I be doing something wrong, or is it updated only once every 24 hours?

It took me about 24 hours on one site I was tracking and 5-6 on another I was tracking.

rich56k
Jan-12-2007, 08:54 AM
Hi,
Went thru the Google Analytics install for :
"www.HooliganUnderground.com"
then under 'create new website profile'
I clicked 'add profile for existing domain'
and added "rich56k.smugmug.com"

My intention is to see a report that shows all stats
regardless of which of those methods they arrived thru
Since I also set up "A Record" thru register.com
for "hooliganunderground.com"
do i need to use the attatched example or just
#'s 2 & 3 ?:scratch
Thanks,
rich56k

UPDATE-12:20 pm now when i log in it shows"rec. data" for each of the 3 --however i have to click on each of the 3 to view the reports, isn't there a way to to set up to view 1 report that shows all the data regardless of how they got here ( since all three are the same exact final destination...)
I think I'm missing something really obvious! any suggestions??

jcp
Jan-15-2007, 12:20 AM
Hello,

Anyone here knows about filtering in google analytics?

I want to filter out any of my views, natually, as they would skew the results. I found the feature to do this, but what I.P address do I set up. My PC is on a DHCP server, so the IP address there changes all the time. I tried putting in my Gateway, but of cause, that is the internal IP address of my router, and I would imagine pretty pointless:

192\.168\.2\.1

I used http://checkip.dyndns.org/ (http://checkip.dyndns.org/) to check my external IP address and added this? Is this correct. Also, do I add it with the slashes above like google analytics suggests, or just the normal dot method xxx.xxx.xxx.xxx ?

thanks in advance

me: http://jcp.smugmug.com/

Oxenhampics
Jan-15-2007, 06:07 AM
I just tried to add Google Analytics and when I got to the tab that says "Organize & Customize" there was no "customize" link. Do I need SmugMug Pro to get this?

Either Power User (which i think you have) or Pro.

Andy
Jan-15-2007, 06:10 AM
I just tried to add Google Analytics and when I got to the tab that says "Organize & Customize" there was no "customize" link. Do I need SmugMug Pro to get this?
What's your SmugMug website? It helps if you put that in your dgrin profile (You! upper left, dgrin screen), so that we can help you.

As the above poster said, you must be either power or pro SmugMug customer to use this Google Analytics feature.

jcp
Jan-15-2007, 06:30 AM
edit: Deleted... sorry, I was talking to myself. Seem to be doing a lot of that these days ;O)

jcp
Jan-24-2007, 08:00 AM
Has anyone noticed a massive difference on views between what Google Analytics shows and Smugmugs own view stats page? Google Analytics says about 2-3 people visit my gallery's a day each looking at a couple of photos then leaving. (ok, maybe my photos are boring ;O) but Smugmug has the views in the hundreds per day.

This is quite a difference. Maybe my Analytics is not set up right, although it is saying it's retrieving data. Although Google Analytics say it should be the last item on your webpage when you "view source" immediately before </body>. However, despite me placing it at the very end of the footer, it still is quite a bit away from the </body>

Just thought if I'd see if others have this problem.

By the way, I could expect a 20% or even 50% difference in numbers, but 400%?

Ryan Armbrust
Jan-25-2007, 04:29 PM
Has anyone noticed a massive difference on views between what Google Analytics shows and Smugmugs own view stats page? Google Analytics says about 2-3 people visit my gallery's a day each looking at a couple of photos then leaving. (ok, maybe my photos are boring ;O) but Smugmug has the views in the hundreds per day.

This is quite a difference. Maybe my Analytics is not set up right, although it is saying it's retrieving data. Although Google Analytics say it should be the last item on your webpage when you "view source" immediately before </body>. However, despite me placing it at the very end of the footer, it still is quite a bit away from the </body>

Just thought if I'd see if others have this problem.

By the way, I could expect a 20% or even 50% difference in numbers, but 400%?

I have tried the google analytics code in a few places in my customization and found no difference where I put it.

jcp
Jan-26-2007, 01:18 AM
I have tried the google analytics code in a few places in my customization and found no difference where I put it.

Interesting, so you also have the same problem. Looks like I may have to try another statcounter.

Thanks for your reply.

Ryan Armbrust
Jan-26-2007, 03:58 AM
Interesting, so you also have the same problem. Looks like I may have to try another statcounter.

Thanks for your reply.

No, I meant to say that wherever I put the code, I have had the same results. Meaning it is working fine.
Everything is very consistant as far as pageviews day to day whereever I put the code.
Right now I have it running in the bottom of the footer.

JWilbur26
Jan-26-2007, 05:20 AM
Hi All,

Maybe I can attempt to provide some more insight into this. I work with web analytics tools all day at work.

The big thing that I have learned, is no web analytics tool will be 100% accurate. At work we have Google installled, webtrends, keyword max, fireclick and they all provide different results. Each have their own method for collecting data. Common theme to all, is they are all cookie based. (for the 99.8% of users who have cookies enabled). The remaining % is picked up in java script.

The reason you add the code to the footer is because it is (9/10) the only aspect of your site which is rendered on every page view. Moving it between the header and footer should not make a difference (or double count). If it does, it may mean your footer may not be rendering correctly for one reason or another.

As for the difference in data, From what I can tell google and statcounter are going to be the most accurate. If you view the note at the bottom of the page, smugmug captures every view of the image. So if you have a gallery of 12 items, as soon as your page loads, your thumbnail view will go to 12, and you medium will go to 1. Every time an image shows, it counts as one view <If anyone knows otherwise, I apologize in advance...please feel free to slap me>. Google and Statcounter do not count image views anywhere in their stats unless they contain a different URL. With the new upgrade, a # sign has been added before the image id, i am 99% sure this still means the URL is the same.

Not sure if this helps anyone...and I hope my assumptions are correct. I apologize again if I am wrong.

Feel free to ask me any questions regarding web analytics...I will try to help as much as I can.

~Jonathan

JWilbur26
Jan-26-2007, 05:26 AM
Hello,

Anyone here knows about filtering in google analytics?

I want to filter out any of my views, natually, as they would skew the results. I found the feature to do this, but what I.P address do I set up. My PC is on a DHCP server, so the IP address there changes all the time. I tried putting in my Gateway, but of cause, that is the internal IP address of my router, and I would imagine pretty pointless:

192\.168\.2\.1

I used http://checkip.dyndns.org/ (http://checkip.dyndns.org/) to check my external IP address and added this? Is this correct. Also, do I add it with the slashes above like google analytics suggests, or just the normal dot method xxx.xxx.xxx.xxx ?

thanks in advance

me: http://jcp.smugmug.com/

This will be tough to do. Unless you have a static IP address (which if you use any major ISP, will not happen without some messing around), it would not be a benefit to attempt to filter. Most major ISP's have dynamic IP addresses. A google search for "static IP" might give you better insight as to creating one. 192.168 is a default for any computer which connects to a router from what I have seen. you may risk blocking any user with that same IP address. Not sure if any Network Admins can jump in on this one.

rcarr
May-14-2008, 04:55 AM
Where do I find the "UA" number to try to do this google tracking thingie

claudermilk
May-14-2008, 09:19 AM
This will be tough to do. Unless you have a static IP address (which if you use any major ISP, will not happen without some messing around), it would not be a benefit to attempt to filter. Most major ISP's have dynamic IP addresses. A google search for "static IP" might give you better insight as to creating one. 192.168 is a default for any computer which connects to a router from what I have seen. you may risk blocking any user with that same IP address. Not sure if any Network Admins can jump in on this one.

192.168.x.x is your local box/router, filtering it wouldn't do anything as that address is only used locally; it's kind of like the universal 127.0.0.1 address each box uses as "home" or "localserver". Most ISPs do use dynamic IPs, you have to have an account specifically set up with a static address (that is yours and yours alone); I do and am able to filter my home pc hits out--but then I also run a web server from home & pay more than the $15-20 that dynamic IP accounts usually do.

JWilbur26
May-14-2008, 09:33 AM
Where do I find the "UA" number to try to do this google tracking thingie

when you log into your google analytics account, your UA number will appear under the link to Edit Account and Data Sharing Settings

bobk
Jun-02-2008, 07:38 PM
First time here. Was referred by Smugmug for help. Is there a way to get just the number of times someone has downloaded an image from one of my Smugmug sites. I allow people to download my photos but would like to track this as this aspect is far more important for me than how many times people have simply looked at an image.
Thanks for any help.

twincitiesphoto
Jun-04-2008, 09:38 AM
hey Jonathan - i have a question for you- curious if you can offer any insight into this.

I use statcounter for my site stats and believe they are pretty accuarte - they are able to track every single photo click in the 'stretchy' theme - which is great as I'm able to see exactly which photos people are clicking on to display the larger version on the right side of the page.

however, I also use visistat - which I much prefer as they have an awesome user interface. However the problem with visistat, as well as webstat.com is that with the stetchy mode, and only the stretchy mode, they are unable to count the individual photo thumbnail clicks - once a peron goes into a gallery it stops tracking - I'm told this is because of the javascript used to load the thumbnails and then clicking the thumbnail shows the larger image.

this doesn't make much sense to me especially due to the fact that statcounter is able to track these clicks - it also doesn't make sense since a unique URL is generated for each thumbnail click - although the page does not truly 'refresh' with each thumbnail click.

Any insight ??

desertwillow
Jun-20-2008, 08:50 PM
I set up Google Analytics on my site (www.johnsenphoto.com (http://www.johnsenphoto.com)) a few days ago, and it seems to be working appropriately. However, when reviewing some of the links within the Google Analytics content report, I am finding links to photos and galleries that are password protected and unlisted. As much as I would like to have metrics on these galleries, I am very concerned now about the level of security that I thought I had with SmugMug.

I have been reassuring customers that no one without a password will be able to see the photos in their galleries, but if the Google crawler can access those pages, then it seems to me there is a hole in the SmugMug security?

Is anyone else having this problem?

bsharp
Jul-02-2008, 10:02 AM
Hi All,

Maybe I can attempt to provide some more insight into this. I work with web analytics tools all day at work.

The big thing that I have learned, is no web analytics tool will be 100% accurate. At work we have Google installled, webtrends, keyword max, fireclick and they all provide different results. Each have their own method for collecting data. Common theme to all, is they are all cookie based. (for the 99.8% of users who have cookies enabled). The remaining % is picked up in java script.

The reason you add the code to the footer is because it is (9/10) the only aspect of your site which is rendered on every page view. Moving it between the header and footer should not make a difference (or double count). If it does, it may mean your footer may not be rendering correctly for one reason or another.

As for the difference in data, From what I can tell google and statcounter are going to be the most accurate. If you view the note at the bottom of the page, smugmug captures every view of the image. So if you have a gallery of 12 items, as soon as your page loads, your thumbnail view will go to 12, and you medium will go to 1. Every time an image shows, it counts as one view <If anyone knows otherwise, I apologize in advance...please feel free to slap me>. Google and Statcounter do not count image views anywhere in their stats unless they contain a different URL. With the new upgrade, a # sign has been added before the image id, i am 99% sure this still means the URL is the same.

Not sure if this helps anyone...and I hope my assumptions are correct. I apologize again if I am wrong.

Feel free to ask me any questions regarding web analytics...I will try to help as much as I can.

~Jonathan

I tried following all the steps in the Analytics tutorial, but I am having trouble with this step: Check Status - when I click on it I get the message: website URL: www.bsharpphotography.com - Tracking not installed.

I put the Legacy Tracking Code in my Footer. I tried putting it before <!-- End Brad's Footer --> and tried it (unsuccessful), then tried putting it after <!-- End Brad's Footer --> again (unsuccessful).

Any suggestions?

digitalities
Jul-02-2008, 12:27 PM
I tried following all the steps in the Analytics tutorial, but I am having trouble with this step: Check Status - when I click on it I get the message: website URL: www.bsharpphotography.com (http://www.bsharpphotography.com) - Tracking not installed.


If I put http://www.bsharpphotography.com/ in my browser, I see the smugmug homepage. Something wrong.

Checking your DNS configuration seems ok:

dig www.bsharpphotography.com CNAME

; <<>> DiG 9.4.1-P1 <<>> www.bsharpphotography.com CNAME
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35392
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.bsharpphotography.com. IN CNAME

;; ANSWER SECTION:
www.bsharpphotography.com. 3600 IN CNAME www.smugmug.com.



trivial question. Did you configure the custom domain in the Control Panel -> Settings?

- Sergio

TexPhotog
Jul-11-2008, 02:55 PM
I just have a silly question...

When I look at my reports, under content analysis it gives me the following:

Meta description issues - 2
Title tag issues - 4

Does anyone know what that means???

Is it because I've changed the names of a couple of galleries... and google just hasn't had a chance to update itself???

Thanks for your help with this...

bsharp
Jul-12-2008, 04:39 AM
If I put http://www.bsharpphotography.com/ in my browser, I see the smugmug homepage. Something wrong.

Checking your DNS configuration seems ok:

dig www.bsharpphotography.com (http://www.bsharpphotography.com) CNAME

; <<>> DiG 9.4.1-P1 <<>> www.bsharpphotography.com (http://www.bsharpphotography.com) CNAME
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35392
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.bsharpphotography.com (http://www.bsharpphotography.com). IN CNAME

;; ANSWER SECTION:
www.bsharpphotography.com (http://www.bsharpphotography.com). 3600 IN CNAME www.smugmug.com (http://www.smugmug.com).



trivial question. Did you configure the custom domain in the Control Panel -> Settings?

- Sergio

Changing the Domain Name in the control panel did the trick, and now all is working great.:barb

ezlotogura
Sep-03-2008, 11:27 AM
I just set up a google analytics account and I have 1-2 questions:

1) I cut/paste the code, but does it go into the footer box or the footer javascript box? I currently have it in both, which is probably wrong.

2) When it asked for my domain, should I put my personal domain (www.ezlotogura.com (http://www.ezlotogura.com)) or my smugmug url ecz.smugmug.com?


Thanks in advance for the help!

bsharp
Sep-03-2008, 04:47 PM
I just set up a google analytics account and I have 1-2 questions:

1) I cut/paste the code, but does it go into the footer box or the footer javascript box? I currently have it in both, which is probably wrong.

2) When it asked for my domain, should I put my personal domain (www.ezlotogura.com (http://www.ezlotogura.com)) or my smugmug url ecz.smugmug.com?


Thanks in advance for the help!


You'll probably want to wait until you hear from Sergio, but just in case you don't, and because I received your email, here are my thoughts - but remember ~ I had to ask someone else to begin with, so I'm no expert.

1. I looked at my Customization Settings, and the code for Anayltics is in the Footer.

2. In the Control Panel / Settings, under Account the Domain Name I have is www.bsharpphotography.com ~ Not www.bradsharp.smugmug.com

I hope this helps

ezlotogura
Sep-04-2008, 10:16 AM
Hi Brad,

Very helpful. Google Analytics seems to be running, it is showing hits on my page, so I guess it is up and functional - thanks!

CarlDavis
Nov-21-2008, 12:31 AM
Hi, if I have a custom domain name, which one do I track with? do I have to add both in google analytics and add both sets of code that it generates?

Thanks
Carl

bsharp
Nov-21-2008, 09:15 AM
Hi, if I have a custom domain name, which one do I track with? do I have to add both in google analytics and add both sets of code that it generates?

Thanks
Carl

Hi Carl,

I'm sorry, but I don't really know. In fact, I can't even get my own working now.

Brad

TomHere
Nov-25-2008, 07:39 AM
I just installed Google Analytics and am getting inconsistent stats. One report tells me I have had 2 distinct visitors and the map view shows maybe 6 or 8.

Also it doesn't seem to be recording visitors from Canada, the UK or Europe. I know I have had at least one visitor from each, but nothing shows up.

I have installed the 'new' analytics .js code in the footer javascript box. When I did that I had to remove the two script blocks, since Smugmug complained. When I put them in the html footer box (with the script tags intact, I also got an error message.

So, now what? It works, partly. But not enough to make me happy.

Any suggestions?

Corvis
Jan-07-2009, 09:05 AM
Did everything by the instructions, and still not working...what gives?

jfriend
Jan-20-2009, 08:35 PM
Q.) How do you install Google Analytics on SmugMug?

A.) You currently can't. If you actually read the instructions of the Google Analytics installation, it clearly says that it must be installed just before the <body> tag. This means outside of other Tags such as <body>, <header> and <footer> and between the </header> and <body> tags, preferably as the last Script tagged component before the body. As is, there is no way in SmugMug's customization interface to allow for putting code in this location.

Q.) Why isn't it working right, when I followed the directions in the SmugMug help?

A.) Same as the above. Their help file is wrong. It can be detected in the footer like they instruct you to place it, but it will not function properly there. It may on occasion get some data retrieved with it there, but when it does, it's a fluke and not the rule.

Q.) Why does Google Analytics say I'm only getting a couple visits a day when the SmugMug status is reporting hundreds of views?

A.) To begin with, the code isn't working right installed in the footer, so any reports you are getting are the fluke and not the rule. In addition, even if it *was* installed in the page properly, it would still only register a fraction of the hits that SmugMug would, because SmugMug is tracking every hit on every photo, no matter where they come from. That means is shows hits from it's searches that turn up your photos, any directly shared URL links to them, and so on. The Googles Analytics wouldn't track EVERY access to your pictures, as you aren't installing they code into the pictures. The Analytics would only track hits to your actual pages and galleries that have the script in it.


I been trying to figure out how to get it installed, myself, and frankly, unless they add a customization section to the customization control panel that inserts to that section, or they (much less likely) allow you to edit the raw HTML of the whole page, you can't put the script in the location it would function properly.

I'm not familiar with Google Analytics specifically, but some of the things you said in your post are not quite right. Smugmug gives you significantly more control than you have indicated.

First off, they let you put anything you want in the <head> section of your page which is way before the <body> tag.

Second off, the Top Javascript section is specifically for javascript code that executes before the <body> tag.

Third off, there are lots and lots of Smugmuggers using Google Analytics successfully, so it appears to be possible.

Fourth, I'm not aware of anything that the Google Analytics code (or any other tracking code for that matter) does that makes one bit of difference whether it's before the <body> tag or in the body tag. It just needs to reliably execute once per page load. Conventional wisdom says to put it as late in the page as possible to that it happens after your content is rendered rather than making you wait for it to execute before you see your content.

Vizhon
Jan-20-2009, 08:46 PM
Seems I'm wrong in my placement of google's analytics... It goes just before the </body> tag and not the <body> tag. The support guys just corrected me on that, so the first two questions I tried to answer are clearly wrong. Which leaves me baffled myself as to why the code isn't working right, when I test it.


I'll continue to try to figure this out.

According to the support email at SmugMug, which are some of the quickest email support I have EVER seen, the footer section should work.

I do feel a bit like a fool, but the third question and answer about why SMUG MUG reports far more hits than the analytics would is still valid.

PS: First time it ever let me delete a post when reply was being posted.

DavidTO
Jan-20-2009, 08:52 PM
PS: First time it ever let me delete a post when reply was being posted.


You have 10 minutes to delete from the time you create the post. Past that you have to edit or ask for help from a mod.

jfriend
Jan-20-2009, 08:55 PM
Seems I'm wrong in my placement of google's analytics... It goes just before the </body> tag and not the <body> tag. The support guys just corrected me on that, so the first two questions I tried to answer are clearly wrong. Which leaves me baffled myself as to why the code isn't working right, when I test it.


I'll continue to try to figure this out.

According to the support email at SmugMug, which are some of the quickest email support I have EVER seen, the footer section should work.

I do feel a bit like a fool, but the third question and answer about why SMUG MUG reports far more hits than the analytics would is still valid.

PS: First time it ever let me delete a post when reply was being posted.

In case this is relevant to your situation, Google Analytics only can report Smugmug page loads. It cannot report on direct image loads.

So, if you or anyone else is direct linking to any of your images, those will only show in the Smugmug stats. The issue is that when there's a direct image link, there is no Smugmug page rendered anywhere so your Google Analytics code doesn't get a chance to run so it can't report on that. A direct image link is running in the context of someone else's web page, not yours.

Fliggyg
Apr-17-2009, 09:00 AM
How long dose it take for the stats to start? the status on google analytics show mine as yellow triangle with ! in middle and says tracking not installed... however, I just set this up like 3 hours ago so does it take time to work?

SteveM
Apr-17-2009, 09:42 AM
How long dose it take for the stats to start? the status on google analytics show mine as yellow triangle with ! in middle and says tracking not installed... however, I just set this up like 3 hours ago so does it take time to work?
Google Analytics is updated once every 24 hours, so it's not real-time. Stat Counter is real time, but limited to 100 entries for the free subscription level.

Hope this helps!

tfboy
May-31-2009, 02:25 AM
Mike Lin's tutorial is very clear, however I do have a few questions:

Should I include the < script > tags or not as posted in google analytics code section? My belief is that they're not necessary as the bottom java customisation in Smugmug already embeds all text within the script tags. So we'd effectively be embedding in already embedded code.

Secondly, can I use the new ja.js code, or do we have to use the older legacy urchin.js code?

Mike's tutorial refers to the urchin version, but at the time of writing, maybe that was the only one available?

I'm not getting any results right now (I have the yellow warning triangle), but that's me being impatient and not waiting for the daily update :D

Nevertheless, it might be worthwhile updating the tutorial to specify that the older urchin.js code has to be used and the newer / current ga.js code is incompatible, if that is the case. :thumb

Thanks

beetle8
Jun-08-2009, 06:28 AM
I installed the code in the footer and gave it a while, but continued to get the "Attention triangle with !" telling me tracking was not installed.
so I took the code out of the footer and put it in the header, now I'm getting a clock that says tracking installed.
Is this OK or no? Will I get appropriate function?
Just in case I changed it back to the footer-
I'm still getting the clock instead of the green check though.
Edited to add - Green check is there now, just took a few hours.

Duudson
Jul-25-2009, 12:49 PM
Hi,

I'm new to this forum, and smugmug help directed me here.

I'm having troubles with google analytics integration in my smugmug gallery. I've tried putting the new (and the old) code in bottom javascript and also in the top one, but withour success.

I cannot even see the code in page source, should it be visible or is it shomehow injected?

Now I'm seeing request to google analytics being made during page load (using firebug extension in firefox), but it's not using my UA ID...

The ID being used is UA-138402-3, and mine is beginning with UA-1934...

Could this be theme / theme cutomization releated problem? Besides this GA integration, I've only used easy customizer.

www.jaloset.net

jfriend
Jul-25-2009, 01:00 PM
Hi,

I'm new to this forum, and smugmug help directed me here.

I'm having troubles with google analytics integration in my smugmug gallery. I've tried putting the new (and the old) code in bottom javascript and also in the top one, but withour success.

I cannot even see the code in page source, should it be visible or is it shomehow injected?

Now I'm seeing request to google analytics being made during page load (using firebug extension in firefox), but it's not using my UA ID...

The ID being used is UA-138402-3, and mine is beginning with UA-1934...

Could this be theme / theme cutomization releated problem? Besides this GA integration, I've only used easy customizer.

www.jaloset.net (http://www.jaloset.net) Take the code out of your "bottom javascript" section and put it in the "custom footer" section.

Duudson
Jul-25-2009, 01:10 PM
Take the code out of your "bottom javascript" section and put it in the "custom footer" section.

LOL

Well this is embarrassing...

I must be blind.

Thank you, and sorry

:)

jfriend
Jul-25-2009, 01:16 PM
LOL

Well this is embarrassing...

I must be blind.

Thank you, and sorry

:) No problem. This is a common misstep so I conclude that the instructions must not be real clear.

Duudson
Jul-26-2009, 10:00 PM
It seems to be working now. However, I can see that some hits are not being counted, and the reason seems to be that links pointing directly to album are redirected to smugmug domain:
http://www.jaloset.net/gallery/8990246_ssn5s#597698642_VKwLL

Is this how it's supposed to work, or is this again something that I've "mastered"?

Edit: Ok, I think I've found it. Again just my own doings... I've set hide owner to yes.

btw, I'm not sure if that should change the domain?

jfriend
Jul-27-2009, 06:58 AM
It seems to be working now. However, I can see that some hits are not being counted, and the reason seems to be that links pointing directly to album are redirected to smugmug domain:
http://www.jaloset.net/gallery/8990246_ssn5s#597698642_VKwLL

Is this how it's supposed to work, or is this again something that I've "mastered"?

Edit: Ok, I think I've found it. Again just my own doings... I've set hide owner to yes.

btw, I'm not sure if that should change the domain? Yes, Hide Owner forces smugmug.com. Hide owner means just that. It makes it into generic gallery that has no connection with the rest of your site. It's for sharing a gallery when you don't want the audience for that gallery to know where the rest of your galleries are (thus why it has to change to a generic domain).

Adrienhb
Aug-02-2009, 06:23 AM
... but... is it possible to use Google Analytics if all my galleries are unlisted and I've checked "no" to the "Hello world" option while customizing my galleries?

Thanks a lot in advance for your help.

A.

ampmphotography
Aug-02-2009, 03:17 PM
This is possibly a dumb question.

My smugmug url is ampmphotography.smugmug.com. The domain name I have linking to my smugmug url is www.ampmphoto.net.

When I started a google analytics account I registered ampmphotography.smugmug.com. I then pasted that code to the custom footer box.

My question, did I register the right domain or should I have registered www.ampmphoto.net with google analytics and pasted the code from that registration instead?

Thanks for any insight you guys can give. :)

bsharp
Aug-06-2009, 10:29 AM
I have Analytics set up on my website, and it is proving to be very informative. Only one problem. When I look at the part of the report that tells me what pages are looking at, it lists them as: /gallery/8933639_oWZac I know I can click on the icon in front of the name to see what page that is, but that is really a pain (shows you how lazy we have become), and time consuming (another statement about the time we live in). Is there any way to name the pages so that we would be able to tell what page is being referenced?

Also, my website is bradsharp@smugmug.com, but I have a few other domains that I use to point to my site. For example, www.saltlakeimages.com. I have it set up so that the browser reads the salt lake images address. But in Analytics, they give me a different code for each URL to put into SmugMug, which I have done (I have three). Now I can view a report for all three, but they don't match - even though they all go to the same place.

Can anyone tell me why, or how it works? Which report is accurate? Do they overlap, or do they reflect which URL people use do access the site, then reports on only those users?

Thanks for the help.

seanhoytphoto
Oct-27-2009, 04:34 PM
I have recently added the analytics code to the footer of my gallery pages. The issue I'm having is that I think I'm seeing that a gallery with 200 images is sending 200 unique pings to GA per visitor (if they view the whole gallery). This seems strange because the GA code is called on the page build in the footer and I didn't think that the AJAX call for the next image would trigger a call to GA's _trackPageview() function. Right?

I'm also seeing a mix of nicenames and the old style "gallery" strings:

...one day of analytics collection...
http://www.seanhoytphoto.com/images/public/ga-seanhoyt.jpg

However, I'm only telling my clients the nicename versions. Any way to force the nicenames so GA reports the nicenames? My goal is to have a condensed report of just the galleries visitors go to and nothing about which images they view.

btw my SM site is prints.seanhoytphoto.com

jfriend
Oct-27-2009, 05:21 PM
I have recently added the analytics code to the footer of my gallery pages. The issue I'm having is that I think I'm seeing that a gallery with 200 images is sending 200 unique pings to GA per visitor (if they view the whole gallery). This seems strange because the GA code is called on the page build in the footer and I didn't think that the AJAX call for the next image would trigger a call to GA's _trackPageview() function. Right?

I'm also seeing a mix of nicenames and the old style "gallery" strings:

...one day of analytics collection...


However, I'm only telling my clients the nicename versions. Any way to force the nicenames so GA reports the nicenames? My goal is to have a condensed report of just the galleries visitors go to and nothing about which images they view.

btw my SM site is prints.seanhoytphoto.com The Ajax call to show another image does explicitly trigger both GA and StatCounter. Otherwise, you'd never have any idea what images were looked at in the Smugmug view. You should only see the old style (non-nicename) URL if the gallery is unlisted.

seanhoytphoto
Oct-29-2009, 09:06 AM
The Ajax call to show another image does explicitly trigger both GA and StatCounter. Otherwise, you'd never have any idea what images were looked at in the Smugmug view. You should only see the old style (non-nicename) URL if the gallery is unlisted.

Maybe it's calling StatCounter, but I don't see how an AJAX call to change thumbnails, replace the main image and update the url hash will reload the footer code containing my GA call.

Still seeing old "gallery" strings referenced to listed, unprotected galleries.

jfriend
Oct-29-2009, 09:12 AM
Maybe it's calling StatCounter, but I don't see how an AJAX call to change thumbnails, replace the main image and update the url hash will reload the footer code containing my GA call. What point are you arguing? I've told you how it works. You see the hits coming in.

Are you saying that it can't work this way?

If you must, here's the actual Smugmug code that looks for StatCounter, urchinTracker, pageTracker and SiteMeter. The middle two are different versions of Google Analytics. onPhotoShow is triggered by Smugmug's code anytime a new image loads in the Smugmug view and thus this code gets executed everytime a new main image is loaded.

(function () {
var trackerLoadCount;
onPhotoShow.subscribe(function (o) {
if (!trackerLoadCount) {
trackerLoadCount = 1;
return;
}
var s = document.getElementsByTagName('script');
var re = /statcounter\.com\/.+counter(_xhtml)?\.js$/;
for (var i = 0; i < s.length; i++) {
if (re.test(s[i].src)) {
sc_invisible = 1;
var newEl = document.createElement('script');
newEl.src = s[i].src;
s[i].parentNode.replaceChild(newEl, s[i]);
break;
}
}
if (typeof quantserve === 'function') {
_qpixelsent = '';
quantserve();
}
var reportURL = SM.util.normalizeURL();
if (typeof urchinTracker === 'function') {
urchinTracker(reportURL);
}
if (typeof pageTracker === 'object') {
pageTracker._trackPageview(reportURL);
}
if (typeof SiteMeter === 'object') {
var sImage = "http://" + SiteMeter.ServerName + "/meter.asp?site=" + SiteMeter.CodeName;
sImage += "&refer=" + SiteMeter.getReferral().replace(/(gallery\/\w+)\S*#/, '$1/1/');
if (SiteMeter.IP !== '') {
sImage += "&ip=" + SiteMeter.IP;
}
sImage += "&w=" + window.screen.width;
sImage += "&h=" + window.screen.height;
sImage += "&clr=" + window.screen.colorDepth;
sImage += "&lang=" + escape(navigator.language ? navigator.language : navigator.userLanguage);
if (SiteMeter.SecurityCode !== '') {
sImage += "&sc=" + escape(SiteMeter.SecurityCode);
}
sImage += "&pg=" + escape(document.location.toString().replace(/(gallery\/\w+)\S*#/, '$1/1/'));
sImage += "&js=1&rnd=" + Math.random();
if (SiteMeter.trackingImage) {
SiteMeter.trackingImage.src = sImage;
}
}
trackerLoadCount++;
});
})();

seanhoytphoto
Oct-29-2009, 06:33 PM
What point are you arguing? I've told you how it works. You see the hits coming in.

Are you saying that it can't work this way?

If you must, here's the actual Smugmug code that looks for StatCounter, urchinTracker, pageTracker and SiteMeter.

Interesting reply. Thanks for posting the code. You are right, I'm a raging idiot.

To anyone else, my goal was for a google analytics content report with:

1) only nicenames
2) one content page line per gallery

Over the past week, my report showed over 1000 unique and cryptic page names across several galleries with varying unique visits per page where pages are actually the individual images in the gallery. Using Firebug, I verified that even when the nicenames are in the url above, the smug_core code is sending "/gallery/8933639_oWZac" strings to Google. The nicenames shown in my previous posted image were actually from my footer code which sent a real category/subcat/gallery string.

Anyhow, I wanted to see a short, simple list of just the real gallery name along with its visit count and average viewer duration. Basically, if I have 50 galleries, I'd have 50 content pages.

To achive this, you have to disable the smug_core call to google analytics by changing your pagetracker variable name to something unique. When you call _trackPageview in your footer, you pass the category, subcategory and gallery strings found in pathArray:


pTracker._trackPageview("/" + pathArray[1] + "/" + pathArray[2] + ... );

To determine if a subcategory is present, I looked at the classes attached to the body element. There may be a better way.

Now, the tracking code is called once per gallery viewing. Here is the results of my modifications since installing the code a few hours ago:

http://www.seanhoytphoto.com/images/public/ga-modify-seanhoytphoto.jpg

uglyoldbob
Nov-04-2009, 08:16 PM
Has anybody set any goals, experiments, event tracking, campaigns or other cool features of google analytics?

ColoradoSkier
Nov-08-2009, 02:10 PM
Interesting reply. Thanks for posting the code. You are right, I'm a raging idiot.

To anyone else, my goal was for a google analytics content report with:

1) only nicenames
2) one content page line per gallery

Over the past week, my report showed over 1000 unique and cryptic page names across several galleries with varying unique visits per page where pages are actually the individual images in the gallery. Using Firebug, I verified that even when the nicenames are in the url above, the smug_core code is sending "/gallery/8933639_oWZac" strings to Google. The nicenames shown in my previous posted image were actually from my footer code which sent a real category/subcat/gallery string.

Anyhow, I wanted to see a short, simple list of just the real gallery name along with its visit count and average viewer duration. Basically, if I have 50 galleries, I'd have 50 content pages.

To achive this, you have to disable the smug_core call to google analytics by changing your pagetracker variable name to something unique. When you call _trackPageview in your footer, you pass the category, subcategory and gallery strings found in pathArray:


pTracker._trackPageview("/" + pathArray[1] + "/" + pathArray[2] + ... );

To determine if a subcategory is present, I looked at the classes attached to the body element. There may be a better way.

Now, the tracking code is called once per gallery viewing. Here is the results of my modifications since installing the code a few hours ago:

http://www.seanhoytphoto.com/images/public/ga-modify-seanhoytphoto.jpg

Where would you modify this code? Is this all done in the code you insert into your footer?

ColoradoSkier
Nov-24-2009, 07:06 AM
Where would you modify this code? Is this all done in the code you insert into your footer?


Bueller?

ChancyRat
Jan-19-2010, 05:34 PM
I've read this thread and can't find the answers to these newbie questions, so apologies if they've been answered and I can't recognize it.

- I have two sites on GA, the smugmug.name.com, and the custom domain. I've assumed they are reporting the same data, but I notice the counts are not exact. Should I do something to combine the two in GA? Or how do I know what the real hits are on the combination of the two?

- Does clicking a thumbnail in a gallery, without opening the photo to a new page, count as a view? I have assumed it does because the URL changes.

- Although I've removed my own IP address from counts, I notice that if I access gallery URLs from within GA, they are counted as views anyway. I figured this out because I was checking several SM pages via GA, and then refreshed the GA counts for the same day, and found additions of the exact pages I'd been viewing. The hits are registered to a city next to me, which I assume is the location of the GA server? All of this is some conjecture, of course, and I'm wondering if I have understood this correctly, and if it's possible to remove the hits that result from clicking the icons in GA reports that take me to a SM page? I don't get lots of hits on my site so it has been very easy to narrow down the culprit to myself via views via GA.

- I also notice uploading photos to SmugMug adds counts and would like to remove the address for that (which is available, I understand). Andy commented once he wasn't sure it was wise to do that, but he did not say why. Any thoughts?

Thanks.
www.joinrats.com

Andy
May-21-2010, 03:16 AM
Update May 21, 2010

this tutorial no longer needed. Just install your UA-XXXXXX-X code from GA in your SmugMug Control Panel, Settings Tab :) http://releasenotes.blogs.smugmug.com/2010/05/20/google-analytics-new-upload-button-and-bug-fixes/