Excluding Own Internal Traffic from Google Analytics
BobT
Registered Users Posts: 44 Big grins
On the Google Analytics there are some instructions on how to exclude ones own internal traffic but it is not specific to SmugMug. Has anyone tried it on SmugMug? If so how did you do it?
0
Comments
I don't know the answer but I'm interested in the information. However, what do you mean, "one's own internal traffic ... specific to SmugMug"? Who would be excluded?
My Website index | My Blog
I haven't looked at the GA code or the SM API much, but can't you use a conditional that uses your logged in userID to either trigger the GA code or bounce around it? That way if you have a dynamic IP you circumvent that issue.
I guess you could also set a long term/permanent cookie or maybe tell your clean-up software to ignore the SM cookie? Of course this would also be a bit of a kludge as well, especially as it does not handle if you log-in from a "foreign" computer.
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Please let us all know if you can do that and how? Thanks.
For other people reading this post, do NOT copy this code into your page. This block of code is specific to ChancyRat's page because it has his Google Analytics tracking code in it. If you also want to make this modification to your page, then add the three lines in red to your own code in this exact location. Do NOT copy this whole block of code into your page.
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
John, well thank you once again. I had to get a spot of time to understand this, so before I paste this in, could you tell me what it will do exactly? It means whenever or wherever I am, if I log in as owner, I will be excluded? And so, I have the google analytics code on my site, and in Analytics, I have filtered out my IP address (but I don't think it's working, maybe I have a dynamic IP address and don't know it? I haven't figured that out.) Anyway, so with filters in place, it's okay to also paste in this code?
And, I also have excluded the ip address of my assistant, who logs in on her password but my account name. Can this code block her whenever she's logged in also?
www.joinrats.com
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
What if I'm logged in, and then a visitor somewhere lands on the site while I'm logged in? Are the visitor's views counted?
Thus, visitor's hits will always be recorded unless they sit down and use your browser while it's logged in.
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Will my assistant's views be counted? She uses my login name but not the same password?
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
GreyLeaf PhotoGraphy
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
- find your external IP via http://whatismyip.org
- go to your Google Analytics account, go into Filter Manager
- Add a new filter
* choose exclude from the IP addresses
* don't forget to select your website profile via add below
et voilà !
I've made the changes and it seems to be working well although the cookie method I put in before is probably still active. I expect that this will exclude anyone else that is logged into SmugMug and gets to my site from there. That's OK because GA was excluding them by default anyway. I suggest you post you method on the GA forum.<img src="https://us.v-cdn.net/6029383/emoji/thumb.gif" border="0" alt="" >
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
John,
Nice to see it was indeed a simple one-liner conditional. Thanks for taking the time to look into it. Right now I'm re-evaluating SM (they are on that, ahem, "s-list" and likely will be for a while, if not permenantly... ) as a service to integrate into a desktop (along with it's browse & server based analogs) app I've written, but that is a whole different discussion, still, I really was not up for sleuthing it out...plus, you are "da man"...hehehe...
My first test results are in, and unfortunately my page views got counted. I know this because (1) there was only one [return] visitor from my city, (2) hits were recorded for some test pages I set up, which were set to private, including tracking when I put the gallery in one category and then moved it to another, and (3) Hits were recorded on the other pages I visited, which together paint the exact picture of (only) my travel route through the site.
The only thing I can think of is that perhaps there are cookies somewhere that haven't been cleared? I will check that option out and re-clear, though I clear on a regular basis.
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Hah! Yes, logged in via my custom domain.
So when you say
you mean I should log in to: www.joinrats.smugmug.com
Sorry, I misunderstood that part.
Now the puzzle is why GA 'got me' in the first place because I have my IP address removed.
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Ok! Help please!
I also copied whole this into my "Custom footer" in "Advanced site wide customization"... Also I changed UA code into mine.
Please tell me is it OK!!?
Thanks!
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Veery sorry! Here it is:
http://botastockimages.smugmug.com/
http://botastockimages.smugmug.com/
Sorry!