Freelancer.com

Go Back   Warrior Forum - The #1 Internet Marketing Forum & Marketplace > Warrior Support Forums > Programming
Register Blogs Social Groups Advertise with usHelp Desk

Reply
LinkBack Thread Tools
Unread 28th October 2009, 05:33 PM   #1
Active Warrior
 
SetYourselfFreelance's Avatar
 
Join Date: 2009
Posts: 36
Thanks: 3
Thanked 1 Time in 1 Post
Default How do I block my own visits in Google Analytics?

I apologize if this has already been covered a bunch of times. Nothing I've tried so far has worked.

I am trying to block my own visits in Google analytics so I can accurately test conversions on my squeeze page.

I've tried setting a cookie in my browser, and then filtering out that cookie inside of analytics.

Tried setting the cookie in two different ways:

Here: (edit....won't let me post links since I'm a new member)

But my own visits still seem to be showing up.

Has anyone had any success blocking their own visits in Google?

Any advice at all?

Thanks very much!
Elliott
SetYourselfFreelance is offline   Reply With Quote
Unread 28th October 2009, 05:44 PM   #2
HyperActive Warrior
 
AllanJames's Avatar
 
Join Date: 2008
Location: New Zealand.
Posts: 394
Thanks: 30
Thanked 123 Times in 105 Posts
Default Re: How do I block my own visits in Google Analytics?

Just set up a filter to exclude your IP address. Check the Help for details - it's a wee touch complicated to explain here.

50% Sales Conversions?? YES!, check my blog.
AllanJames is offline   Reply With Quote
Unread 29th October 2009, 10:14 AM   #3
Active Warrior
 
SetYourselfFreelance's Avatar
 
Join Date: 2009
Posts: 36
Thanks: 3
Thanked 1 Time in 1 Post
Default Re: How do I block my own visits in Google Analytics?

Quote:
Originally Posted by AllanJames View Post
Just set up a filter to exclude your IP address. Check the Help for details - it's a wee touch complicated to explain here.
Ah if only it were that easy... Unfortunately, I'm on a dynamic IP. I also work on a laptop, and regularly work at coffee shops or a number of other places other than my home office... Tks anyway
SetYourselfFreelance is offline   Reply With Quote
Unread 29th October 2009, 01:16 PM   #4
From IT to IM
War Room Member
 
Voon's Avatar
 
Join Date: 2009
Location: The World Is Flat
Posts: 37
Thanks: 23
Thanked 5 Times in 5 Posts
Default Re: How do I block my own visits in Google Analytics?

How about disable javascript of your browser when you load your page?
(I guess google analytics won't load since it is a javascript based?)

Haven't tried that myself. Perhaps you could try one of these:

1. Disable all javascript option in your browser when you surf your site.

or

2. Set your website URL as Restricted Site and disable javascript in Restricted Site Zone? (in IE only?)

or

3. Uses Firefox addon, that let you trigger javascript on/off when ever you like. (I'm using Web Developer addon)

Hope that helps.

.
Voon is offline   Reply With Quote
Unread 29th October 2009, 01:51 PM   #5
From IT to IM
War Room Member
 
Voon's Avatar
 
Join Date: 2009
Location: The World Is Flat
Posts: 37
Thanks: 23
Thanked 5 Times in 5 Posts
Default Re: How do I block my own visits in Google Analytics?

Alternatively after some googling.. (for windows)

1. Open up c:\windows\system32\drivers\etc\hosts using notepad

2. Append at the bottom and save the following:
127.0.0.1 google's analytics domain (sorry can't post url)
127.0.0.1 google's analytics ssl domain

.
Voon is offline   Reply With Quote
Unread 29th October 2009, 03:51 PM   #6
Active Warrior
 
SetYourselfFreelance's Avatar
 
Join Date: 2009
Posts: 36
Thanks: 3
Thanked 1 Time in 1 Post
Default Re: How do I block my own visits in Google Analytics?

Quote:
Originally Posted by Voon View Post
Alternatively after some googling.. (for windows)

1. Open up c:windowssystem32driversetchosts using notepad

2. Append at the bottom and save the following:
127.0.0.1 google's analytics domain (sorry can't post url)
127.0.0.1 google's analytics ssl domain
Unfortunately (at least in this scenario), I'm a Mac guy...
SetYourselfFreelance is offline   Reply With Quote
Unread 29th October 2009, 03:53 PM   #7
Active Warrior
 
SetYourselfFreelance's Avatar
 
Join Date: 2009
Posts: 36
Thanks: 3
Thanked 1 Time in 1 Post
Default Re: How do I block my own visits in Google Analytics?

Quote:
Originally Posted by Voon View Post
How about disable javascript of your browser when you load your page?
(I guess google analytics won't load since it is a javascript based?)

Haven't tried that myself. Perhaps you could try one of these:

1. Disable all javascript option in your browser when you surf your site.

or

2. Set your website URL as Restricted Site and disable javascript in Restricted Site Zone? (in IE only?)

or

3. Uses Firefox addon, that let you trigger javascript on/off when ever you like. (I'm using Web Developer addon)

Hope that helps.

I've installed a Firefox addon that lets me block the Google code. We'll find out shortly is that works..
SetYourselfFreelance is offline   Reply With Quote
Unread 29th October 2009, 03:55 PM   #8
Active Warrior
 
SetYourselfFreelance's Avatar
 
Join Date: 2009
Posts: 36
Thanks: 3
Thanked 1 Time in 1 Post
Default Re: How do I block my own visits in Google Analytics?

Only pain in the butt is I have to wait a full day to find out if each thing I'm trying to fix works.. since it takes a day to show up in Google analytics... unless anyone knows any other ways.

Thanks for all the help so far. I just joined WF.. Seems like a great resource
SetYourselfFreelance is offline   Reply With Quote
Unread 29th October 2009, 09:47 PM   #9
From IT to IM
War Room Member
 
Voon's Avatar
 
Join Date: 2009
Location: The World Is Flat
Posts: 37
Thanks: 23
Thanked 5 Times in 5 Posts
Default Re: How do I block my own visits in Google Analytics?

Ops.. but good news! Mac has a hosts file too..
Refer to <wikipedia>/wiki/Hosts_file (aww.. can't post url again =/)

Look forward to hear some good news from you..

p/s: welcome to WF.. and myself too..

.
Voon is offline   Reply With Quote
Unread 30th October 2009, 11:26 AM   #10
Active Warrior
 
SetYourselfFreelance's Avatar
 
Join Date: 2009
Posts: 36
Thanks: 3
Thanked 1 Time in 1 Post
Default Re: How do I block my own visits in Google Analytics?

Good news... I think I got it. As I said, it takes a full day to find out if what I changed took effect, but it looks like what I changed yesterday worked.

It looks like Google added a new page (I'm sure it wasn't there before), about how to block your own traffic when you're on a dynamic ip.

I'll add this here in case anyone else ever needs help with this....

You just load a unique cookie into your own browser.

To do so, you can add some javascript in the body tag of a page on your site that your visitors WON'T have access to (this is important because anyone who visits this page, won't get counted in your traffic reports).

Code:
body onLoad="javascript:pageTracker._setVar('unique_name_of_your_cookie')"
Then in Google Analytics, just set up a filter to exclude any users that have this cookie set (you can find help on this inside of Google analytics). It's that easy.

Anyone else that you don't want to include visits from in your analytics, just have them visit this page too, like VA's, employees, etc...

And that's it. This seems to be the easiest way to do it.

Hope this helps someone!

Elliott
SetYourselfFreelance is offline   Reply With Quote
Unread 30th October 2009, 12:23 PM   #11
From IT to IM
War Room Member
 
Voon's Avatar
 
Join Date: 2009
Location: The World Is Flat
Posts: 37
Thanks: 23
Thanked 5 Times in 5 Posts
Default Re: How do I block my own visits in Google Analytics?

Good info, thanks for sharing...

.
Voon is offline   Reply With Quote
Reply

  Warrior Forum - The #1 Internet Marketing Forum & Marketplace > Warrior Support Forums > Programming

Bookmarks

Tags
analytics, block, google, visits

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 02:54 AM.